...

View Full Version : PHP Not Working in a Single Directory



bergonom
09-18-2009, 06:40 AM
For some reason a few minutes ago my PHP stopped being interpreted, but only in one directory (and its subdirectories). In all other directories it seems to be working fine. Also, HTML in the troubled directory still displays. On pages with a mix of HTML and PHP the output just stops once a <?php ...?> tag is hit.

There was a (seemingly harmless) .htaccess file in that folder, but I deleted it and still nothing.

I am running XAMPP on a Mac.

Any ideas? I'm about to throw my computer through the window.

Thanks.

SKDevelopment
09-18-2009, 09:53 AM
If output has stopped at <?php, probably you have an error there but the error output is suppressed.

I would add the following lines at the very top some of the scripts which contains PHP code and which stopped working:


<?php
error_reporting(E_ALL);
ini_set('display_errors','1');
?>

Of course you would need to comment or remove these lines in the Production environment when debugging is over.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum