You are here: Re: Defining personal upload_tmp_dir..??? « PHP Programming Language « IT news, forums, messages
Re: Defining personal upload_tmp_dir..???

Posted by Andy Hassall on 10/26/06 21:58

On 26 Oct 2006 10:42:42 -0700, "TJ" <tj_tronics@yahoo.com> wrote:

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация