Web Hosting Talk







View Full Version : PHP problem Warning: touch


simonlinj
05-29-2006, 10:46 PM
Hi, I need some help, if you can help me please
I had set the file s chmod to 777, but still not working.



Warning: touch(): Unable to create file http://www.coreanito.com/user/tmp001/top.html because No such file or directory in /home1/colegio/wizard/frames/server_index.html on line 253

Warning: chmod(): No such file or directory in /home1/colegio/wizard/frames/server_index.html on line 255


251 if(!file_exists("$USER_PATH$home_id/$top_page")){
252 touch("$USER_PATH$home_id/$top_page");
253 chmod("$USER_PATH$home_id/$top_page", 0777);

Thanx

dantistus
05-30-2006, 05:28 AM
Are you sure you are telling it the proper paths?

simonlinj
05-30-2006, 08:07 AM
Op sorry, but is the same

Warning: touch(): Unable to create file http://www.coreanito.com/user/class/top.html because No such file or directory in /home1/colegio/wizard/frames/server_index.html on line 252

Warning: chmod(): No such file or directory in /home1/colegio/wizard/frames/server_index.html on line 253


251 if(!file_exists("$USER_PATH$home_id/$top_page")){
252 touch("$USER_PATH$home_id/$top_page");
253 chmod("$USER_PATH$home_id/$top_page", 0777);

sasha
05-30-2006, 10:56 AM
Well it is very good thing you cannot create files over http :)

Look at your message

Unable to create file http://www.coreanito.com/user/class/top.html


Are you sure that is the file you want created. Maybe you want to create
/home1/colegio/user/class/top.html

simonlinj
05-30-2006, 07:54 PM
thanx, now is working. your help was very help full to me. thanx again