For example, when a user adds a question to a Q&A site, that question typically gets its own web page, and that web page was created on-the-fly. How can you do this with PHP? Could anyone point me to any resources? Thanks.
By "that question typically gets its own web page" you are referring to "gets its own url". For example, this one is How do you allow users to dynamically create a web page within a web app?.
It's really just a trick. Very simplified:
questions.php
by using a module such as mod_rewrite for apache. questions.php
looks at the url parameters, takes the unique id for this question, 3723813, and loads up its information from the database in order to display it.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With