Ako by som mohol tento
index.html (vytvoreny PHP kodom ktory som poslal) kopirovat do kazdej zlozky automaticky? (teda chcem kopirovat ten cisty html subor a nie php!)
Kód:
<?php
$file = "index.html";
$fp = fopen($file,"w+");
$line = fgets($fp,"120"); // i need only 1st line to read and upto 120 bytes
echo $line;
fclose($fp);
?>