how to create expander dynamically?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.