trueryder Posted December 20, 2007 Share Posted December 20, 2007 yer as the title says im new im learning php becaue a friend of mine wants to make a web based game and i want to help but i cant work out where to write code i have seen 2-3 tutorials and none of them say where you actually put the code and save it i tried a site called 12gbfree.com but the code didnt work properly i have php 5 and have mysql like the tuts say but.....im just confused can anyone shed some light for me plz thanks in advance xxx Quote Link to comment Share on other sites More sharing options...
revraz Posted December 20, 2007 Share Posted December 20, 2007 You need a webhost that supports PHP. If that host does, then something is wrong with your code. You need to make sure you use <?php ?> tags and also to save the file as .php Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted December 20, 2007 Share Posted December 20, 2007 the php goes right into the HTML Example: save with a .php extention (index.php): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>MurderCup.com Home of the Beer Pong Social Network</title> </head> <body> <?php echo 'Hello WORLD!'; ?> </body> </html> Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted December 20, 2007 Share Posted December 20, 2007 if you are just randomly creating these pages for fun and not a business, i suggest using apache on your own computer. its free. Quote Link to comment Share on other sites More sharing options...
Jessica Posted December 20, 2007 Share Posted December 20, 2007 Also, pick up a book on PHP that will explain the basics of how this server-side language actually works. Tutorials you find online assume you already know something about programming and how to use php. Quote Link to comment Share on other sites More sharing options...
phpSensei Posted December 20, 2007 Share Posted December 20, 2007 www.wampserver.com Install that on your computer to get some good coding practice before you even beginning coding. As jesirose said, you should also get a PHP book, and learn the basics. http://books.google.ca/books?id=xFs6JpC6HNIC&dq=sams+teach+yourself+php+in+24+hours&pg=PP1&ots=cSU7Cfs192&sig=BXW6-d6MgAgTSP1QmLT46M0aM9o&hl=en&prev=http://www.google.ca/search?hl=en&q=Sams+Teach+Yourself+PHP+in+24+Hours&sa=X&oi=print&ct=title&cad=one-book-with-thumbnail Quote Link to comment Share on other sites More sharing options...
nitation Posted December 20, 2007 Share Posted December 20, 2007 I suggest you read online tutorials on php. You can google like this ; http://www.google.co.za/search?hl=en&q=beginners+to+php&btnG=Google+Search&meta= and i think there will be a better answer to your problem, also, remember to follow wat ravrez said. Ch33rs!!! Quote Link to comment Share on other sites More sharing options...
trueryder Posted December 23, 2007 Author Share Posted December 23, 2007 thanks guys i installed that wamp5 thing and havefinaly started to know what im looking at thanks for that and i am also gonna pic up a book after christmas to learn phph proper Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.