Search for "php"

New Site Layout and Code

The stodgy old layout was really starting to get boring so I've gone for a whole new look and feel for my site. Hopefully its nicer to look at and easier to navigate. The biggest changes functionally are that visitors can now leave comments and se...

Read More | Tags: Website, Blog, CakePHP

PHP and Plesk "Access Denied" Error With Exec()

I've finally come to the end of days of torture trying to get my PHP executable to work on a Plesk-based VPS. Every call to exec would produce "Access Dendied" errors to be dumped, while the permissions seemed perfectly ok (effective permissions s...

Read More | Tags: PHP, Plesk, Errors

PHP system() calls result in CGI Error on IIS

Writing a custom executable for a client earlier this month, I encountered an issue with calling it from within a PHP script on IIS running PHP 5.2. Every time the page was accessed, we would get an error page saying something along the lines of "...

Read More | Tags: IIS, Windows Server, WIMP, PHP, Errors, Bugs, Hacks

Extending PHP Execution Time

An interesting misconception I have always had about PHP was that once a request began, the script would continue executing regardless of what happened at the client end. As it turns out, this is not so and in fact the PHP script is stopped immedi...

Read More | Tags: PHP, Tip

PECL Module Installation in Ubuntu

When trying to install the PDFLib PECL library I repeatedly received the error "phpize: command not found", in spite of the fact that the PECL command seemed to be working. There was no mention of what was required in the PHP manual entries on PEC...

Read More | Tags: Linux, PHP

Output Caching

PHP has become one of the most prolific scripting languages on the internet due to its simple requirements, simple syntax and general ease of use for beginners. It's power is also that it can scale from just a simple website like mine, right up to...

Read More | Tags: PHP, Tip

Security and PHP

Security is something that is often discussed in the world of web servers and web development; opening up a computer to the public is inherently a dangerous step to take. But for many of us, it's one of those things where you do what you think wor...

Read More | Tags: Security, PHP, LAMP, SQL Injection, Hacks