Re: Upload dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 path is correct while you set
the directory.


More information on how to use ini_set to set the directory path- try
googling...

Gaurav Kumar
blog.oswebstudio.com



On Fri, Dec 11, 2009 at 10:59 AM, kranthi <kranthi117@xxxxxxxxx> wrote:

> 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' => string '/tmp/phpbSZ6WP' (length=14)
>
> var_dump(file_exists($_FILES['file']['tmp_name']));  gives me  (/tmp
> has permissions drwxrwxrwt and i never used file_move_upload or any
> similar functions)
> boolean false
>
> am I missing something here?
> Kranthi.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux