Hello all.
i have some fopen problems with paths.
I have a script which does fopen("template s/file.php","w"); in a script
called f.php inside a folder named /folder
Sometimes i call this script from /root and sometimes from /root/folder
so i dont know how to make sure that it will always do the fopen to the file
in the /folder/templates/
Anyone can give me some help ?
--
Yang
i have some fopen problems with paths.
I have a script which does fopen("template s/file.php","w"); in a script
called f.php inside a folder named /folder
Sometimes i call this script from /root and sometimes from /root/folder
so i dont know how to make sure that it will always do the fopen to the file
in the /folder/templates/
Anyone can give me some help ?
--
Yang
Comment