When you go to install PHP on a Debian server, it will attempt to install a whole bunch of Apache packages instead. This is not very useful if you want to install a different web server, or no web … [Read more...] about Install PHP without Apache on Debian
Information and howto articles for PHP
PHP is a powerful open source server-sided scripting language that can be used on a wide variety of operating systems and webservers, including Apache on UNIX and IIS on Windows.
PHP contains numerous extensions which enable you to dynamically create images and flash files, parse xml, connect to remote servers using pop, imap, ftp, http and raw sockets, natively access many database servers including PostgreSql, MySQL and Microsoft SQL Server, compress and decompress files, lookup domain names and and much more.
PHP has an excellent manual and online documentation which covers every function for every extension available.
This post looks at the minimum PHP version requirements for SilverStripe. I will update this page as new versions are released and I upgrade the various SilverStripe websites I manage, noting any … [Read more...] about SilverStripe and PHP version requirements
The Automator in OSX allows you to create processes, services, folder actions etc. Once you have created a service in Automator there doesn't appear to be a way to delete it in the Automater … [Read more...] about OSX Quick Tip: How to remove automator services
The traditional way of getting the directory the current file is in with PHP is to use dirname(__FILE__). From PHP 5.3 there is a new magic constant__DIR__ which is the equivilent of this function … [Read more...] about PHP Quick Tip: use __DIR__ instead of dirname(__FILE__) from PHP 5.3
PHP has heredoc syntax similar to other programming and scripting languages which allow multi line strings containing variables to be easily assigned to variables or echoed. This post looks at how to … [Read more...] about PHP’s heredoc strings
A couple of weeks ago I posted how to read through a directory with PHP using the opendir() readdir() and closedir() functions and now look at the glob() function. glob() returns the filenames into an … [Read more...] about Using PHP’s glob() function to find files in a directory