PDA

View Full Version : PHP: upload_tmp_dir


Neo
04-25-2006, 9:23 PM
Is there anyway to force this to change from within a script?

I've tried to change it via .htaccess, and I don't have control over php.ini. But it only works via htaccess with "php_admin_value" which I don't have the ability to use.

I've already tried to contact my host about fixing this, but ive been ignored for 2 days, so I figure it time I look into trying to modify the script.

Anyways, I am wondering if its possible to set some kind of option from within the script to use a different tmp directory (this is what messed up my upload script and the wiki, and probably kupatrix.org as well).

So does anyone have any experience with this?

-Neo

Jeff
04-27-2006, 12:26 PM
Try ini_set()

Also, have you tried making your own php.ini in your directory? On some hosts it will use the php.ini in the current directory if it exists.

Other than that, I don't know what else you could try.

Neo
04-27-2006, 3:30 PM
Try ini_set()

Also, have you tried making your own php.ini in your directory? On some hosts it will use the php.ini in the current directory if it exists.

Other than that, I don't know what else you could try.
Yeah. Tried, it failed.

I actually temporarily fixed this using something else, I am hoping that darkstar will correctly set the upload_tmp_dir and/or adjust the basedir restrictions.

-Neo