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

Posted by David Haynes on 11/02/05 13:47

amir.meshkin@gmail.com wrote:
> Hi,
> I'm trying to create a directory based on a variable. So lets say the
> variable is $mydir
>
> Below is the code that I am using, but its not working.
> My temporary site is
> http://www.theinformationcompany.biz/personal/flashplayer/mp3/
>
> Inside the mp3 directory is where i want to create NEW directory.
>
> <?php
> mkdir("/personal/flashplayer/mp3/WHAT GOES HERE?", 0777);
> ?>
>
> Before putting the variable there, I was getting an error message
> telling me the directory didn't exist!?!
>
The path in mkdir is relative to the file system root, not the web
server root. Lets say that your web pages are really rooted at
/myweb/htdocs in the file system. Then the mkdir path would be
/myweb/htdocs/personal/flashplayer/mp3 even though you referenced them
as /personal/flashplayer/mp3 in the browser.

-david-

 

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

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