hi. I am very new at this. I made a script in php, named the file index.php. I am also using msql. I am trying to make a simple cms, so I made a table named PAGES like this: ID TITLE CONTENT EX. 1 test_example.php Blabla My problem is the following: I want to acces this page from my homepage, so that the url to look like: www.example.com/test_example.php I don't really undestand how to use the $_SERVER variable and other functions to create this page dinamically. THANK YOU!!!!
if your new in php best if you start at the beginning.. if you want some answer to you question, you will be dealing with htaccess though... its url formating.. or why dont you save your php files w/o spaces. heres some url http://www.w3schools.com
Also check if your docroot is pointing to the directory. Your docroot directory is where you should be keeping you php files.
Also, you might want to consider using a variable like this www.example.com/index.php?page=example and then rewriting the url to be example.com/example.