You are here: Re: Creating a Directory « PHP « IT news, forums, messages
Re: Creating a Directory

Posted by Labunski on 10/09/18 11:13

I think you could use php function mkdir() to do this.

mkdir("/path/to/my/upload_dir", 0777);

But unfortunately there is big "BUT" aka Safe_mode.
To use this mkdir() function, you have to disable the Safe_mode on the
server :(

"Note: When safe mode is enabled,
PHP checks whether the directory in which you are about to
operate has the same UID (owner) as the script that is being executed."

You can read more about mkdir() here:
http://lv2.php.net/manual/en/function.mkdir.php
and about chmod values here: http://lv2.php.net/manual/en/function.chmod.php

Hope this helps,
Lab.

 

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

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