View Full Version : lil php help plz
Neojag
April 7th, 2002, 16:00
does ne1 know a way to set the temporary dir were files are uploaded from within the php script? i believe i have to set the $TMPDIR environmental variable, but i cant see to find that on php's manual.
thkx
Nezzar
April 7th, 2002, 16:12
It's specified in the php.ini
Not sure if you can set it yourself. See putenv() in the php manual (http://www.php.net/manual/en/function.putenv.php)
[edit] Why exactly do you need to know that?
Neojag
April 7th, 2002, 16:15
I'm hosted by Keith, and i dont have access to the temp basedir (mainly to use the copy() function on sumthin i just uploaded). I need to do it from within the script, i cant edit the php.ini ;)
i know its possible to do this (according to Bobbi, vbulleting does it) i just dont know how ;)
btw, this is the error i get ;)
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/neojag.wonderwormonline.com/httpdocs/upload.php on line 16
Keith
April 8th, 2002, 21:03
check pm
Nezzar
April 10th, 2002, 11:52
Originally posted by Neojag
I'm hosted by Keith, and i dont have access to the temp basedir (mainly to use the copy() function on sumthin i just uploaded). I need to do it from within the script, i cant edit the php.ini ;)
i know its possible to do this (according to Bobbi, vbulleting does it) i just dont know how ;)
btw, this is the error i get ;)
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/neojag.wonderwormonline.com/httpdocs/upload.php on line 16
Doesn't vBulletin store its attachments in the db?
Neojag
April 10th, 2002, 20:53
aye, but i think it also changes the temp dir (for some obscure uknown reason ;)
Nezzar
April 11th, 2002, 12:36
Maybe, I know theres a command for changing the values of the php.ini during runtime. I don't know its syntax or how it is called but there is such a command.
Ali
April 11th, 2002, 18:19
You site is soommeee piece of work maaan.....!
Ali
Neojag
April 11th, 2002, 21:49
thank you :)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.