Autor Zpráva
Celebi
Profil
Kde dělám chybu? Tento skript mám uložen v souboru test.php5. Na serveru by php5 fungovat mělo (ic.cz).
Skript vypadá takto:
<?
$url="http://www.pokemonelite2000.com/pkfrlgsh001.png";
$outfile="/images/pokedex/shinyfrlg/001.png";
$soubor=file_get_contents($url);
file_put_contents($outfile, $soubor);
?>

A hlásí mi to: Warning: file_put_contents(/images/pokedex/shinyfrlg/001.png) [function.file-put-contents]: failed to open stream: No such file or directory in /home/free/ic.cz/p/mojestranka/root/www/test.php5 on line 5.
Leo
Profil
Taky to nehlasi ze nezna fci, ale ze neexistuje zadany adresar, Leo
souki
Profil
$outfile="/images/pokedex/shinyfrlg/001.png";

// odstran lomítko na začátku... takhle se dostáváš do rootu serveru
Toto téma je uzamčeno. Odpověď nelze zaslat.

0