Angel Medrano | Web (*) Developer

All sorts of webby goodness!

« Back to blog

ZendFramework for Flash and PHP4

So I've started using the ZendFramework for AS3. One problem I ran into was the Zend only supports PHP5 or higher. My production server had option to use PHP3, 4 or 5 but was currently running 4 and so I was getting errors when trying to make a NetConnection Call to my Zend Class. Anywho, heres the solution if your working on an Apache server. Make a file called a .htaccess (no extension) file and place the following line "AddType x-mapp-php5 .php" in it. Upload it to your web root. This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the directory the .htaccess is placed and all sub-directories under it. Happy coding!