Category Archives: PHP

php news, php articals, php certification, php frameworks, php classes, php code, php feed, php update, php array, php string, php function, php oops, php xml, php open projects, PHP SOAP

How to collect Checkbox Array values?

Beginner PHP Programmer always searches for easy way to collect Checkbox data from forms.
Here in this post I have used 3-4 lines of easy code to collect data from multi checkboxes. Instead of using several table-fields you can store your comma separated data in on field of the table. This is easy and handy.



 Om  Jyoti  Bruce
 Yaling  Angelica  Tara
Share

How to Install PECL Library in shared server?

Most of us don’t have installation access in all LAMP based shared server.
In this Open source world you never know which function and which code you have to use.
Recently I have encountered one php function which was really important for me to post something from one server to another.
That was  http_post_fields() which is available  in  pecl_http php extension.
pecl_http php extension is used to provide a convenient and powerful set of functionality for most of PHP’s applications, like HTTP urls, dates, redirects, headers and messages etc.
After spending so many hours I figured out how to install and make it work.
I would be happy if you can utilize my hard work and install your own without any paid help!

These are the Steps
1. Download directly in you server for example html folder or wherever you want to install.

wget http://pecl.php.net/get/pecl_http-1.6.1.tgz

2.  Uncompress the files using following commands

tar –xzvf pecl_http-1.6.1.tgz

cd pecl_http-*

Note : If there is one more directory after untar please remove that.

3.  Compile and install using these commands (Just run one after another)

A.  phpize

B.  ./configure

C.  make

D.  make install

4.  After completing step 3 add following line in your PHP.INI file.
Now a day’s giving php.ini access is fashion!

extension=http.so

5. Add newly installed pecl_http php extension to php.ini file. Its important to add correct path, if you are installing from root this step is not required.

extension_dir=/home/this_is_your_server_path/html/pecl_http-1.6.1/modules

Thats it!

Share

How to Get the Page URL with php code?

Every php coder ask questions to get CURRENT PAGE URL with PHP, it is not as straightforward in raw php coding as one may think to get the current url to use it inside your application. Here is a code which you can use to get url easily.


function CPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}

Share

Where to Download PHP eBooks?

CakePHP.Application.Development

Publishing:Packt Publishing Birmingham-Mumbai

Authors:Ahsanul Bari, Anupom Syam Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework

Download link

Zend-PHP.Certification.Study.Guide

Publisher:Zend Technologies

Authors:Stuart Herbert, Daniel Kushner, George Schlossnagle, Chris Shiflett, Björn Schotte The Zend PHP Certification Study Guide covers every topic that is part

of the exam. It was developed by some of the very same authors who designed the exam’s

questions and was thoroughly reviewed to ensure that it provides every bit of information required to cover each subject appropriately.
Download link

Wicked.Cool.PHP

Publisher:No Strach

Authors:William Steinmetz, Brian Ward Wicked Cool PHP contains a wide variety of scripts to process credit

cards, check the validity of email  addresses, template HTML, and serve dynamic images and text. The 76

easily implemented scripts will also teach you how to download and you will now
Download link

The.Definitive.Guide.to.symfony

Publisher: Apress

Authors:Francois Zaninotto,Fabien Potencier For this book, you need a basic understanding of PHP 5 and

object-oriented programming. Of course, having already developed web applications in PHP before reading

this book is a plus, for you will see this book as a collection of answers to the questions you regularly ask yourself
Download Link


TextPattern.Soluction-PHP.based.Content.Managment.Made.Easy

Publisher: Friendsof an Apress company

Authors: Kevin Potts, Robert Sable, Nathan Smith Each one of this book’s authors has traversed the meandering road of open-source content manage-ment, arriving at Textpattern as a powerful tool to assist in rapid site development. The bookyou are now reading is one that we wanted to have when we first learned to use this system. It is the result of alabor of love for a methodology that has made our lives easier.
Download Link


SitePoint.The.PHP.Antholog.with.code.example

Publisher: Sitepoint

Author: Harry Fuecks The PHP Anthology is, first and foremost, a compilation of the best solutions provided to common PHP questions that turn up at the SitePoint Forums on a regular basis, combined with the experiences and insights I’ve gained from my work with PHP on a daily basis over the last four years
Download Link


Secure.PHP.Development.Building.50.Practical.Applications

Publisher:WileyAuthor:Mohammed J.Kabir

This book is designed for intermediate-level to advanced-level PHP developers who can review the fifty PHP applications

developed for this book and deploy them as is or customize them as needed.
Download Link

Rails.for.PHP.Developers

Publisher:The Pragmatic BookshelfAuthor:Derek DeVries,Mike Naberezny

Rails embraces a general development philosophy that sets a high pri-ority on creating maintainable code. By following some simple guide-

lines, you should be able to keep a uniform pace of development and be free to change your code with little fear of breaking existing functional-ity.

Download Link

Programming.PHP.2nd.Edition

Publisher:O’ReillyAuthor:Rasmus Lerdorf, Peter Macintyre,Kevin Tatroe

Programming PHP, Second Edition is the authoritative guide to PHP 5 and
is filled with the unique knowledge of the creator of PHP (Rasmus
Lerdorf) and other PHP experts. When it comes to creating web sites, the
PHP scripting language is truly a red-hot property. In fact, PHP is
currently used on more than 19 million web sites, surpassing Microsoft’s
ASP .NET technology in popularity. Programmers love its flexibility and
speed; designers love its accessibility and convenience.


Download Link


Pro.PHP.Patterns.Frameworks.Testing.and.More

Publisher:AppresAuthor:Kevin McArthur

This is an advanced book. I have needed to choose carefully which information to include and what readers should be expected to know already. Readers should have a

solid understanding of HTTP and PHP—that is, you should understand how to make web pages and build forms, and you should understand key concepts like the HTTP request cycle.
Download Link

PHP.Eclipse.A.User.Guide

Publisher:PACKET publishingAuthor:Shu-Wai Chow

Take advantage of the leading open source integrated development environment to develop,organize, and debug

your PHP web development projects.
Download Link

PHP.Web.2.0.Mashup.Projects

Publisher:PACKT publishingAuthor:Shu-Wai Chow Create practical mashuos in PHP,grabbing and mixing data from Google

Maps,Flickr,Amazon,YouTube, MSN Search,Yahoo!,Last.fm, and 411Sync.com
Download Link

Share

How to Install Zend Framework?

Basic step by step easy to install Zend Framework video.

Getting Started

Get the Flash Player to see this content.

Bootstrapping

Get the Flash Player to see this content.

Controllers and Views

Get the Flash Player to see this content.

Extending your ZF application

Get the Flash Player to see this content.

Share

PHP e-books download

Click on links below to download your desired ebook! if you don’t find any book which you are looking for just just drop a mail here, i assure you you will get a copy of that book!!

Click here to mail

  1. Beginning PHP
  2. PHP 5 and MySql Bible
  3. PHP and MySQL Web Development
  4. Professional PHP Programming
  5. PHP Hacks and tips for creating dynamic websites
  6. Secure PHP Development : Building Practical Applications
  7. Apress : Professional PHP
Share