PHP

How do I update root certificates in Apache/PHP/cURL environment

Following is the instruction for dealing with the new ISIS’ SSL certificate authority (effective ...

What are the differences between addslashes(), mysql_escape_string() and mysql_real_escape_string()

addslashes() escapes single quote (’), double quote ("), backslash (\) and NUL (\x00).mysql_escap...

PHP and ODBC

While looking for something else in the Moodle Forums, I found these links that refer to the unde...

Speed of unpack() in PHP

I needed to extract a list of integers from a binary string. I was curious to know if PHP’s unpac...

Configuring PEAR on Windows

PEAR is the PHP Extension and Application Repository. Applications written in PHP often include r...

How do I use cURL in PHP on Windows?

To configure cURL to be able to run in PHP uncomment this line (remove the semi-colon) in the php...

Passing command-line arguments into PHP

Say you have a PHP script and you want to pass command-line arguments into the script, e.g. calli...

Using SSL socket in PHP under Windows

ProblemIf you try to open a socket (fsockopen, pfsockopen) with SSL in PHP 4.x under Windows, the...

PHP Resources

PHP is a web programming language that can be compiled into the Apache web server and with its pe...

PHP error reporting

Error levels name value description example 1 example 2 E_ERROR 1 Fatal run-time ...

PHPXref vs PHPDocumentor

IntroductionThere exists a wide array of PHP documentation tools on the web available free for do...

Create a PHP unit test case using SimpleTest

You can download SimpleTest at https://sourceforge.net/projects/simpletest/Suppose you have a PHP...

PHP Commenting Style

Any programmer can tell you that good commenting in your source code is an integral part of progr...

phpMyAdmin Security

phpMyAdmin Security Announcements

PHP

PHP eXtremePHP and http://pear.php.net/ These code bases will be useful in rolling the PHP out...

How can I make phpMyAdmin avoid sending MySQL passwords in the clear?

Although phpMyAdmin is an excellent tool for administering MySQL databases, you don’t want to exp...

PHP ODBC Setup Guide

Guide to setting up php-odbc for connection to Registrar database. Example for RedHat EL 5.Create...

Performance of array_shift and array_pop in PHP

We have confirmed that array_shift is much slower than array_pop in PHP.Code:<?// Create an ar...