RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

How To Create A Free Web Host

Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: How To Create A Free Web Host

  #10  
Sep 5th, 2005
Create folder on the fly:[php]// get folder name - user define
$folder_name = $_GET['fname'];
// where the folder need to be created
$path = 'user/';
// check if folder already exists, if not create new folder
if (!is_dir($folder_name)) {
mkdir($path.$folder_name, 0777) or die ('Could not create folder');
}
[/php]Do check php.net for permission mode. 0777 is open to public to read, write and execute.
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:39 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC