I am trying my first Hello World app using php and xampp. I've been getting errors so far and been working through the problems one by one. So far I have:
Saved the php file ("hello.php") on C:\xampp\htdocs. The following line is in between html "body" tags.
<?php echo '<p>Hello World</p>'; ?>
Does anyone know what I am doing wrong?
Further notes: I am using Windows 7 and haven't downloaded anything from PHP.
I apologise for perhaps a too wide question. I have tried to be as specific as possible by outlining all actions I have taken.
If admin privileges did not work for you, and you are SURE that your firewall or some other app is NOT blocking Apache ... then:
Basic http://localhost/ is actually requesting port 80
Secure https://localhost/ is requesting port 443
So in Control Panel, check what ports are 'on' for Apache:
Usually the first one of 2 ports is the one you want - if there is 80, use http://localhost/ ,
if there is 443, you would use https://localhost/
...and lastly - if there is NONE of these 2, you need to write your URL like:
http://localhost:PORT_NUMBER
I hope this will help someone :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With