Go Back   SitePoint Forums > Forum Index > Design Your Site > Just Starting Your Design
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Closed Thread
 
Thread Tools Display Modes
Old Nov 7, 2001, 15:33   #1
Ian Glass
SitePoint Wizard
 
Ian Glass's Avatar
 
Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
Taken’ the PHPlunge...

What, in your opinions, are the best tutorials and references for learning PHP. I’d also like any horror stories related to PHP (i.e. what I should look out for, what tripped you up, etc.). Help me learn from you vast $array(current) of knowledge. I’m a newbe at this, so I’m only half vast.

Right now, I've been to the PHP site and am reading this tutorial: http://jamhitz.tripod.com/. I’ve downloaded PHP Triad, is it any good? Please advise…

~~Thanks For the Help
Ian Glass is offline  
Old Nov 7, 2001, 15:58   #2
Aes
SitePoint Wizard
 
Aes's Avatar
 
Join Date: Jun 2001
Location: Oklahoma
Posts: 3,408
Well, if you have money, I would highly recommend buying Kevin Yank's book offered through SitePoint. If it is half as good as the on-line version, then it is worth it. But, everyone says that it is better.

If not, http://www.devshed.com/Server_Side/PHP/ is a great place to begin. I personally use PHPDev4 (similar to PHPTriad); if you want to try that out hop on over to http://www.firepages.com.au/phpdev4.htm and check it out.

Good luck -- PHP adds amazing abilities to your site.
__________________
Colin Anderson
Ambition is a poor excuse for those without
sense enough to be lazy.
Aes is offline  
Old Nov 7, 2001, 18:40   #3
Maelstrom
What?
 
Maelstrom's Avatar
 
Join Date: Oct 2001
Location: Whistler BC originally from Guelph Ontario
Posts: 2,187
I have just started (within a few days) learning php/mysql. I found some greate tutorials.

