Mój kolega napisał mi skrypt PHP, tak abym mógł pliki w formie http://serwer.pl/nazwapliku.zip przerzucać na swój serwer.
I na linuxpl skrypt działa doskonale jednak na 1and1 wywala mi błąd

To jest ten skrypt:
<?php $path = 'upload/'; $url = $_POST['file_url']; $response = ($response = downloadFile($url, $path)) ? 'Ścingnięto - <a href="'.$response.'">'.$response.'</a>' : 'Coś się jebło'; } function downloadFile($url, $path) { $ext = 'bin'; if($file) { if($newf) { $mime = mime_content_type($newfname); switch($mime) { case 'application/x-rar-compressed': $ext = 'rar'; break; case 'application/zip': $ext = 'zip'; break; } } } return 'http://'.$_SERVER['SERVER_NAME'].SUBD.$nn; } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Giganigga9000</title> </head> <body> <form method="post"> <fieldset> <input type="url" value="url..." name="file_url" /> <input type="submit" value="Ściągaj" /> </fieldset> </form> <body> </html>
I po wklejeniu linku wyświetla mi się takie coś:
[php]
Warning: fopen() [function.fopen]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in E:\kunden\homepages\32\d426803178\www\test.php on line 11
Warning: fopen(http://www36.zippyshare.com/d/77897677/714423/stud.zip) [function.fopen]: failed to open stream: no suitable wrapper could be found in E:\kunden\homepages\32\d426803178\www\test.php on line 11
Warning: md5_file(upload/tmp_5023f1f97648a.tmp) [function.md5-file]: failed to open stream: No such file or directory in E:\kunden\homepages\32\d426803178\www\test.php on line 30
Warning: rename(upload/tmp_5023f1f97648a.tmp,upload/.bin) [function.rename]: The system cannot find the file specified. (code: 2) in E:\kunden\homepages\32\d426803178\www\test.php on line 31
[/php
Panowie z 1and1 sugerowali mi, że mogę coś zdziałać z php.ini
Jednak czy mają racje? Proszę o pomoc.
Z góry dziękuje.