Jump to content

[SOLVED] im completely new and need some answers


trueryder

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.