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 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]