外部のPHPを実行
require ("hogehoge.php");
?>
require ("hogehoge.php");
?>
count($ary)
echo date('h:i:s') . "\n";
//強制的な遅延
sleep(10);
echo date('h:i:s') . "\n";
?>
$html = read_file("test1.html");
write_file("test2.html", $html);
function read_file($filepath)
{
$fd = fopen($filepath, "r");
$content = fread($fd, filesize($filepath));
fclose($fd);
return $content;
}
function write_file($filepath, $content)
{
$fd = fopen($filepath, "w");
fwrite($fd, $content);
fclose($fd);
}