|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2003
Location: Gooch city
Posts: 9,527
|
Whats the best way to learn php?
I can read and understand the logic of php when i read other ppls coding.
It gets alil difficult when they do arrays, but whatever the case.. I was wondering whats the best way to go about learning php? just write it and see where it goes? tips? tricks? etc? :D
__________________
Someone finds you... 2007 PS: Nationalnet is the best host I've ever had. And i tried alot of them. |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
buy a big ass book to use as reference other then that jump right in
|
|
|
|
|
|
#3 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
http://www.oreilly.com/ |
|
|
|
|
|
|
#4 | |
|
New owner of GFY
Join Date: Jan 2006
Posts: 49
|
Quote:
As you can see, I'm a master coder. If you want to do something like that, we'll need to read a few books on the subject.
__________________
You got a problem with me? Give a call bitch: Arlo Gilbert 1-775-841-6031 |
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Dec 2002
Location: Sweden/Spain you sum bitch!
Posts: 6,576
|
Yo! I am also trying to learn it right now. Here are some tips:
1. Essential PHP Video course, available online on Lynda.com (25 bucks per month, well worth it - and you get to view all other tutorial aswell) 2. There is a VTC (the company who makes them) video course on php + mysql floating around on P2P - get it. 3. Download any of the hundreds of ebooks available. Visit the millions of php tutorial sites around |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Dec 2002
Location: PEI, Canada
Posts: 6,924
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
There's tons of references online to negate needing to buy a book.
Just start simple and work your way up to harder stuff. I think the best way is to give YOURSELF projects that you want to do and figure out how to do them: Say start off with just reading a directory list of images from a folder and being able to display sets of 10 on a page with links to the other pages. Shit like that. Use code from online tutorials to help achieve your goal, but don't go further until you understand what that code does -- put it into a function of your own, for instance. The hardest thing for me was getting associative arrays down, just cuz they seemed so foreign. Once I got over that (albeit simple thing, now that I look back) everything else didn't seem so hard to understand -- I guess I wasn't "afraid" of the language anymore.
__________________
Your post count means nothing. |
|
|
|
|
|
#8 |
|
mmm yeah!
Industry Role:
Join Date: Feb 2005
Location: roseville, ca
Posts: 5,061
|
trial and error, good luck!
|
|
|
|
|
|
#9 | |
|
New owner of GFY
Join Date: Jan 2006
Posts: 49
|
Quote:
__________________
You got a problem with me? Give a call bitch: Arlo Gilbert 1-775-841-6031 |
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
everything is easy except dynamically generated multidimensional arrays, those always give me a headache
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Jun 2005
Location: NoCal
Posts: 184
|
learn the concepts, too...
<soapbox>
If you have trouble understanding arrays, then you shouldn't be programming. You always need to understand the concepts in order to fully understand your own code, let alone looking at someone elses. If you can't fully understand arrays, then how will you ever grasp the concept of OOP. The great thing about php is that it is really easy to get into. The bad thing about php is that it is really easy to get into. I have seen so much bad programming that it would be comical if I wasn't paid to actually fix all of the stupid designs that other people made. If you really want to learn how to be a good programmer, I would recommend finding a really good online tutorial, and working with a tutor or a friend who can really explain the concepts to you so you fully understand the methodology. You might also want to try learning C++ (will help will memory management) and Java (will help with OOP). Both Java and C++ have a similar syntax to PHP. If you have the time, you may want to try a community college programming course to give you a solid background. As was said before, if you're just copying and pasting tutorial code into your own, it won't further your understanding of the principals of language. Learning the syntax is easy -- it's the principals of programming that you also need to become familiar with as well. Good luck, and may the shwartz be with you. </soapbox> |
|
|
|
|
|
#12 |
|
Confirmed User
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
|
Read Read Read Read Read Read Read. 90% of PHP code out there is pure total crap. Chances are if youre learning it by reading someone elses code, its like learning nutrition from.. say.. Rosanne Arnold. I know its always tempting to try to learn as fast as you can and jump in and start coding right away, but take your time and really learn it. Most PHP programmers dont.
PHP's curse is that its a little too easy, people pick up a copy of 'Teach your self web programming with PHP in 24 hours!" and think they are master web programmers. Most PHP programs are a mess of spahgetti code that rivals even the messiest perl code. If you have the cash to shell out 20 bux a month I would suggest a subscription to safari.oreilly.com. Its a digital library of Oreilly books (other publishers as well) with books on all aspects of programming. |
|
|
|
|
|
#13 |
|
Confirmed User
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
|
And if its web programming your into, Im gonna take this opportunity to plug ruby on rails. My new favorite web development framework. Ruby is also a much better general purpose programming language than PHP, IMHO.
|
|
|
|
|
|
#14 |
|
Confirmed User
Join Date: Oct 2005
Location: Charlotte, NC
Posts: 908
|
rubyonrails.org
|
|
|
|
|
|
#15 |
|
Confirmed User
Join Date: Feb 2002
Location: vancouver, bc
Posts: 963
|
pussies
http://www.php.net/manual/en/ always read the comments. if you need more, find another job or hire someone else to do it |
|
|
|