TMP directory problem
| From: | Ryan A | Date: | Wed, 14 Jan 2004 00:35:51 +0000 |
| Subject: | TMP directory problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174498@lists.php.net to get a copy of this message | ||
Hi,
I'm using a class to write some values to a file on our server....it used to
work fine but not anymore since i moved servers...
This is the code I am using:
if (!copy($filename, $tempfile))
{ $this->error("FATAL cannot create backup file [$tempfile]
[$php_errormsg]",1);
exit; // Just in case }
And this is the error that I am getting:
ERROR FATAL cannot create backup file [/tmp/forteMaqph] []
When I had a look at the servers phpinfo and I saw that both
"upload_tmp_dir" and "user_dir" have
"no value" and "no value" set for them.....how do I change it (via a
.htaccess file as I dont have access to the
php.ini) so that I can write the data as required from my script?
Thanks in advance.
Cheers,
-Ryan