468,242 Members | 1,727 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

Defining personal upload_tmp_dir..???

TJ
Hello All,

This is my first posting on this group and I'm also new to PHP ;-)

We have a client who is providing Web Hosting Solutions to customers.
One of the latest requirements is to enable PHP Scripting on the
Hosting Servers.
We are using PHP v4.4.0, but are running in an issue with File Uploads.
In PHP.ini file there is a config for temporary folder for uploaded
file. However, we dont want it to be pointing to a folder on the web
server itself rather we want customers to define one in their own
workspace (NAS share).

Questions:
1. Is it possible using scripts to define a personal upload_temp_dir?
If yes, how?
2. How PHP Parser works in above case (meaning will it performs usual
cleanup)?
3. Can same be done for Session.SavePath?

We are using Win2k3 Web Edition with SP1.

Thanks in advance.
~TJ

Oct 26 '06 #1
1 1680
On 26 Oct 2006 10:42:42 -0700, "TJ" <tj********@yahoo.comwrote:
>We have a client who is providing Web Hosting Solutions to customers.
One of the latest requirements is to enable PHP Scripting on the
Hosting Servers.
We are using PHP v4.4.0, but are running in an issue with File Uploads.
In PHP.ini file there is a config for temporary folder for uploaded
file. However, we dont want it to be pointing to a folder on the web
server itself rather we want customers to define one in their own
workspace (NAS share).

Questions:
1. Is it possible using scripts to define a personal upload_temp_dir?
If yes, how?
See:
http://uk2.php.net/manual/en/ini.php#ini.list
and
http://uk2.php.net/ini_set
and
http://uk2.php.net/manual/en/configuration.changes.php

upload_tmp_dir is marked as PHP_INI_SYSTEM which means you're limited as to
where you can change it, so it doesn't look like you can set it per directory
(or even per virtual host?).
>2. How PHP Parser works in above case (meaning will it performs usual
cleanup)?
n/a
>3. Can same be done for Session.SavePath?
This is even easier to set, being marked as PHP_INI_ALL which means it can be
changed within scripts, as well as in any other configuration file level.
>We are using Win2k3 Web Edition with SP1.
Presumably meaning you're running IIS, which makes per-directory configuration
overrides somewhat harder than on Apache.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tim218 | last post: by
1 post views Thread by Xenofon Papadopoulos | last post: by
reply views Thread by Robert_Wr | last post: by
2 posts views Thread by iulian.ilea | last post: by
26 posts views Thread by Cliff Williams | last post: by
1 post views Thread by howa | last post: by
2 posts views Thread by TheReckter | last post: by
1 post views Thread by howa | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.