can somebody tell me how to run php scripts?
When I run the following page (http://localhost/php.php) <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> i just get a blank window titled PHP Test. The Hello World does not show. I have installed Appache. Can somebody please tell me what else I need to do?
Public Comments
- Some version need () in the functions like so: <?php echo '<p>Hello World</p>'; ?> Turns to <?php echo ('<p>Hello World</p>'); ?>
- Do you have apache configured to run PHP files?
- Make sure you have PHP installed. After that, you need to configure both Apache and PHP to work. Here is a link that helped me out, it's very simple to follow http://www.ricocheting.com/server/php.html After configuring, it should start working. Good luck
- Make sure that you have installed mod_php and the necessary php interpreter as well as the apache web server.
Powered by Yahoo! Answers