Page 1 of 1

another file uploading problem

Posted: Sun Nov 06, 2005 7:46 am
by ben_albrechts
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?

Posted: Sun Nov 06, 2005 1:01 pm
by ambivalent
Among other things, phpinfo() will give you the name of "upload_tmp_dir".

Posted: Sun Nov 06, 2005 2:57 pm
by ben_albrechts
it says : no value

Posted: Sun Nov 06, 2005 3:39 pm
by ambivalent
Indeed. And what is the value of "file_uploads"? If it's "Off", you'll have to find another way.

Posted: Sun Nov 06, 2005 4:38 pm
by ben_albrechts
no says file_uploads is on.
God it's all confusing me

Posted: Sun Nov 06, 2005 5:01 pm
by Jeroen Oosterlaar
Are you sure you need to define the path to the uploaded tempfile? As far as I know the path is already included in the the $_FILES["_somename_"]["tmp_file"] property.

Posted: Sun Nov 06, 2005 5:20 pm
by ambivalent
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.

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.
I suppose just give it a try with the system default and see what happens?

Posted: Mon Nov 07, 2005 1:58 pm
by ben_albrechts
Thank you to everyone who's helped. It's solved now.
I dont know why I got so confused , i used system defaults and it works without a problem.
So thanks