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:xampphtdocs. The following line is in between html "body" tags.
<?php echo '<p>Hello World</p>'; ?>
- Disabled World Wide Web Services from using port 80 as that caused an error on my xampp control panel.
- Disabled mySQL56 from using port 3306 as also caused an error on my xampp control panel. At this point, when I turn on xampp control panel, everything looks fine (I say this because all i can see is blue and black writing) except it says I am not running with admin rights.
- When I type in http://localhost/hello.php on either Chrome or Firefox, I get "This webpage is not available." error.
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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…