2009/12/11 Ashley Sheridan
>
> On Fri, 2009-12-11 at 15:44 +, Richard Quadling wrote:
>
> 2009/12/11 kranthi :
> > How can i change the temporary upload directory?
> > var_dump(ini_get('upload_tmp_dir')); gives me (and that is set in
> > php.ini)
> > string '/var/www/cgi-bin' (length=16)
On Fri, 2009-12-11 at 15:44 +, Richard Quadling wrote:
> 2009/12/11 kranthi :
> > How can i change the temporary upload directory?
> > var_dump(ini_get('upload_tmp_dir')); gives me (and that is set in
> > php.ini)
> > string '/var/www/cgi-bin' (length=16)
> >
> > but
> > var_dump($_FILES
2009/12/11 kranthi :
> How can i change the temporary upload directory?
> var_dump(ini_get('upload_tmp_dir')); gives me (and that is set in
> php.ini)
> string '/var/www/cgi-bin' (length=16)
>
> but
> var_dump($_FILES) gives me
> 'tmp_name'
my mistake didn't use move_uploaded_file to see if the uploading
is working or not in the first case
but i could not understand why
1. ini_get() is giving correct value while
$_FILES['file']['tmp_name'] is ignoring that.
2. move_uploaded_file($_FILES['file']['tmp_name'], 'file.php');
i doubt i can use ini_set in this scenario
http://us3.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK you used ini_get try using ini_set and set the temporary directory on
your server of your choice at run time in your script (top of the script or
any config file if you have one).
REMEMBER that you have access to that directory, should have full
permissions and also check the absolute server pa
6 matches
Mail list logo