You are here: Re: Cat set `upload_tmp_dir` in Windows « PHP Programming Language « IT news, forums, messages
Re: Cat set `upload_tmp_dir` in Windows

Posted by Erwin Moller on 06/05/07 12:16

howa wrote:

> Using Windows, PHP5.2
>
> ini_set("upload_tmp_dir", "c:/temp");
> echo ini_get('upload_tmp_dir'); // print out the default one
>
>
> no effect...

Indeed.

It is all in the Fine Manual.
Go to www.php.net
Search for function ini_set()
Follow the first link to the 'appendix'.

You'll see a list there.
Under the list you can find the meaning of things like:
php_ini_user, php_ini_system, etc.

In your case: php_ini_system.
This means you have to change it in php.ini or in httpd.conf.

Why is that?
For some reason PHP wants to know this value BEFORE running your script.
Reason?
(Guessing) I expect PHP must know WHERE to place the uploaded file before
executing your script.

Regards,
Erwin Moller

 

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

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