Re: Creating a new file & saving it with date & time name

From: Date: Mon, 26 Nov 2001 21:08:05 +0000
Subject: Re: Creating a new file & saving it with date & time name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75704@lists.php.net to get a copy of this message
Something like this ...? $time = time(); // UNIX timestamp $filename = $time . ".txt"; $string = "your content here"; $file = fopen("$filename","w"); fputs($file,$string); fclose($file); Michael On Mon, 26 Nov 2001, Kevin Garrett wrote: > Hi all, > > I'm looking to find out how to create a file using php & using the date & > time as it's filename. > > Can somebody please help me? > Kevin > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp > > > -- ################################ Michael Hall admin@openlearningcommunity.org m.hall@latis.net.au http://openlearningcommuntiy.org

« previous php.general (#75704) next »