Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2005, 08:01 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Username Based Directory


Hello!

I am making a registration form and I would like to have the php script that parses the form to create a directory based on the username a visitor chooses.

So.. if a vistor chooses "johndoe" as a username, I would like the php script to create a directory called "johndoe" under a pre-existing directory called "users".

I know this must be really easy to do, but I can't find out how to do it in the "Beginning Apache, PHP, Mysql" book I got from you guys.

Thanks for your help!
 
Old November 18th, 2005, 04:32 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Please read about mkdir(), chmod() and other dozen functions in section FileSystem functions, anywhere: in your book, Web tutorial or php.net

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Support Indian students' finances http://scholarship.mediasworks.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
username.website.us williamwyndham General .NET 1 May 27th, 2008 09:20 PM
Get Username and system name in C# JelfMaria VS.NET 2002/2003 2 July 7th, 2005 06:01 AM
Username Changes Ben Horne Forum and Wrox.com Feedback 2 March 12th, 2004 12:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.