🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.php
Article #34

Re: Creating new file

#34
From: Jeroen Straathof
Date: Mon, 31 Jul 2000 00:00
21 lines
1666 bytes
Creating a file can be done with the touch() function

"Martin Jansen" <mail@martin-jansen.de> wrote in message
news:qbatmscnts9kfeaggq6928tuhcdfftf50o@4ax.com...
> * Siim Einfeldt <siim_e@pshg.edu.ee> wrote:
> >How can I create a new file in php?
>
> With fopen():
>
> <http://www.php.net/manual/function.fopen.php> says:
>
> "[...]'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.[...]"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Martin
> --
> Martin Jansen  � mailto:mail@martin-jansen.de
> PGP 0x18176561 � http://www.php.martin-jansen.de/
Technical Details
Message-ID: <8m3rom$mv1$1@porthos.nl.uu.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8kjovp$fb1$1@talia.mad.ttd.net> <3c9smscj8c7mo3cfnmgm40t1ca08aqro92@4ax.com> <Pine.LNX.4.21.0007132332331.9382-100000@pshg.edu.ee> <qbatmscnts9kfeaggq6928tuhcdfftf50o@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10f92b,d1e182c066e0b422
X-Google-Attributes: gid10f92b,public
X-Google-Thread: 10ce1c,d1e182c066e0b422
X-Google-Attributes: gid10ce1c,public
From: "Jeroen Straathof" <jstraa@yahoo.com>
Subject: Re: Creating new file
Date: 2000/07/31
Message-ID: <8m3rom$mv1$1@porthos.nl.uu.net>
X-Deja-AN: 652742866
References: <8kjovp$fb1$1@talia.mad.ttd.net> <3c9smscj8c7mo3cfnmgm40t1ca08aqro92@4ax.com> <Pine.LNX.4.21.0007132332331.9382-100000@pshg.edu.ee> <qbatmscnts9kfeaggq6928tuhcdfftf50o@4ax.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
X-Complaints-To: abuse@nl.uu.net
X-Trace: porthos.nl.uu.net 965046870 23521 195.193.20.165 (31 Jul 2000 12:34:30 GMT)
Organization: UUNET-NL (http://www.nl.uu.net)
X-MSMail-Priority: Normal
NNTP-Posting-Date: 31 Jul 2000 12:34:30 GMT
Newsgroups: de.comp.lang.php,ba.php