Dark57 Posted March 29, 2010 Share Posted March 29, 2010 I'm just learning PHP and I got my WAMP server working, to what I hope is properly. Yet I'm trying to write a simple Hello World tutorial and I'm getting no output. <html> <body> <?php echo "Hello World"; ?> </body> </html> This should write Hello World to the page right? Its saved in my WAMP's www directory folder with the index.php file and it has a .php extension. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/ Share on other sites More sharing options...
Dark57 Posted March 29, 2010 Author Share Posted March 29, 2010 Forget it, I used 127.0.0.1/hello.php and it worked. I don't know why they didn't mention this in any of the tutorials I've looked at. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033592 Share on other sites More sharing options...
zeodragonzord Posted March 29, 2010 Share Posted March 29, 2010 By Wamp's default, you should be able to get to the page within http://localhost . In your case, http://localhost/hello.php . Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033593 Share on other sites More sharing options...
Dark57 Posted March 29, 2010 Author Share Posted March 29, 2010 The http://localhost/hello.php didn't work, but 127.0.0.1 is working so I think I should be good now. Thanks though. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033597 Share on other sites More sharing options...
zeodragonzord Posted March 29, 2010 Share Posted March 29, 2010 If you go directly to http://localhost it should show up the Wamp page. It has done that for me each time I have installed it. Towards the bottom half of the page, it should show the list of folders within your www directory. Wamp is a very useful tool, I use it all the time. Enjoy. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033606 Share on other sites More sharing options...
Dark57 Posted March 29, 2010 Author Share Posted March 29, 2010 Oh, yeah that works. Thanks for that tip Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033611 Share on other sites More sharing options...
zeodragonzord Posted March 29, 2010 Share Posted March 29, 2010 One more thing, from that Wamp page, there's a link to PHPMyAdmin, where you'll be able to access your databases through your browser. Another useful tool. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033615 Share on other sites More sharing options...
Dark57 Posted March 29, 2010 Author Share Posted March 29, 2010 Thanks for all the tips, I'm going to explore through WAMP more and go through more tutorials after work. Link to comment https://forums.phpfreaks.com/topic/196877-so-i-must-be-doing-something-wrong/#findComment-1033619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.