Its mostly variables. like this. (Not going to syntax check right now, in a hurry.) <? $lol = http://www.sandsword.com header('Location:$lol') ?> That would redirect to sandsword.com It would be just like typing. <? header("Location:http://www.sandsword.com') ?>
I learn it through w3schoos.com. They have very good tutorial. I had prior knowledge about asp so it was easy for me learn through websites.
Screwing Up, LOL! another best way of learning PHP. I do not know much about PHP but I learnt HTML and CSS by viewing page source in notepad and understanding the way it has been coded. Right click on webpage select "View Source" from pop up menu. I advised many of my friends (who a interested in learning HTMLs) to follow this way. Now they all are able to make html websites.
I learnt just by using php.net. The comments at the bottom of function outlines are invaluable. They anticipate what you are trying to achieve, not just pedantic stuff.. I already could code perl so wasn't too hard. If you get an environment like Zend it will do nice syntax highlighting and pop up parameters for functions for you.
I also learn by trial and error. if you already have some basics in java/c/html etc it's a lot easier. A lot of trial and error...ok more errors...then it gets better. i can't really stand reading a think book on php james
I have learned what I need when I needed it. When I want to do something new I just Google for how to do it in PHP and see how others have done similiar things. It also helps that I have been programming in C++ for almost 10 years now (PHP seems to look a lot like C++)
I have been developing application esp using visual basic and sql server. before using PHP i did some development using ASP and ASP.net , so things was not unfamiliar. When I need any help in PHP , i search web for tutorial or reffernce.
I primarily learnt it through trial and error, and looking through the source code of CMS's and BB's. It also helped reading lots and lots of tutorials on the internet and the php.net site. Previous knowledge of some java and some other languages based on C helped aswell.
I've been doing php for about three or four years now. The secret is to find someone who is also very "into" development and try to team up and share knowledge. I had a php mentor basically -- and I started out by trying to develop a fairly complex CMS -- I made a lot of silly mistakes, and looking at the code now, ... wow, its a mess - but I learned all about the libraries, etc that are available from that project. btw, php.net is your friend. That site is awesome. Plus there is SUCH a large php community, you just need to read read read!
Open some basic scripts and try to understand each line, if you don't know what it is doing, then look up the function on www.php.net or Google it until you know what that line is doing. Try to create some basic scripts of your own, even if you don't know where to start, just create a new file in Dreamweaver, and search Google/PHP.NET, take bits and pieces from other scripts/function examples to create your own. Test it out, fix any errors, and repeat until it works.
I dont think anyone here has learned php. Well I know myself I am always learning new things, new ways and faster ways. However I have started learning by online tutorials, and editing other peoples script. I made my first script this year, and now am creating a web search engine {however its not just php}
I simply made a dummy project that will help me learn php, from a simple date manipulation then went to advance, also do allot of reading of php tutorials