|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
#2 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
#3 |
|
What?
![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
#4 |
|
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 |
|
|
|
|
#5 |
|
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:
Code:
<?
//php stuff
if($variable == "me")
{
echo "
html stuff but all the " have to be \" otherwise it don't work
";
}
?>
Greets, Peanuts
__________________
the neigbours (free) WIFI makes it just a little more fun
|
|
|
|
|
#6 |
|
SitePoint Enthusiast
![]() 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) |
|
|
|
|
#7 |
|
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 |
|
|
|
|
#8 |
|
Prolific Blogger
![]() 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 |
|
|
|
|
#9 |
|
1-800-JMULDER
![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
#10 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
|
Thanks for all your help. I think it's been useful so far.
|
|
|
|
|
#11 |
|
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 |
|
|
|
|
#12 | |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2001
Location: Oklahoma
Posts: 3,408
|
Quote:
__________________
Colin Anderson ![]() Ambition is a poor excuse for those without sense enough to be lazy. |
|
|
|
|
|
#13 |
|
Mlle. Ledoyen
![]() 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 |
|
|
|
|
#14 | |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: Beyond yonder
Posts: 2,388
|
Quote:
|
|
|
|
|
|
#15 |
|
Mlle. Ledoyen
![]() 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 |
|
|
|
|
#16 | |
|
What?
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: Whistler BC originally from Guelph Ontario
Posts: 2,187
|
Quote:
__________________
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. |
|
|
|
|
|
#17 |
|
Mlle. Ledoyen
![]() 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 |
|
|
|
|
#18 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
#19 | |
|
What's HTML?
![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2001
Location: San Diego, CA
Posts: 1,709
|
Quote:
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.. |
|
|
|
|
|
#20 |
|
Chronic Insomniac
![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
#21 | |
|
Not a post-script error?!!
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2001
Location: Underneath the Earth w/ Krom (Canada)
Posts: 785
|
Quote:
![]()
__________________
![]() Promote your forum at Forum Champ Top Sites!religion-spirituality.org | BackgammonPit |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 21:13.








Promote your forum at 


Linear Mode
