[php] schrijven in bestanden

Pagina: 1
Acties:

  • KlaasB
  • Registratie: Juli 2000
  • Laatst online: 01-07-2024
Wat gaat hier fout???
PHP:
1
2
3
4
5
6
7
8
9
<?
  $date = time();
  $date = strftime ("%A %d %B %Y", $date);

  $file = "/usr/local/apache/upload/refreshdate.txt";
  $fd = fopen("$file", "w");
  $fwrite ($fd, "Last update on: $date");
  fclose ($fd);
?>

Ik krijg steeds: Fatal error: Call to undefined function: () in /usr/local/apache/test123.php on line 5

It's not a bug, it's a feature


  • Bas_f
  • Registratie: Januari 2001
  • Laatst online: 18-09 09:38
$fwrite moet zijn fwrite of fputs

...


  • KlaasB
  • Registratie: Juli 2000
  • Laatst online: 01-07-2024
* KlaasB schaamt zich diep.

It's not a bug, it's a feature