一个名为“test.php”的文件位于sites/default/files 应该可以从root 访问,即www.example.com/test.php 使用drupal 6。
谁能帮我。
谢谢
Your php file did not run because in sites/default/files folder there is a .htaccess file which disables the php handler to execute php files. This is a normal behavior. It is what happens on all my sites.
The change in behavior in "files" is caused by the small .htaccess files which Drupal puts there for security reasons (to disable the php handler). Thats why your test.php is not working.
If you are a bit curious, then run your file and check the file source, you will see your php code is still there.
For more: http://drupal.org/node/814890, http://drupal.org/node/652002