mkdir -> mkfile?

Status
Niet open voor verdere reacties.

dominiqu3

Gebruiker
Lid geworden
22 feb 2006
Berichten
397
je hebt mkdir heb je ook mkfile ofzo?
of hoe kan ik anders een bestand aan laten maken via php?
 
heb de functie fopen gelezen... daarmee kan je alleen een bestand openen, en niet een nieuw bestand aanmaken? of heb ik dat fout?
 
dominiqu3 zei:
heb de functie fopen gelezen... daarmee kan je alleen een bestand openen, en niet een nieuw bestand aanmaken? of heb ik dat fout?
Kijk eens bij de 'w'/'w+'/'a'/'a+' - parameters ;)
'w' 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.
'w+' Open for reading and writing; 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.
'a' Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
'a+' Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan