Re: Help/Advice/Suggestions need to Upload 9 images on one submit button.
| From: | Rajesh Fowkar | Date: | Tue, 28 Jan 2003 04:19:24 +0000 |
| Subject: | Re: Help/Advice/Suggestions need to Upload 9 images on one submit button. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25188@lists.php.net to get a copy of this message | ||
On Mon, Jan 27, 2003 at 05:05:02PM +0100, Geckodeep wrote:
>Hi,
>
>Can any one guide me through the uploading file procedure please?
>Should I use copy() function to copy the image file to a temp file and
>rename it to the real name and then reference the name in the data base.
>Or is there any other way.
>Should say though my Service Provider does not support exec("cp $picture
>/full/path/to/joesauto/images/$picture_name") as explained in one of the
>article in phpbuilder by Willim Samplonius.
All file system functions are not supported ?
Otherwise you case use copy() function rather than exec().
copy($_FILES['Imagefile1']['tmp_name'],
'./full/path/to/joesauto/images/$_FILES['Imagefile1']['tmp_name']');
Here Imagefile1 is the 'name' in the html form.
<td width="30%"><b>Picture 1 (jpeg/png/gif)</b></td>
<td>
<input type="hidden" name="MAX_FILE_SIZE"
value="2000000000000">
<input maxLength="128" name="Imagefile1" type="file"
ACCEPT="image/png, image/jpeg, image/jpg, image/gif">
</td>
HTH
Peace
--
Rajesh
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : Lesser known commands (tac) LOST #165
Everybody has heard of cat, to concatanate files and print to
standard output. But have you heard of "tac" ? This reads file
reverse. Try 'tac somefile.txt' and have a look ... or better
still 'tac somesound.au > /dev/audio' ... Enjoy !
####<bish@nde.vsnl.net.in>####################################
: