draugz Posted June 12, 2007 Report Share Posted June 12, 2007 Situācija, tāda, bildes atrašanās ceļs atrodas xml failā, es viņu nolasu un man vajadzētu tagad to bildi nokačāt lai būtu uz servera, ar kādu funkciju to panākt, meklēju google, bet tur viss ar gd, gd uzlikt nav iespējams :( Link to comment Share on other sites More sharing options...
andrisp Posted June 12, 2007 Report Share Posted June 12, 2007 1) fopen, fread, fwrite 2) file_get_contents, fwrite Varianti ir vairāki. Link to comment Share on other sites More sharing options...
v3rb0 Posted June 12, 2007 Report Share Posted June 12, 2007 $url = 'http://www.php.lv/f/style_images/1/folder_editor_images/rte-emo-button.png'; $file = 'bilde.png'; if (!copy($url, $file)) { echo 'failed to download '.$url; } Link to comment Share on other sites More sharing options...
Kristabs Posted June 12, 2007 Report Share Posted June 12, 2007 http://paste.php.lv/5653 Link to comment Share on other sites More sharing options...
Recommended Posts