How i can create new web page dynamically in php?
-
when the user register for service, i should create new web page with his name (ex. domain.com/user.php). please help me... thanks in advance
-
Answer:
Open up a stream (output file) and create the php page with his information. Look for an Fopen function to create this.
amalan_a at Yahoo! Answers Visit the source
Other answers
Using GET is the easiest way to do that. You create a script that dynamically passes all the data to a url to be used as variables for the creation of that page. http://www.mydomain.com/urdynamicPage?name=bob&color=blue&budget=2000usd and so on. You can do something like below to create the right filenames $usrFilename = strtolower(str_replace(" ","_",$user)); $whereToPost = "users/". $usrFilename.".php"; or something like that.
Or you could use a database...
Related Q & A:
- How can I make a dynamic web page in PHP?Best solution by Yahoo! Answers
- How I can create timer in classic asp?Best solution by stackoverflow.com
- How to you switch back to the old yahoo home page. I hate the new home page?Best solution by Yahoo! Answers
- How can I block a specific web page?Best solution by Yahoo! Answers
- How do I set up a web page?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.