strong-storm Posted February 25, 2005 Report Share Posted February 25, 2005 nu man negaaja: <? $fails ="http://***.ru/xxx.txt; $atvert = fopen ("$fails", "r"); $saturs = fread($atvert, filesize($fails)); fclose($atvert); echo $saturs ?> kā vel var iegūt faila saturu? Link to comment Share on other sites More sharing options...
loderis Posted February 25, 2005 Report Share Posted February 25, 2005 (edited) kas notiek ja aizvāc " no "$fails" --> $atvert = fopen ($fails, "r"); un $fails ="http://***.ru/xxx.txt; pieliek galā " --> $fails ="http://***.ru/xxx.txt"; lasi error log'us tur būs kļūdu apraksti <? $fails ="http://***.ru/xxx.txt"; $atvert = fopen ($fails, "r"); $saturs = fread($atvert, filesize($fails)); fclose($atvert); echo $saturs ?> Edited February 25, 2005 by loderis Link to comment Share on other sites More sharing options...
blackhalt Posted February 25, 2005 Report Share Posted February 25, 2005 <?php echo implode('',file('http://google.lv')); ?> Link to comment Share on other sites More sharing options...
rnc Posted February 26, 2005 Report Share Posted February 26, 2005 <?php echo file_get_contents('http://www.google.lv'); ?> Link to comment Share on other sites More sharing options...
Recommended Posts