Forum: Programmieren allgemein
by titus,
28. Jun 2004
am allerbesten so:
<?php
function loadfromfile($file) {
return implode('', file($file));
}
?>
und an datei anhängen:
<?php
function appendtofile($file, $contents = "\n") {
$fp = fopen($file, 'a+');
Forum: Programmieren allgemein
by titus,
27. Jun 2004
http://de3.php.net/fopen
http://de3.php.net/fputs
Forum: Programmieren allgemein
by titus,
26. Jun 2004
Beste Methode:
echo implode('', file('http://www.domain.de/datei.php'));
oder:
echo file_get_contents('http://www.domain.de/datei.php'); // erst ab PHP 4.3 vorhanden