PDA

View Full Version : A Good PHP Tutorial


Bobbo_the_Beggar
Aug 29, 2006, 05:08 PM
Does anyone know of a good, easy-to-understand, free PHP tutuorial that I can download and learn from? I am highly interested in utilizing the PHP server my website is hosted on. Thank you.

rudi_in
Aug 29, 2006, 05:19 PM
Thank you for posting your question to the Ask Me Help Desk.

Try this link. Hopefully it will get you started.

W3SCHOOLS (http://www.w3schools.com/php/default.asp)

There are lots of good tutorials here.

RickJ
Aug 30, 2006, 02:55 AM
Here are a couple that have been recommended to me (although I must admit I've not learned PHP yet)

http://www.zend.com/php5/abs/index.php
www.phpfreaks.com

I'd think the top hits here (http://www.google.com/search?hl=en&q=php+tutorial&btnG=Google+Search)would be good ones to check out too.

LTheobald
Aug 30, 2006, 04:38 AM
I agree with all the links above - PHP Freaks being my favourite. Some others are:

http://php.resourceindex.com/
http://www.php.net/manual/en/ - True not a tutorial but it's invaluable!

And for a super quick tutorial...
Open Notepad.
Enter the following:


<html>
<head>
<title>My First PHP Page</title>
</head>

<body>
<?php
echo 'Hello World!';
echo '<br/>';

$a = 7;
$b = 12;
$c = $a + $b;
echo "$a + $b = $c";
?>
</body>
</html>

Save this as test.php
Upload the test.php file to the folder you store your regular HTML pages
Point your browser to the address of your web site followed by "test.php". For example http://www.mywebpage.com/test.phpYou should get a page saying:


Hello World
7 + 12 = 19


Finally try changing this line:
echo "$a + $b = $c"; to use single instead of double quotes and see what happens.

Bobbo_the_Beggar
Sep 9, 2006, 07:21 PM
Thank you, everyone. I appreciate your comments!

Dadaja
Sep 3, 2010, 02:44 AM
PHP tutrial (http://phpforms.net/tutorial/tutorial.html) is one of the best from online tutorials

robertflorish
Sep 26, 2011, 12:43 AM
Scriptsdesk (http://www.scriptsdesk.com) has the collections of best php tutorials,tips & programming books.