June 21, 201313 yr Hello!What was intended to do something like: A site that allows users to create their own website. There is something standard, and when you register you are associated with a folder with the files from the website and a database. how can I do this? Thank you!
June 22, 201313 yr Hello! What was intended to do something like: A site that allows users to create their own website. There is something standard, and when you register you are associated with a folder with the files from the website and a database. how can I do this? Thank you! If your asking the question you prob should'nt be doing it. There is a lot that goes in a site like that and not one explaination from me or someone else is going to really help matters
June 23, 201313 yr Author I explained myself wrong! What I want to do is the following: There is a website with simple pages, but when a user registers, it has its own pages. And the address for the page itself would be: site.com/username
June 23, 201313 yr I explained myself wrong! What I want to do is the following: There is a website with simple pages, but when a user registers, it has its own pages. And the address for the page itself would be: site.com/username U mean a profile page? having where they can create their own website is way different then a user simply having their own profile page
June 23, 201313 yr Author I forgot the concept of creating a website in a website is very vague! I've been researching and the best will be to create a page by default! And with the "get" method to ask for the username. site.com/userpage.php?username But now the question is how can this url look like this? site.com/username Convert: "/userpage.php?username" to "/username"
June 23, 201313 yr You still asking a huge question, i went through this last year when i first started studying php and programming... Simple truth its not that easy You have alot of studying to do before you make a dynamic site that makes use of a get variable. 1) You have to design and connect correctly to a database 2) you have to create the webpage 3) you have to create the right form or on submit button that leads to "that page" 4) "that page" has to call the on the database with a (for example) while function, that calls an array if certain if and if else (or case or else conditions) are meant to ensure the user is who they say they are 5) "that page" calls on the get (the get function you mentioned is on of five methods i am aware of that will call the user information (get, post, session, cookies, sql call..) 6) The information from the get (or whatever) then renders information from the database (or file or folder) that you put into "that page" and that renders a dynamic page This is a simplified brief of what happens... Very simple and there are errors in what i say, so i could explain it to someone who needs to walk before they runI know what i am talking about i was where you were a year ago
June 23, 201313 yr If you want to run before you walk follow the link below, i still havn't found anyone who explains better than adam, online and for free. But as its been pointed out, if your asking this question your not ready. http://www.developphp.com/list_php_video.php#How_to_Build_a_Social_Network_Website
June 23, 201313 yr the question is how can this url look like this? site.com/username Convert: "/userpage.php?username" to "/username" You will need to add a mod_rewrite rule to your .htaccess file. It looks more complicated than it actually is. There are various online tutorials which will explain the concept and technique.
Create an account or sign in to comment