strong-storm Posted February 25, 2005 Report 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?
loderis Posted February 25, 2005 Report 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
blackhalt Posted February 25, 2005 Report Posted February 25, 2005 <?php echo implode('',file('http://google.lv')); ?>
rnc Posted February 26, 2005 Report Posted February 26, 2005 <?php echo file_get_contents('http://www.google.lv'); ?>
Recommended Posts