23-03-2010, 18:56
|
|
|
חבר מתאריך: 14.09.05
הודעות: 92
|
|
WGET לא מחזיר תשובה בתוך דף PHP
שלום לכולם ,
אני מנסה לעשות דף אשר יוריד קובץ ויציג לי את תוצאת ההורדה .
ניסיתי את כל הפונקציות האפשריות :
אך אני לא מקבל שום אינדיקציה : האם הקובץ ירד ? ואת הלוג של WGET .
האם למישהו יש ראיון איך אפשר לפתור זאת ,
תודה מראש ,
קוד:
$result = system("wget -O tmp1 '$url' ");
echo "the system results are: ".$result."<br>";
echo "<br>the shell_exec results are: " ;
echo shell_exec("wget -O tmp2 '$url' ")."<br>";
$test = exec("wget -O tmp3 '$url' ",$tmp);
print_r($tmp);
echo "<br>the exec results are: ";
print_r( $test);
$test1 = `wget -O tmp4 "$url" `;
echo "<br>the gershaim results are: ";
echo "<pre>$test1</pre>";
$string = system('wget http://www.example.com/index.html ~',$file);
echo $string;
echo ' "test"';
output :
קוד PHP:
the system results are:
the shell_exec results are: Array ( ) the exec results are: the gershaim results are: "test"
|