Defining personal upload_tmp_dir..???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TJ

    Defining personal upload_tmp_dir..???

    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.SavePat h?

    We are using Win2k3 Web Edition with SP1.

    Thanks in advance.
    ~TJ

  • Andy Hassall

    #2
    Re: Defining personal upload_tmp_dir. .???

    On 26 Oct 2006 10:42:42 -0700, "TJ" <tj_tronics@yah oo.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:

    and

    and


    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.SavePat h?
    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 :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    Working...