|
|
 |
Re: FN-FORUM PHP problem
date posted 1st July 2002 15:27
Have a read of
http://www.php.net/manual/en/features.file-upload.php
I think you'll find you should be using
move_uploaded_file($HTTP_POST_FILES['file']['tmp_name'],
"../update/img1/photo_1.jpg");
// I've never used uploading in PHP so this is straight from the docs,
then
echo '';
because you are overwriting the same file!
Mike.
----- Original Message -----
From: "Stefan Savva" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, July 01, 2002 2:30 PM
Subject: FN-FORUM PHP problem
Hello there,
I wondered if anyone had 5 minutes that could help me with a little PHP
problem.
I am trying to create a file upload that saves a new image over an exiting
one as a flat file, NOT into a Database. I have one page that contains the
HTML form which posts to the image confirm page.
The HTML form
Photo to upload:
THE image_confirm page
Many thanks,
Stefan Savva
New Media Designer
07720 294 642
www.stefansavva.net
[EMAIL REMOVED]
================================================================
= ************************* SilkPHP ************************** =
= ---------> Free PHP Scripts for your web sites |
 |
|