Re: Quick File_Upload Example?

From: Date: Mon, 10 Sep 2001 08:12:19 +0000
Subject: Re: Quick File_Upload Example?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66696@lists.php.net to get a copy of this message
will this do? $filename="newfile.txt"; / / sets file name variable touch("./directory/$filename"); / / creates file in specified directory if it doesn't already exist $fp=fopen("./directory/$filename","w"); / / opens file for writing $write="what ever you want\n"; / / copies contents of variable and ends with a \n (end o'line marker) fwrite($fp,$write); / / writes contents of variable to the file fclose($fp); / / closes file. hugh ----- Original Message ----- From: Smileyq <smileyq0@mindspring.com> To: <php-general@lists.php.net> Sent: Monday, September 10, 2001 12:10 AM Subject: [PHP] Quick File_Upload Example? > After reading about file uploading on the PHP website it doesn't > actually give an example to use for testing purposes. Can somebody > provide me with a very simple and basic file upload example that I can > start from and work with. Thanks for any help ahead of time. > -Smileyq > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#66696) next »