"I'm not a cynic. I get up every morning hoping to find an honest man." - [Jack McCoy, Law & Order]
Als je een text bestand voor write opent, niet append, wordt hij zowiezo leeggemaakt...
PHP:
1
| fopen("bestandnaam", "w"); |
de mode 'w' doet het volgende:
Zie ook: fopen()Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
[ Voor 9% gewijzigd door Tux op 27-04-2005 20:53 ]
The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.
Je kunt hem met unlink() gewoon deleten en dan een nieuw bestandje aanmaken...
Regeren is vooruitschuiven
Zie bovenstaand; ik kan me niet voorstellen dat op www.php.net niets te vinden is
Digitaal onderwijsmateriaal, leermateriaal voor hbo
Dit topic is gesloten.
![]()