Mam taką funkcję:
<? function CreateURL($dir,$url) { { $php_file=\"<HTML><HEAD><META HTTP-EQUIV=Refresh CONTENT=0;URL=$url> <meta http-equiv=Content-Type content=text/html;charset=windows-1250><TITLE>Proszę czekać...</TITLE> </HEAD><BODY><p>Proszę czekać, trwa ładowanie strony.</p> </BODY></HTML>\"; chmod(\"/$dir/index.php\",0755); } else { } } ?>
No i jak uruchamiam tą funkcję z $dir=suchar, a $url=http://suchar.net to są takie błędy:
Cytat
Warning: mkdir(http://sebszhost.com/ss/suchar): No such file or directory in /home/ss/public_html/add.php on line 6
Warning: fopen(http://sebszhost.com/~starken/suchar/index.php): failed to open stream: HTTP wrapper does not support writeable connections. in /home/starken/public_html/add.php on line 11
Warning: chmod(): No such file or directory in /home/ss/public_html/add.php on line 12
Warning: fwrite(): supplied argument is not a valid stream resource in /home/ss/public_html/add.php on line 13
Warning: fclose(): supplied argument is not a valid stream resource in /home/ss/public_html/add.php on line 14
Warning: fopen(http://sebszhost.com/~starken/suchar/index.php): failed to open stream: HTTP wrapper does not support writeable connections. in /home/starken/public_html/add.php on line 11
Warning: chmod(): No such file or directory in /home/ss/public_html/add.php on line 12
Warning: fwrite(): supplied argument is not a valid stream resource in /home/ss/public_html/add.php on line 13
Warning: fclose(): supplied argument is not a valid stream resource in /home/ss/public_html/add.php on line 14
Proszę o pomoc!