help with learning php
I want to know if I can learn how to write scripts with php alone or do I also need to have some html code to go along with the php.
Also, what are some of the best sites for learning and testing php for a beginner?
So how would a person be able to know if the script they wrote is good. Is there something like a validator for php as there is for html?
Originally Posted by NogDog
There are syntax checkers built into most decent code editors that will tell you if you have made relatively simple errors in using the language, but that's the easy part. That won't tell you whether the program does what you want it to do, or just as importantly, that it does not do things you don't want it to do. That's where various types of testing come into play (unit tests, integration tests, system tests, load tests, performance tests, and so forth).
Originally Posted by ytesfay80
But then that's the same with HTML: a validator will tell you if you have well-formed HTML, but it won't tell you if the content makes sense, if all the links actually link to something, how the page looks in different sized displays/devices, how well Google will understand what it's about, etc.
Ultimately, HTML is easy, it's just a text mark-up language with no program flow control, data processing, and so forth. Using a programming language to write software is another kettle of fish: it by no means has to be rocket science for most web programming, but there is a lot more to it than just learning the syntax. I'm not trying to scare you off, just help you realize it's a different sort of thing that will have a much higher learning curve. But if you found learning HTML and CSS to be fairly easy, then you probably have a logical mind, which is a good starting place. Just be aware that there is a lot more to learn to write non-trivial software, but it's also, for me anyway, a lot more interesting and rewarding.
Is there any book(s) that you found helpful with learning php?
Originally Posted by NogDog
Thanks for the response. I appreciate that.
I don't really know what the best beginning books are these days. I started learning PHP over a decade ago, and a lot has changed since then. I might start here on the O'Reilly site, and see if there are any books with decent ratings that target beginning developers (preferably one that includes both PHP and MySQL).
Also search the web for "wampserver" (Windows only) or "XAMPP", which provide installers to help you install and configure PHP, MySQL, and Apache on your own computer so that you have a local web server you can experiment and develop on.
Larry Ullman has a good series of books on PHP - I read one of his books on PHP OOP. http://www.larryullman.com/
You can definitely learn how to write php alone. The key for myself, as I'm not the quickest at picking things up, was to be persistent and not to lose heart in what I was trying to do.
If its web development you're wanting to do then HTML and CSS would be a better subjects to learn first.
I initially found some good tutorials on Lynda.com which taught me the basics of the php language I think the author was a guy called Larry Ullman or something like that.
Last Christmas my brother bought me a book by Lorna Mitchell (http://shop.oreilly.com/product/9780987090874.do) I was lucky enough to have a couple of weeks with her on a course (paid by the company I work for), but the book basically covers everything she taught. I use the book only for reference but its a good book.
Best website in my opinion is php.net (http://www.php.net/manual/en/langref.php) It has everything!
The best advice I could give is.... Get stuck in!
You can watch videos, read books and ebooks but nothing can help you more than physically doing something. Give yourself a small project to do, set yourself a time to do it in and give it a good go.
Best of luck and enjoy!!
Install XAMPP on your computer, and work your way through a book on PHP that you enjoy. (Emphasis on the word 'work' -- don't just read it.)
It is a great step to start programming use PHP...you can visit w3schools as your tutorial. Nice Try
Originally Posted by parkerfrank32
You can try codecademy.com, will help you get the basics down
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread