A basic example of some php within an xhtml webpage. I'm just showing the current time, and then loading the contents of another file into the page. Place both files in the same location and then load the index.php into the browser.
Obviously you will need to run these from a server for the php to work.
If you want to have your own local test server running to test php then download and install WAMP. It sets up an Apache server on your PC with PHP and MySQL already setup. You then just run WAMP and put your files into the WWW directory to run and test them. You access them by typing http://localhost/ into your browser.





Reply With Quote

