Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to learn PHP?

Featured Replies

I'm a student of computer science and i want to done few projects during studies so that i can get job easily after study. I have learned html and css and i created a super nice website design and then i learn basics of javascript and now i learned basics of php from w3school and other few websites. I just know basics of php and mysql like arrays, loops, inserting and retrieving data from database. As i told that i created web design of directory website now i want to develop it, i don't know from where to start it and how cause i just know little about mysql so now where i should start.


I'll be very thankful to you guys if you can help me.

download an ebook and if your using mysql_connect I seriously recommend you learn PDO or mysqli as mysql_ is being phased out in the upcoming PHP software.

You can learn a lot from online tutorials, PHP is often used with a database but as said above, use mysqli not mysql so check that a tutorial is up to date.

http://www.tizag.com/phpT/index.php (mysql is out of date but PHP tutorial is useful).

http://www.w3schools.com/php/php_mysql_connect.asp (uses mysqli)

 

You will need the php.org manual http://uk.php.net/manual/en/getting-started.php for detailed codes

and also the PHP function list http://uk.php.net/quickref.php

and the operators http://php.net/manual/en/language.operators.php

Edited by Wickham

From my own personal experience, the best way is to build something and use the language as best as you can to build more extravagant things. Doing this will introduce you to various errors and better ways of doing things and then make you a better programmer.

 

As for PHP, try moving onto OOP.

 

Good Luck!

  • Author

i'm sorry guys i can't understand what are you saying but i think mr ben is right, i should develop few little php apps. Actually i don't need to read book cause books have only basics like arrays, loops , variables etc. I need something advanced who must have use in a website. Can anyone recommend my which applications i should develop as intermediate level.

i'm sorry guys i can't understand what are you saying but i think mr ben is right, i should develop few little php apps. Actually i don't need to read book cause books have only basics like arrays, loops , variables etc. I need something advanced who must have use in a website. Can anyone recommend my which applications i should develop as intermediate level.

 

You'd want to ready everything available if you intend to build anything. Can't just build something you have no experience in or haven't looked into. Arrays, loops etc which as you mentioned book provide information on, they provide that because it's commonly used on projects your looking to build too.

 

Try places like http://www.CodeCademy.com, http://www.TeamTreeHouse.com. Or just YouTube (I recommend phpacademy on YouTube), videos are my favourite to watch and learn from.

Actually i don't need to read book cause books have only basics

 

Don't disregard the importance of books; if you're not learning much from them then you're reading the wrong ones. I've heard good things about "Beginning PHP 5.3" by Matt Doyle despite not having read it but I may give it a shot myself soon. Find a new book that teaches both basic and advanced techniques and shows you how to apply them.

i'm sorry guys i can't understand what are you saying but i think mr ben is right, i should develop few little php apps. Actually i don't need to read book cause books have only basics like arrays, loops , variables etc. I need something advanced who must have use in a website. Can anyone recommend my which applications i should develop as intermediate level.

Hate to break it to u if u can't learn the basics like arrays,loops,variables datatypes ect... then your going to be lost at building anything then after that you need to learn things like mysqli, PDO,OOP and design patterns. This all is going to take u a few months or more depending how fast u learn

Edited by webdesigner93

I think what your looking are example you could work through

 

i'm sorry guys i can't understand what are you saying but i think mr ben is right, i should develop few little php apps. Actually i don't need to read book cause books have only basics like arrays, loops , variables etc. I need something advanced who must have use in a website. Can anyone recommend my which applications i should develop as intermediate level.

 

 

(someone just posted this on this forum)

 

http://thenewboston.org/list.php?cat=48

 

http://thenewboston.org/list.php?cat=51

 

<------ if you do one, do this is one!!

I recommend the book "PHP6/MySQL Programming - For the absolute beginner" by Andy Harris. It's really easy to read, and packed full of information.

 

Other than that, I would also recommend w3schools

I highly recommend PHP and MySQL for Dynamic Websites by Larry Ullman. Whilst it does start with the basics, the last few chapters build real world applications such as a message board and an ecommerce example. The middle chapters get you up and running with MySql and introduce you to techniques that you need to know such as security methods, regular expressions and cookies/sessions. Each of these chapters uses real world examples to demonstrate the concepts and the author presents a lot of useful programming techniques and php functions. The supporting forum is very helpful and active.

 

I initially skipped around the chapters diving into what I wanted to learn and ended up reading the whole book.

I agree with rallport that the best way to learn is to create your own applications. What I liked about the book I suggested is that each of the chapters ends with exercises for you to practice and confirm your understanding. Also there is a chapter on debugging, but as rallport noted, the best way to learn debugging is to muck about.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.