By javierheras on
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
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
Do you try to call the php
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.
That doesn't mean that the
That doesn't mean that the scripts don't run. They may run and produce "". What output should they produce normally, and how?
thanx before everything
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?
Check for any .htaccess
Check for any .htaccess files inside those directories which contain a line "SetHandler Drupal_Security_Do_Not_Remove" or anything similar.
Incredible, thanks!!!
And by the way, what does that directive mean??
It sets the handler to some
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.