faqts : Computers : Programming : Languages : PHP : Common Problems : File Uploading

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 3 people (33%) answered Yes
Recently 1 of 3 people (33%) answered Yes

Entry

On Window Xp this error occure unable to create a temporary file in Unknown on line 0 -any solution?

Mar 2nd, 2005 06:36
Protik Mukherjee, Tariq Bhatti,


check for php.ini file...it has 3 entries related to uploads.

Of them one tells the path of the temporary directory to be used by PHP.
Make sure this directory is writable by whatever user ur webserver runs
under.

In Windows it is IUSER_..
In linux it is apache (or whatever configured in the httpd.conf file)

In linux if it still doesnt work, try switching off SELINUX (or else
configure it, so that it allows writes). Do a 'dmesg' to see the error