Hi,
I need a form on my website allowing people to upload there own images (which should be processed so that the images are saved on the server AND are emailed to me).
I am new to php , but from what i understand u need to know the folder where the images are temporarily saved? B-one,the server where i bought my domain and where my site is stored, do have php enabled,but the folder is hidden and i dont know how to find it. People at B-one are being no help whatsoever saying they dont even know if its possible to do that with php.
Anyone know what i should do?
another file uploading problem
Moderator: General Moderators
-
ben_albrechts
- Forum Commoner
- Posts: 33
- Joined: Wed Oct 26, 2005 3:33 am
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
Among other things, phpinfo() will give you the name of "upload_tmp_dir".
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
-
ben_albrechts
- Forum Commoner
- Posts: 33
- Joined: Wed Oct 26, 2005 3:33 am
-
Jeroen Oosterlaar
- Forum Commoner
- Posts: 37
- Joined: Sun Nov 06, 2005 4:12 pm
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
I'd always assumed that $_FILES["_somename_"]["tmp_file"] got the path info from whatever was set in php.ini and would revert to a default value if none was specified.
I suppose just give it a try with the system default and see what happens?
upload_tmp_dir
The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.
-
ben_albrechts
- Forum Commoner
- Posts: 33
- Joined: Wed Oct 26, 2005 3:33 am