PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello. I'm new here and I don't know much about PHP. And you might laugh at my question but...
I'm having problem with include. I made a php file that has 3 includes in it. If I put this file in root, it runs it. But when I put it in a subdirectory it doesn't want to work. It always gives me the "Internal Server Error"!!!
So there is nothing wrong with the test.php file right?
I searched for .htaccess in "blog" directory. Nothing there. Something more interesting. If it's apache or .htaccess, there is another php file called gallery.php but that works!!! http://blog.leomoon.net/gallery.php
Why this damn test.php which is in the same directory doesn't work?
Because of this problem, I can't rebuilt my Movabletype with php extension!
Take a look at http://www.php.net/manual/en/function.include.php and especially examble 16-7 and couple of the paragraphs above it. I'm not sure, but you try to include .html through http, and this might cause the problem.
leomoon wrote:So there is nothing wrong with the test.php file right?
I searched for .htaccess in "blog" directory. Nothing there. Something more interesting. If it's apache or .htaccess, there is another php file called gallery.php but that works!!! http://blog.leomoon.net/gallery.php
Why this damn test.php which is in the same directory doesn't work?
Because of this problem, I can't rebuilt my Movabletype with php extension!
The problem was the premissions. It should set to 644. The person who helped me said you shouldn't have this problem but for your server it's like this...