for getting started Kevin Yanks tutorial is great (I realize you didn't say mysql but most good tutorials seem to be tied in)
www.webmasterbase.com
I am not sure of the artical numbers but there is 4
www.devshed.com has tonnes of great php material also neatly serperated from mysql. Go right to the php 101 material
www.devshed.com/server_side/php/php101/

should work I hope. There is 5 articals I blieve and they teach you everything that is basic.

http://hotwired.lycos.com/webmonkey/programming/php/ is great as well

for the basics they cover jsut about everything. For how to create classes and larger scale php tutorials I am not sure.
__________________
Maelstrom Personal - Apparition Visions
Development - PhP || Mysql || Zend || Devshed
Unix - FreeBSD || FreeBsdForums || Man Pages
They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.
Maelstrom is offline  
Old Nov 13, 2001, 06:52   #4
scrivener227
SitePoint Member
 
Join Date: Nov 2001
Location: Lexington, KY U.S.A.
Posts: 16
So far, the only book I've read completely is Core PHP Programming by Leon Atkinson. It takes a pretty clear, simple approach to the language and has good examples. I understand Kevin Yank's book is good. Judging by his articles here, I don't think you'd go wrong with it.

Most of what I've learned has come from the gosh-that-didn't-work approach, using books and online articles as ready references. But overall, PHP has been pretty easy to pick up. It's soooo much easier than Perl, but from what I've found so far, it's just about as powerful a language as Perl. I've converted several apps from Perl to PHP already.

Best of luck,

--Jeff
scrivener227 is offline  
Old Nov 13, 2001, 07:07   #5
peanuts
SitePoint Guru
 
Join Date: Aug 2001
Location: Amsterdam
Posts: 772
Don't forget www.thickbook.com a good starter reference and ofcourse www.phpbuilder.com

First thing you have to learn is something I never used in the beginning and now still get bothered with is that no matter what you can always close the php tag and then reopen it.. If you do that it saves you parse errors and having to use \ all the time. quick example:

PHP Code:



<?
//php stuff
if($variable == "me")
{
?>
Just do all the HTML you want
<?
//back to php
}
?>
the way I did it first was:

Code:
<? 
//php stuff 
if($variable == "me")
{
echo " 
html stuff but all the " have to be \" otherwise it don't work
";
}
?>
Don't use echo or print for big pieces of HTML coding thats all I'm saying!!!

Greets,

Peanuts
__________________
the neigbours (free) WIFI makes it just a little more fun
peanuts is offline  
Old Nov 13, 2001, 09:36   #6
jeremyk
SitePoint Enthusiast
 
jeremyk's Avatar
 
Join Date: Sep 2001
Location: Calgary, Alberta, Canada
Posts: 69
I'm trying to hop on the PHP bandwagon, too. The best thing I did: bought a whiteboard, hung it up at my desk, and wrote down all my php notes and common syntaxes on it.
__________________
File not found. Look behind couch? (Y/N)
jeremyk is offline  
Old Nov 14, 2001, 18:06   #7
RKuhle
What's HTML?
 
Join Date: May 2001
Location: San Diego, CA
Posts: 1,709
I also suggest that you read and study other peoples code as well. Try to decipher what their script is doing.

At the same time, try to pick up on their programming style. Learn proper indentation and get in the habit of documenting your code very early on.

This is just personal preference, but learn modular coding. It's much easier to use and read, not to mention easy to write. I've seen a lot of scripts lately that don't use this, drives me nuts!
__________________
Ryan Kuhle - A Proud Advisor - Got Questions? Just Ask!
Get your website started for less than $20! Click Here
RKuhle is offline  
Old Nov 14, 2001, 18:51   #8
Technosailor
Prolific Blogger
silver trophy
 
Technosailor's Avatar
 
Join Date: Jun 2001
Location: Before These Crowded Streets
Posts: 9,483
I'm still learning. I'm trying hard and picking up the logic. Logic is easy thoguh. It's the actual coding that always trips me up.

I guess www.phpbuilder.com, www.devshed.com.

Those 2 and of course the SPF's here are my best learning aid.

Sketch
__________________
Aaron Brazell
Technosailor


Technosailor is offline  
Old Nov 15, 2001, 02:01   #9
JMulder
1-800-JMULDER
 
JMulder's Avatar
 
Join Date: May 2001
Location: The Netherlands
Posts: 1,749
There's a very helpfull thread in the PHP Forum:

http://www.sitepointforums.com/showt...threadid=18699
__________________
Jeroen Mulder

w: www.jeroenmulder.com
JMulder is offline  
Old Nov 19, 2001, 22:42   #10
Ian Glass
SitePoint Wizard
 
Ian Glass's Avatar
 
Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
Thanks for all your help. I think it's been useful so far.
Ian Glass is offline  
Old Nov 24, 2001, 23:49   #11
fashola
SitePoint Guru
 
Join Date: Apr 2000
Location: Paris
Posts: 618
Kevin's book

By the way and just to add that most of us who read the articles of Kevin should buy his book.

It's a moral obligation but for the fact that there are no provision for sale via international orders/money transfer systems many people cannot buy.
__________________
fash
fashola is offline  
Old Nov 25, 2001, 10:09   #12
Aes
SitePoint Wizard
 
Aes's Avatar
 
Join Date: Jun 2001
Location: Oklahoma
Posts: 3,408
Quote:
Originally posted by peanuts
... Don't use echo or print for big pieces of HTML coding thats all I'm saying!!! ...
Why not? I prefer to use echo() to print out the HTML coding so the interpreter doesn't have to continually jump in and out of parse mode. Have you had any bad experiences with this? -- it's always worked fine for me.
__________________
Colin Anderson
Ambition is a poor excuse for those without
sense enough to be lazy.
Aes is offline  
Old Nov 25, 2001, 10:25   #13
seanf
Mlle. Ledoyen
silver trophy
 
seanf's Avatar
 
Join Date: Jan 2001
Location: UK
Posts: 7,181
It is slower Colin

Sean
__________________
Harry Potter

-- You lived inside my world so softly
-- Protected only by the kindness of your nature
seanf is offline  
Old Nov 28, 2001, 15:47   #14
Ian Glass
SitePoint Wizard
 
Ian Glass's Avatar
 
Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
Quote:
Originally posted by peanuts
First thing you have to learn is something I never used in the beginning and now still get bothered with is that no matter what you can always close the php tag and then reopen it..
Could I not use the "Here Document" for long pieces of HTML?
Ian Glass is offline  
Old Nov 29, 2001, 11:59   #15
seanf
Mlle. Ledoyen
silver trophy
 
seanf's Avatar
 
Join Date: Jan 2001
Location: UK
Posts: 7,181
You can, but you can just jump in and out of PHP

Sean
__________________
Harry Potter

-- You lived inside my world so softly
-- Protected only by the kindness of your nature
seanf is offline  
Old Nov 29, 2001, 12:05   #16
Maelstrom
What?
 
Maelstrom's Avatar
 
Join Date: Oct 2001
Location: Whistler BC originally from Guelph Ontario
Posts: 2,187
Quote:
Originally posted by seanf
You can, but you can just jump in and out of PHP

Sean
Isn't that quite a bit faster than the here doc???
__________________
Maelstrom Personal - Apparition Visions
Development - PhP || Mysql || Zend || Devshed
Unix - FreeBSD || FreeBsdForums || Man Pages
They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.
Maelstrom is offline  
Old Nov 29, 2001, 12:08   #17
seanf
Mlle. Ledoyen
silver trophy
 
seanf's Avatar
 
Join Date: Jan 2001
Location: UK
Posts: 7,181
It should be faster, but not by a massive amount

Sean
__________________
Harry Potter

-- You lived inside my world so softly
-- Protected only by the kindness of your nature
seanf is offline  
Old Nov 29, 2001, 12:36   #18
Ian Glass
SitePoint Wizard
 
Ian Glass's Avatar
 
Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
Thanks Guys!

Just one more thing, when you say "faster", are you talking about the time it takes to code, or the performance of the application? I ask this because I remember from ASP that opening and closing the tags had more overhead. Are there any other performance issues I should be aware of?

~~Thanks
Ian Glass is offline  
Old Nov 29, 2001, 22:43   #19
RKuhle
What's HTML?
 
Join Date: May 2001
Location: San Diego, CA
Posts: 1,709
Quote:
Originally posted by Ian Glass
Thanks Guys!

Just one more thing, when you say "faster", are you talking about the time it takes to code, or the performance of the application? I ask this because I remember from ASP that opening and closing the tags had more overhead. Are there any other performance issues I should be aware of?

~~Thanks
Faster, is better performance. At first I was shocked that opening and closing tags was faster as well, but thats how it works!

Now that I think about it, in most cases its also faster to code.
__________________
Ryan Kuhle - A Proud Advisor - Got Questions? Just Ask!
Get your website started for less than $20! Click Here

Last edited by RKuhle; Nov 29, 2001 at 23:20..
RKuhle is offline  
Old Dec 2, 2001, 20:42   #20
hurtdidit
Chronic Insomniac
 
hurtdidit's Avatar
 
Join Date: Oct 2001
Location: North Dakota
Posts: 653
Some useful tips guys, thanks!!
__________________

"A small group of thoughtful people could change the world.
Indeed, it's the only thing that ever has." --Margaret Mead
hurtdidit is offline  
Old Dec 2, 2001, 21:21   #21
guysmy
Not a post-script error?!!
 
guysmy's Avatar
 
Join Date: Sep 2001
Location: Underneath the Earth w/ Krom (Canada)
Posts: 785
Quote:
Originally posted by jeremyk
bought a whiteboard, hung it up at my desk, and wrote down all my php notes and common syntaxes on it.
Great idea, I may try that.
__________________
Promote your forum at Forum Champ Top Sites!
religion-spirituality.org | BackgammonPit
guysmy is offline  
Closed Thread

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

 
Forum Jump


All times are GMT -7. The time now is 21:13.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved