PHP Language

TwitterFacebook
Get flash to fully experience Pearltrees
This "tip" is for those who receive the error "Object of class X could not be converted to string" when __toString() is not possible, and it is not a choice to process or not - for example when received via debug_backtrace(). I use to have a logging function called LogEnter() and another called LogExit() that I use to call at every function when intensively debugging. http://php.net/manual/en/language.oop5.magic.php

Magic Methods

mod_fcgid and timeouts | Where The Bits Roam

http://wherethebitsroam.com/blogs/jeffw/modfcgid-and-timeouts At work we use mod_fcgid to run php (libapache2-mod-fcgid from Debian to be exact). This makes php nice and fast, but more importantly, it runs each site's php pages as that site's user.
http://xdebug.org/docs/remote

XDebug

Xdebug provides an interface for debugger clients that interact with running PHP scripts. This section explains how to set-up PHP and Xdebug to allow this, and introduces a few clients.
http://php.net/manual/en/language.exceptions.php

Exceptions

PHP 5 has an exception model similar to that of other programming languages.
http://www.ibm.com/developerworks/opensource/library/os-php-secure-apps/index.html

Seven habits for writing secure PHP applications

When it comes to security, remember that in addition to actual platform and operating system security issues, you need to ensure that you write your application to be secure.
http://manual.phpdoc.org/HTMLSmartyConverter/HandS/li_phpDocumentor.html

phpDocumentor

The first question any writer must ask is "Who is my audience?"
I've been having many issues after upgrading my wampserver which now comes with php 5.3.5.

Can't install PEAR on Windows 7, Structures/Graph error. - Stack Overflow

http://stackoverflow.com/questions/4717547/cant-install-pear-on-windows-7-structures-graph-error

php - PEAR on Windows: How to change pear.ini location - Stack Overflow

I am trying to install a PEAR package into my recent XAMPP PHP installation (PHP 5.3.1) on Windows 7 64-bit. Installing new packages fails because PEAR tries to access c:\windows\pear.ini instead of the existing c:\path_to_xampp\php\pear.ini . This results (rightly) in a permission denied error. http://stackoverflow.com/questions/2180197/pear-on-windows-how-to-change-pear-ini-location
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net add a note User Contributed Notes PHP Manual http://php.net/manual/en/index.php

PHP Manual

Operators

An operator is something that takes one or more values (or expressions, in programming jargon) and yields another value (so that the construction itself becomes an expression).
The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that allows access to static , constant , and overridden properties or methods of a class. When referencing these items from outside the class definition, use the name of the class.

Scope Resolution Operator (::) - Manual

Variable scope - Manual

The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single scope.
The Object (compound) Type Like every programming language, PHP offers the usual basic primitive types which can hold only one piece of data at a time (scalar).

Types

Arrays

Why is $foo[bar] wrong? Always use quotes around a string literal array index.