![]() |
![]() |
nuker |
![]()
Сообщение
#1
|
Гость ![]() |
![]() т.к. этот сайт находится на хостинге wallst.ru, я посчитал что вы мне сможете помочь. у меня проблема с закачкой файлов на сервер через PHP. привожу текст ошибки. Код Warning: copy(): open_basedir restriction in effect. File(/var/tmp/phpLIMVNq) is not within the allowed path(s): (/home/nuker/public_html) in /home/nuker/public_html/admin/test.php on line 18 Copy() test - failed Warning: move_uploaded_file() has been disabled for security reasons in /home/nuker/public_html/admin/test.php on line 25 Move_Uploaded_file() test - failed что делать, как закачивать? ![]() |
![]() ![]() |
nuker |
![]()
Сообщение
#2
|
Гость ![]() |
Цитата file_uploads upload_max_filesize ну вроде есть, файл закачиваю любой. не в этом дело. хоть (0 байт) Код <!doctype html public "-//W3C//DTD HTML 4.0//EN"> <html> <head> <title>Untitled web-page</title> </head> <body> <form method="POST" enctype="multipart/form-data"> <input type="file" name="formfile"> <input type="submit"> </form> <?php print "My uid:".getmyuid()."<br>"; print "My pid:".getmypid()."<br>"; print "My gid:".getmygid()."<br>"; print "My user:".get_current_user()."<br>"; print "Umask():".umask()."<br>"; if($_FILES["formfile"]["tmp_name"]) { if(copy($_FILES["formfile"]["tmp_name"],"./copy")) { print "Copy() text - OK"; unlink("./copy"); } else { print "Copy() test - failed"; } if(move_uploaded_file($_FILES["formfile"]["tmp_name"],"./move")) { print "Move_Uploaded_file() - OK"; unlink("./move"); } else { print "Move_Uploaded_file() test - failed"; } } else { print "No file upload!"; } ?> </body> </html> |
![]() ![]() |
![]() |
Текстовая версия | 23.09.2025 11:20 |