Want to know about PHP basics

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

I am 15 year boy. Can I expect help regarding the topic I want complete help i.e How to start PHP file, its functions, its script, its file extension etc.
Thanks in advance to everyone.

Busy's picture

He has: 6,151 posts

Joined: May 2001

The PHP manual is probably the best place to start.
Make a project (re invent the wheel), go to hotscripts.com or similar for ideas and options this prohect could have. Don't expect to make any money off it or for even people to use it, it is a learning process.
PHP is a fairly easy language to learn but there is a lot there, referring to the manual (function working etc) is something you will probably always do as I doubt there is a single project no matter how big that even uses close to half of what PHP has to offer.

The best way (IMO) is to learn from your mistakes, take this very simple PHP query for example:

<?php
$The_output
= "Friday";
echo
"Today is $the_output;
?>

There are two mistakes in this example, very easy ones to make and you will probably always make them, learning what the errors are, (learning how it works) is what you allow you to move ahead.
The above example wont output anything to the screen except an error message. Kind of like what the HTML validator does but without showing any code/tags.

Download yourself a php/mysql/apache bundle (firepages.com.au is one place you can get it free) and take up a project, start small, don't try make another firefox or google

The errors btw are missing quote and the variable name (one has capital T, the other doesn't)

He has: 1,380 posts

Joined: Feb 2002

I would also suggest sitepoint.com

Browse the PHP articles, they're helpful. Maybe even check out their books too, I have a couple.

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

Anyone who can help me

He has: 1,380 posts

Joined: Feb 2002

We gave you advice...programming needs to be learned on it's own.

The best thing we can say is read an article, read a book, or take a class.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.