How to start with PHP ?

best way for me is to pick up a book and do small projects on the way a lot of online free schools now that teach and give u projects.
 
There are a lot of resources to learn php, you can try w3schools.com. It's a great tutorials for beginners.
 
I suggest you to start work on a simple project - for instance - a simple CRM solution to handle email addresses (add emails ,delete emails, send an email to all the emails at once)
You will learn a lot during the development :)

good luck sir!
 
My start was like this.

Figure out some project you want to work on it and then start step by step. Searching on forums documentations problems about it. Trust me it works.
 
My start was like this.

Figure out some project you want to work on it and then start step by step. Searching on forums documentations problems about it. Trust me it works.
You should at least learn the basics of PHP before attempting to work on a project.
 
I highly recommend laracasts.com ... the lessons might be a bit advanced, but there are good starters too. It it will teach you good coding practices. Usually when you start out using tuts on the web, you tend to end up writing spaghetti code.
 
If your OS is Windows, try installing WampServer and see if you like it. This software will install a 'debug' version of Apache + PHP + MySQL. This allows you to code scripts with notepad files on your local harddrive.

Cheers and good luck.
 
Torrent some video tutorials, this is the quickest way to get started (10 times quicker than reading a book, and only slightly less efficient). Then learn from experience, you really need to get your hands dirty as early as possible.

Also take a look at phptherightway.com - most software devs (me included) hate php with a passion, and it's mostly because most php code written by strangers on the internet is crap. This is due to the lack of restrictive conventions in php.

I cannot emphasize enough how important it is to learn to write code "the right way". Unless you never want to collaborate with anyone...
 
I tired w3schools i found and it usefull, Go through links like
codementor.io
php-rocks
golearnphp

I found it use full.Thank you,
Good luck
 
Try buying some books about PHP :) I started programming in PHP before 2 years, i wrote website, horrible messy code, anyway it's good to write your own code and don't use frameworks from the early beginning. Knowing how things work can help you to write better code, after 1 year i started using Nette Framework, really good one, easy and fast development :)

Now i work as backend developer...
 
Try to find small practice projects and exercises online and get them done, get XAMP (whatever matches your OS) and start using notepad or any other open source IDE or text editor.
 
When i was twelve i bought this book "PHP for beginners" after i read it trough i started working on a website for the martial arts club i was training at. The book gave me the insight how i could tackle common programming logic/problems. After i started i building i mostly just visited the PHP docs on there site to find functions for my needs. I think the best way to learn is to use it in practice, it's def not something you learn overnight!
 
First of all you should understand WHY do you want to learn php?

10 years ago I knew only html. Like you. I was nube in doorways, and was doing very stupid work - I selected keywords, and for every keyword I created its own page using template like

Code:
<title>KEYWORD</title>
<H1>KEYWORD</H1>
Are you looking information about KEYWORD? 
...

Google liked such pages in those times :)

And I was spending every day 8-12 hours to create such pages because this method gave very good money.

After a week my friend give me php peace of code in 20 lines, that was doing this work. 20 lines of code in some seconds where doing the work that I was doing more than 8 hours. And this code could do this with any quantity of keywords. Real MAGIC.

After that I immediately loved php. And started to learn it with extension of this 20 lines. I was searching in google "php how to..." and COPY-PASTE with a little changes. If I didn't know what where doing any of used functions I was looking at official site php_net/manual/ru/function.strtr.php - this is very good site with examples of using of every function.

This process was unreally interesting for me, becase I was not learning php but I was learning MAGIC :)

And after a month of such learning I was able to create almost everything I wanted.

Find your own magic in any subject, and you'll learn it very quickly!
 
You should start with form processing and variables and loops in php. So you can easily interact with web
 
PHP is the language under HTML.
You will start coding with same HTML coding then when you start PHP then it'll be start as:
<?php..............................
.....................................................
</?>
It ends with it.
 
I highly recommend laracasts.com ... the lessons might be a bit advanced, but there are good starters too. It it will teach you good coding practices. Usually when you start out using tuts on the web, you tend to end up writing spaghetti code.

Yes, and while it may take a while for you to become comfortable using a framework like cake or laravel, you'll want to get there eventually, trust me, it makes everything easier if you have a decent sized website and don't need just a CMS type system.

Which means it still could not be useful for you at all, but until you know why you want to know PHP, you won't be able to pick a clear direction with your learning.

Wordpress, a scraper, just a general website, web app? Figure that out first, if you want a high performance web app for example, PHP may not be the best language to learn.
 
PHP is the language under HTML.
You will start coding with same HTML coding then when you start PHP then it'll be start as:
<?php..............................
.....................................................
</?>
It ends with it.

look like you end php like html here
 
PHP is the language under HTML.
You will start coding with same HTML coding then when you start PHP then it'll be start as:
<?php..............................
.....................................................
</?>
It ends with it.

Read that book again mate!
 
Back
Top