Disabling PHP in a specific directory

18:10 on Fri 2008-11-14 by Leons Petrazickis PHP, Unix, Web Development

To disable the PHP processor in a given directory, put the following in an .htaccess file. If one doesn’t exist, create it. # Disable PHP AddHandler default-handler php RemoveType application/x-httpd-php php # Make .php files display as plain text AddType text/plain php   This assumes an Apache server. PHP on IIS may involve different steps. [...]

Migrating from Smarty to Flexy

15:54 on Tue 2007-03-20 by Leons Petrazickis PHP

Templates are a great way to separate business logic from page layout in web applications. Smarty (LGPL) and Flexy (PHP License) are two great, mature templating libraries for PHP. Flexy is the younger and faster of two, so there is a tendency to migrate installed Smarty implementations onto it. Migrating the PHP Engine Declaration Smarty: [...]

Installing Pear and PECL on Zend Core for IBM

11:50 on Mon 2007-02-05 by Leons Petrazickis PHP

Links Atomized | PHP Performance Best Practices – Informative. Installing PEAR and PECL on Zend Core for IBM Save http://go-pear.org/ to go-pear.php (in, say, C:\Program Files\Zend\Core for IBM\pear) Open Command Prompt % cd “C:\Program Files\Zend\Core for IBM\pear” % ../bin/php go-pear.php Follow the steps and let it modify your php.ini Restart your Apache Installing the profiling [...]