Six Cool PHP Tricks You May Not Know

Over the years I’ve come across some useful tricks in PHP that are not obvious, but are worth mentioning. This is not meant to be a comprehensive list of all the useful tricks that you can do with PHP. 1. Count Characters in a String To do this, I’ve usually just used the function strlen(). [...]

PHP blunders with random numbers

Security expert Andreas Bogk warns that, despite recent PHP improvements, the session IDs of users who are logged into PHP applications remain guessable. Upon close examination, the alleged improvements display frightening weaknesses. PHP assigns a session ID in order to allow individual page calls to be allocated to a specific logged-in user. To prevent attackers [...]

PHP 5.3.2 Release Announcement

The PHP development team is proud to announce the immediate release of PHP 5.3.2. This is a maintenance release in the 5.3 series, which includes a large number of bug fixes. Security Enhancements and Fixes in PHP 5.3.2: Improved LCG entropy. (Rasmus, Samy Kamkar) Fixed safe_mode validation inside tempnam() when the directory path does not [...]

PHP 5.2.13 addresses security holes

An update which fixes around 40 bugs is available for the PHP 5.2 development branch. Version 5.2.13 comes highly recommended for all PHP 5.2.x users, as it includes a number of security-related fixes. These include a bug when validating the safe_mode configuration variable in the tempnam() function which arises when the path does not end [...]

Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2010.0

New tutorial added to HowtoMatrix database.
Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2010.0
Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can
install Lighttpd on a Mandriva 2010.0 server with PHP5 support (through
FastCGI) and MySQL support.
Link to the original site

PHP 5.2.12 Released!

The PHP development team would like to announce the immediate availability of PHP 5.2.12. This release focuses on improving the stability of the PHP 5.2.x branch with over 60 bug fixes, some of which are security related. All users of PHP 5.2 are encouraged to upgrade to this release. Security Enhancements and Fixes in PHP [...]

IP Management With PHPIP

New tutorial added to HowtoMatrix database.
IP Management With PHPIP
Phpip is annbsp;IPnbsp;Management tool which helps to manage your network
with the detailed information of your client or network IP at the
distributed point. This is basically useful for ISPs as well asnbsp;large
networks.
Link to the original site

PHP 5.3.1 Released!

The PHP development team would like to announce the immediate availability of PHP 5.3.1. This release focuses on improving the stability of the PHP 5.3.x branch with over 100 bug fixes, some of which are security related. All users of PHP are encouraged to upgrade to this release. Security Enhancements and Fixes in PHP 5.3.1: [...]

Where is PHP 6?

Back in 2005, I wrote a story for InternetNews.com where I wrote that I expected PHP 6 to be out in 2006. Here we are three years later and guess what? No PHP 6. Back in 2005, the promise of PHP 6 was to be the next big thing for the open source dynamic language. [...]

How To Set Up Apache2 With mod_fcgid And PHP5 On Mandriva 2009.1

New tutorial added to HowtoMatrix database.
How To Set Up Apache2 With mod_fcgid And PHP5 On Mandriva 2009.1
This tutorial describes how you can install Apache2 with mod_fcgid
and PHP5 on Mandriva 2009.1. mod_fcgid is a compatible alternative to
the older mod_fastcgi. It lets you execute PHP scripts with the
permissions of their owners instead of the Apache user.
Link to [...]

Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2009.1

New tutorial added to HowtoMatrix database.
Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2009.1
table align=left cellpadding=0 cellspacing=0 width=43 height=40 style=margin-top:0px;margin-bottom:0px;trtdimg class=teaser-image-even src=http://images.howtoforge.com/images/teaser/mandriva.gif width=40 height=40 alt= //td/tr/tablepbInstalling Lighttpd With PHP5 And MySQL Support On Mandriva 2009.1/b/p
pLighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can
install Lighttpd on a [...]

PHP 5.2.11 Released!

The PHP development team would like to announce the immediate availability of PHP 5.2.11. This release focuses on improving the stability of the PHP 5.2.x branch with over 75 bug fixes, some of which are security related. All users of PHP 5.2 are encouraged to upgrade to this release. Security Enhancements and Fixes in PHP [...]

Installing Cherokee With PHP5 And MySQL Support On Ubuntu 9.04

Cherokee is a very fast, flexible and easy to configure Web Server.
It supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
CGI, TLS and SSL encrypted connections, virtual hosts, authentication,
on the fly encoding, load balancing, Apache compatible log files, and
much more. This tutorial shows how you can install Cherokee on an
Ubuntu 9.04 server with PHP5 support (through [...]

How To Log Emails Sent With PHP’s mail() Function To Detect Form Spam

If you are running a webserver you might have faced the problem
already: somewhere on your server is a vulnerable contact form or CMS
system written in PHP that gets abused by spammers to send emails
trough your server. If you have more than a few websites, it is a pain
to detect which of the sites is vulnerable [...]

Recompiling PHP5 With Bundled Support For GD On Ubuntu

I’ve been installing the LAMP stack on an Ubuntu based server for a client. They rely on the version of LibGD that’s bundled with PHP5. This version includes certain functions including imagerotate() and others.
It seems that the people who build Ubuntu (and Debian) distribution do not want to compile PHP5 with the version of GD [...]

Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.04 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 9.04 server with PHP5 support (mod_php) and MySQL support.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
In this tutorial I use the hostname server1.example.com with the IP address [...]

Zend squeezes PHP into business suit

Zend Technologies has announced the latest version of its open-source framework for PHP, offering improved support for Microsoft and Novell environments. The changes are part of what Zend called more of a business focus, which encompasses updates to help those building and plumbing web services and enterprise applications into PHP. The PHP specialist is also [...]

Install PHP 5.3.0/Lighttpd On Debian (Lenny) With Imap, MySQL, Sqlite3 And ImageMagick Support

This tutorial covers the setup of PHP 5.3.0/Lighttpd on Debian (lenny) with imap, mysql, mysqli, sqlite3, ImageMagick and mycrypt support.
For this tutorial I will assume you are logged in as root this is not advised.
First we need to install the webserver:
aptitude install lighttpd
Now we install the packages needed for mysql and mysqli support. You will [...]

Howto install Cherokee web server with MySQL, PHP support on Jaunty

Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, SSI, TLS and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding, Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP Proxy, Traffic Shaper, Video Streaming and much more.
Read the [...]

PHP 5.3.0 Released!

Hello! The PHP Development Team would like to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes. Release Announcement: http://www.php.net/release/5_3_0.php Downloads:            http://php.net/downloads.php#v5.3.0 Changelog:            http://www.php.net/ChangeLog-5.php#5.3.0 regards, Johannes and Lukas