How to get HTTP headers from CURL response?
You can write a simple PHP curl program to download a page. Every HTTP response contains a Header and the contents. In most cases, you will be concerned more about the contents. By default, curl response will give you the contents. But you can also specify that you need the header using the option CURLOPT_HEADER [...]
How to remove HTTP headers from CURL response?
You can write a simple PHP curl program to download a page. Every HTTP response contains a Header and the contents. In most cases, you will be concerned more about the contents. By default, curl response will give you the contents. But you can also specify that you need only the contents and not the [...]
How to install PHP Unix man pages in Linux?
Are you surprised by seeing the title of this post? Is it really possible to get PHP man pages locally in your machine? Quite often we refer the PHP manual for knowing more about a php function. If this information is available locally, it will really be helpful for a quick reference and also when [...]
How to install a PHP-Pear package
To work with pear packages, you must first install Php-pear. Once installed, you must find the source of the package to be installed. The general syntax of installing a pear package $ pear install package_source Example. I want to install Auth pear package. I will write $ pear install pear.php.net/Auth WARNING: configuration download directory "/build/buildd/php5-5.3.2/pear-build-download" [...]
PHP Pear Packages
PHP Pear Packages is a repository of PHP software codes. There are many software codes which you write or require daily for most of your web designing. Some of these regular components are available PEAR. The Pear packages are listed here. You must install PHP-Pear in your machine before installing these packages. Pear packages of [...]
How to install PHP-Pear in Linux (Ubuntu)?
PEAR is a repository of PHP software code. It contains some commonly used software components. To install pear in Linux (Ubuntu) $ sudo apt-get install php-pear
How to use PHP in Eclipse? PHP Development using Eclipse
Eclipse is mostly used for Java Development. But you can use it for development in other languages like PHP as well. To use PHP in Eclipse, you can make use of PDT (PHP Development Tool). PDT installs the necessary tools to work easily with PHP in Eclipse. To install PDT, you can download it from [...]