-2
Good afternoon, I am creating a new page to run a command by fopen, with the following code:
<?php
$pagina = 'pagina';
$ext = '.php';
$arquivo = fopen ($pagina.$ext, 'w+');
if ($arquivo == false) die('não foi possível criar o arquivo');
?>
the doubt is, how do I put a predetermined content inside the new file that was created, for example an echo, or so that the new file is created inside it already came an echo?
Cool Jose! but I could put an html code? or not?
– Fábio Stralioti Martins
Yes, I could, just change the contents. No secret! :)
– José Campillo