Best ways to learn PHP quickly?

Status
Not open for further replies.

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,835
Points
0
Hi,

Php is more and more popular thus I am going to learn PHP now, but I don't know where to begin and fast ways to learn PHP efficiently so anyone can suggest me some ways ?

Thank you.
 

James159

New member
Joined
Aug 31, 2012
Messages
56
Points
0
If you know the basic of PHP language then you should visit w3schools where you will easily learn PHP or other langugaes.
 

Inquestor

Well-known member
Joined
Feb 1, 2013
Messages
495
Points
63
Yes, W3Schools is good.

Get yourself a host, or use WAMP on your laptop / desktop to test with PHP functionality. Use [URLnf="http://php.net"]PHP.NET[/URLnf] to search for different functions and learn how arrays be very useful.

Just for fun, I will do a little coding here.

<?php

// This is a comment

/* This is a long tail comment
You can explain as much as you want about your code
And it will not be rendered by the PHP Pre Processor
Just make sure you end it ! */

/* Below Is A Little Script To Welcome New Users To WMS */

/* Note: I have not included connection to db, this is a very simple procedure that can be learned at W3Schools. */

// Define welcome message
$welcome_message = "Welcome To Webmater Sun";

// Get IP From User
$ip = $_SERVER['REMOTE_ADDR'];

// Set timestamp
$time = time();

// Check if ip exists in db
$selectIp = mysql_query("SELECT * FROM ips WHERE ip='$ip'");

// Count how many results are returned
$count = mysql_num_rows($selectIp);

// If no rows are returned, enter ip into db and echo message
if($count == "0") {

// Insert IP into db
$insertIP = mysql_query("INSERT INTO ips (ip, added) VALUES ('$ip', '$time')")

// Echo message, notify user
echo $welcome_message;

// IP already exists, no need to welcome
} else {

// Do Nothing

// However, you could add a count and +1 to every visit from IP

}

?>

Well I had my fun for now!

Cheers!
Inquestor
 

Aalia Nebhan

New member
Joined
Jan 9, 2013
Messages
25
Points
0
The simplest way to learn php is through accessing the API. Refer php.net which provides detailed information and facts about various function, datatypes and a lot more. If you know any of the other programming language other then php, it will be much simpler for you to learn.
 

JamesTobias

New member
Joined
Dec 23, 2013
Messages
23
Points
0
PHP is an excellent open source language and there are many ways to learn it like YouTube tutorials,w3schools.com etc., most of the people don't know the Facebook site built using PHP technology.
 

web3k

New member
Joined
Dec 23, 2012
Messages
39
Points
0
Without sounding repetitive, w3schools is a great resource, but unless you have 'some' programming knowledge (even if its HTML), then you might find yourself a bit lost.

If you're looking for a 'classroom' type environment, see if Treehouse has PHP courses. They do app/java courses, so PHP should be on their list too.
 

mfscripts

New member
Joined
Feb 24, 2014
Messages
3
Points
0
Hi, there are many online courses which may be helpful, both paid and free. Obviously paid is generally better but the free ones are still good.
 

mehrishaly

New member
Joined
Apr 17, 2014
Messages
23
Points
0
W3cschools is a best platform to learn php.

You may found very detailed tutorials over there
 

Nature

New member
Joined
May 29, 2014
Messages
76
Points
0
I have to agree with Inquestor. To learn PHP W3Schools is the best option. You can also try Lynda.com there are provide video tutorial which you can easily understand.
 

NicholasK

New member
Joined
Jun 8, 2014
Messages
50
Points
0
I recommend you to start from thenewboston PHP development tutorial by Bucky..
 

aframalik

New member
Joined
Jun 23, 2014
Messages
12
Points
0
Learn through online w3cschools it is free and very detailed tutorials you may found there related to php
 
Joined
Jun 22, 2014
Messages
75
Points
8
I've had a friend learn by simply reading code, getting to understand it and then build his level of programming very slowly.

As mentioned above, start with w3schools and learn the very basics. Then grab an open source software you can learn from and spend some time studying it and trying to understand how it works.

Then start on your own very basic software and build it from there slowly slowly. Don't expect results overnight though :).
 

bestellen

New member
Joined
Jul 6, 2014
Messages
13
Points
0
A book and just practicing some applications is the best way to learn. Start with something simple, like a guest-book code, then work your way to a blog code.
 
Status
Not open for further replies.
Latest threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top