I've got a project running under drpal 6.4. The thing is that any php code in any subfolder doesn't run. If I go to "View source" I see this "
"

Does anybody know what's going on here?

Thanks

Comments

marcvangend’s picture

Do you try to call the php script in the subfolder directly, or is it part of your Drupal installation?
Anyway, search drupal.org for "blank screen" of "wsod" and you'll find http://drupal.org/node/158043. I think you should try those instructions first.

cog.rusty’s picture

That doesn't mean that the scripts don't run. They may run and produce "". What output should they produce normally, and how?

javierheras’s picture

This project I'm talking about is inherited, and I'm seminew at drupal, so I dont really now if the files I'm calling are drupal files or not. But I think they are ext files. Anyway, when I call these pages, they dont recognize php. This means that if I view source code at the browser, all php code I wrote developing is the same I see at "View source". But this doesn't happen if I call, for example, http://localhost/phpinfo.php, or even http://localhost, where I can see my project's home page.

Any suggestions?

cog.rusty’s picture

Check for any .htaccess files inside those directories which contain a line "SetHandler Drupal_Security_Do_Not_Remove" or anything similar.

javierheras’s picture

And by the way, what does that directive mean??

cog.rusty’s picture

It sets the handler to some nonsense string, essentially disabling it.

Drupal does that to any directories where people can upload files, so that if a hacker uploads a php file it can't run.