I have a problem, I can't open php files in directories inside my php folder. My php folder is c:/php
and then I create a new folder inside it, that is c:/php/new/
but when i tried to open [url]http://.../new/file.php[/url]
the file won't open and I got error messages.
I am a beginner, please help me
thanks
how to open files in directory?
try to open it with
new/file.php, without the [url]http://[/url]
it still doesn't work. Is there anything I should change in php.ini or apache to be able to read files in subdirectories of my php folder? Thanks
i doesnt matter to your php.ini file
what kind of webserver do you use?
you can try with full path to your file
C:\php\new\file.php
which command do you use by the way to open the file?
i'm using apache. but if i try full path C:\php\new\file.php then
the php won't gonna be run by apache. It will directly open the php file using notepad instead.
I already run the apache server and it just can read files in the php folder but not in subdirectories inside it.
Maybe I should put include function or else? Please help me.
thanks
when you use apache, you can only open file inside the htdocs in apache directory
sorry, i'm not talking about fopen() function here
i mean i can't browse to my webpage(in php) located in subdirectory of my phpweb folder(c:/phpweb).
I mean i just can browse to [url]http://my_ip/file.php[/url] (this file is in c:/phpweb/file.php) but i can't browse to webpage i put in subdirectory in the directory ex. [url]http://my_ip/newdirectory/file2.php[/url] (this file located in c:/phpweb/newdirectory/file2.php).
help me......
which error message did you get?
URL not found
mm, i never get this weird question,
but try to make new directory with other names,
this seems a little bit strange, i dont know where is the problem