Windows XP SP3
xampp win32 1.7.7
Just to be clear, I'm trying to run this code
- Code: Select all
<!DOCTYPE html PUBLIC*-//WC3//DTD XHTML 1.0 STRICT//EN
<title>PHP Hello World</title>
<p>Hello World from HTML</p>
<p><?php echo "Hello World from PHP"; ?></p>
I've been learning PHP using David Power's book "PHP Solutions". I installed xampp several weeks ago and after the initial problem with port 80 I got everything running. I'm using Komodo 7.0 as an IDE. After working through several chapters I decided to get a better background in HTML and CSS, so I stopped working on PHP for about 3 weeks. During this time I tried to install Microsoft's C# and it trashed my system; killed my wireless connection and my mouse. I gave up on C# and got the wireless and mouse working again, and didn't think anything more about it.
Today I finished up my HTML and CSS work and returned to PHP - and found my problem.
I've uninstalled and reinstalled xampp. I've stopped IIS and the xampp control panel indicates that Apache and mySQL are running. My local host is (supposedly) c:\xampp\htdocs.
If I ignore the local host designation and enter this in the browser "file:///C:/xampp/htdocs/phpsols/PHP-HelloWorld.php" I only get the "Hello World from HTML". Just like everyone else who has mentioned the problem.
But if I use the local host designation, like this: "http:/localhost/phpsols/PHP-HelloWorld.php", the browser chokes. IE says it can't display the page, Firefox and Chrome say they can't connect to the local host.
So it seems I've trashed the local host parameter (or whatever you call it).
Does that sound correct? Is there anything I can try to repair it?
I'm about to the point of stripping the system down to nothing and start reloading XP from scratch - but I'd really rather not.