dselva Posted May 16, 2007 Share Posted May 16, 2007 How to create a new html or PHP file, when user creates a new profile. I need to create new page like http://www.domainname.com/username/index.html Plz help me... Thanks in advance, selva Quote Link to comment https://forums.phpfreaks.com/topic/51616-how-to-create-html-or-php-file-using-php/ Share on other sites More sharing options...
Orio Posted May 16, 2007 Share Posted May 16, 2007 The fopen() function is also used to create files. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/51616-how-to-create-html-or-php-file-using-php/#findComment-254319 Share on other sites More sharing options...
Guest prozente Posted May 17, 2007 Share Posted May 17, 2007 What I've seen done in these cases is you'd use mod_rewrite or an alias and have it pass the path sent to a single script. This script would the n parse the path to get the username and would query and database, pull the users information and output it according to a template. Quote Link to comment https://forums.phpfreaks.com/topic/51616-how-to-create-html-or-php-file-using-php/#findComment-254983 Share on other sites More sharing options...
boo_lolly Posted May 17, 2007 Share Posted May 17, 2007 What I've seen done in these cases is you'd use mod_rewrite or an alias and have it pass the path sent to a single script. This script would the n parse the path to get the username and would query and database, pull the users information and output it according to a template. that's what i would recommend. only because you'll save harddisk space AND you'll conserve resources. if you're running an apache server, this can be relatively easy. Quote Link to comment https://forums.phpfreaks.com/topic/51616-how-to-create-html-or-php-file-using-php/#findComment-254997 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.