Log in

View Full Version : Best way to learn PHP basics



Tom S
08-02-2006, 01:41 PM
Can anyone suggest the best way to go about learning some basic PHP coding?

I have recently begun work on a website and trying to take the easy option, being a newbie to website design, I purchased a template which is coded in PHP.

I am trying to customise my template to make it more original, using Dreamweaver as an editing tool. I can handle some of the very basic changes through trial and error etc but I would really like to gain some basic knowledge of PHP which would help me in this sort of task.

Any reccomendations of where to start?

Thanks.

shachi
08-02-2006, 01:49 PM
http://goodphptutorials.com/category/basic-and-beginner

Here are some books:

http://www.computer-books.us/php.php

jr_yeo
08-02-2006, 05:05 PM
bookmarked it :p tnx :D

<edit>
@tom s here's another http://www.php-mysql-tutorial.com/

blm126
08-02-2006, 11:42 PM
I recommend this http://www.w3schools.com/php/php_intro.asp

jr_yeo
08-03-2006, 12:37 AM
bookmarked it :D

superjadex12
08-05-2006, 07:50 AM
Gotta put my two sense in here.
A great site that I use frequently is :

http://devzone.zend.com/node/view/id/627

It used to be a lot nicer (visually) but they changed it , I don't know why.
But I highly recomend this because the writer teaches in a very friendly and simple manner. I would just that over any text-book style any day!

zeropsi
08-06-2006, 03:51 PM
set up your own LAMP (http://www.lamphowto.com/) box on your local machine, download some open source php scripts, and then play around with them, seeing what code does what.

getting your hands dirty is always the best way to learn.

Twey
08-06-2006, 04:19 PM
Agreed.

You do need a basic knowledge of the language before doing that, though. Another good way to learn is by teaching other people. Lurking on these forums, or IRC (#html, #css, ##javascript, ##php on Freenode), and answering people's questions has improved my knowledge no end :p

superjadex12
08-07-2006, 12:34 AM
set up your own LAMP (http://www.lamphowto.com/) box on your local machine, download some open source php scripts, and then play around with them, seeing what code does what.

OR you can take the easy way :

http://www.apachefriends.org/en/xampp.html

Xampp! My best friend. To install, just download and run the exe. Loads just like any program. It has full LAMP capapilities ie. runs apache php, mysql with local phpmyadmin.

Funny thing is I have been using it to test php for 6 months or so and just barely figuered out how to run local mysql. Every since then- I can't stop coding!

Hope this helps as it really really really helped this novice . Proud to say I'm getting better!

Twey
08-07-2006, 01:02 AM
I don't see the point, of the Linux distribution at any rate. Installing Apache, MySQL and PHP is a cinch.

superjadex12
08-07-2006, 01:15 AM
well if you are running microsoft os than it would be easier wouldn't it ?

Honestly I wouldnt know if its a cinch or not as I don't run Linux. logically though, wouldn't the majority of beginning coders be running microsoft or at best, mac osx. Keyword being beginners.

What "average" computer guy would run linux ? (as I know I'm opening myself up to debate on these assumptions but seriously, If bob and joe went down to the local computer store: no linux in site. )

Twey
08-07-2006, 01:56 AM
What "average" computer guy would run linux ?What "average" computer guy would be trying to set up a websever on his home PC?

superjadex12
08-07-2006, 03:09 AM
:) Hope you don't take this as a constant battle or anything, but in regards to your question:


What "average" computer guy would be trying to set up a websever on his home PC?

a newcomer to PHP looking to "get his hands dirty" and as advised by forum replies sets out to setting up said webserver.

Come on OP back me up on this! Bet you a dollar you are running microsoft/osx aren't ya ?!

Dakon Barton
08-07-2006, 07:41 AM
had to toss my 2 cents in :) i basicly lurk on forums like these learning from others, also good place to look if you have a problem is the google groups. As for setting up a webserver on a home pc it's been my thought that in a testing enviroment (not ment for public by any means) its been alright to set one up, but for hosting it via the web from a personal pc isnt the best choice. granted you can setup a test forum and test it that way or even if its a stand alone php script do it that way just saves time uploading (which on slower connections would be a good thing):confused:

superjadex12
08-07-2006, 10:29 AM
yeah exactly, Dakon. We are talking about for development purposes only.

And as for your other comments, well that's why I felt it important to share XAMPP. It's pretty much plug and play for us pc users. I am in no way promoting microsoft over linux, its just a fact that microsoft has market share on us "average" users.

Also regarding forums, and database-run sites: That's why I cant stop coding! I just found out how to run local mysql host. Xamp has a fully functional phpmyadmin. You can run mysql backend and test to your hearts content. Then when you're ready to go live, just import all tables to your live mysql. Done.

Haha, I guess I am on a mission or something. Because as a self proclaimed novice, xampp was pretty much heaven sent. If things are better etc, etc, I guess with time I will move up to that. But from a novice point of view. I like xampp.

Twey
08-07-2006, 11:21 AM
Xamp has a fully functional phpmyadmin.I think phpMyAdmin should be banned :-\
I never got the hang of MySQL until I stopped using that thing. I mean, I used it, but I never quite understood what it was I was doing, never got a "feel" for the language.

Definitely much better to use the CLI client, in my opinion.

blm126
08-07-2006, 03:10 PM
But from a novice point of view. I like xampp.

Xampp is a good way to get running fast, but have you ever tried to do it yourself? It's not as hard as you think and it's a great learning experience.


Definitely much better to use the CLI client, in my opinion.

However, most hosts only provide PhpMyAdmin. So it's a necessary skill.But I have never used the CLI client ,and might take your recommendation and see if my MySQL skills get any better.