Jump to content
php.lv forumi

Recommended Posts

Posted

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?

Posted (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 by loderis
Posted
<?php
echo implode('',file('http://google.lv'));
?>

×
×
  • Create New...