0
With the following code I would like to create a file on the server.
<?php
date_default_timezone_set('America/Sao_Paulo');
$nomeArquivoLogDia = date('Ymd') . '-teste.log';
if (file_exists($nomeArquivoLogDia)) {
$arquivoLog = file($nomeArquivoLogDia, FILE_SKIP_EMPTY_LINES);
} else {
$arquivoLog = fopen($nomeArquivoLogDia, "w+");
}
?>
When I run php (http://localhost/teste.php) the file is not generated.
Someone knows how to do it?
Check right as I tested here looks ok. Was created the file.
– MagicHat
Voce used wget or php? I ask because I need it with wget. Thank you
– Mamga