chinion Posted June 30, 2010 Share Posted June 30, 2010 Well I am 14 years old I am quite smart for my age and I really want to learn PHP and help people build games or even with a fund my own game, I have sat there for about an hour on http://www.w3schools.com and tried to learn it and cant understand one bit....is there anyone here who has teamviewer and would like to take out some time to TRY and teach me PHP in the simplest way possible please then if there is then add me on my msn.....Thanks MSN >> [email protected] Quote Link to comment Share on other sites More sharing options...
wrx Posted June 30, 2010 Share Posted June 30, 2010 PHP: A Simple Tutorial Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted July 1, 2010 Share Posted July 1, 2010 Here I am 14 and this is exactly what helped me learn PHP. It sounds really confusing but you start to understand after some basic tutorials. Just make sure you start with basic tutorials and work your way up start from the first basic video. http://www.phpacademy.org/ Its a channel on youtube. Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 1, 2010 Share Posted July 1, 2010 If you are really interested in learning php I would advise you to invest £50 in a few books, reading from a book will help you learn twice as fast I myself started online tutorials a week later I could just about male a script that could echo a $_POST variable I went to my library loaned a book in that 2 weeks I had the book i made guest book using a db (not much but it was something) now look 1.5 years on I like to think I can code to a decent standard. I'll get the ISPN of a book I brought (£30) and it covers php/MySQL. Quote Link to comment Share on other sites More sharing options...
DigitalGerm Posted July 1, 2010 Share Posted July 1, 2010 http://search.oreilly.com/?q=php - Removed. http://www.videophpblog.com/ http://www.phpvideotutorials.com/free download some http://www.phpclasses.org/ Theres no simple way dude ! Before you learn PHP in w3 school is mentioned some requirements such as JavaScript etc. Skipping those steps is hard. Books are your best teacher Makewebgames is your best teacher :) And the second teacher is Google of course ! have courage and try Google. Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 1, 2010 Share Posted July 1, 2010 Makewebgames is your best teacher It's not the best for learning it's the best place to learn mccodes eg you can't learn to set a session but you can edit mods to see how a session would be used Quote Link to comment Share on other sites More sharing options...
chinion Posted July 1, 2010 Author Share Posted July 1, 2010 Thanks for all your feedback, I will check the sites you sent me and maybe even lookin into buying the book *Later On* Learnt some basic stuff but it was thanks to phpacademy <?php $Variable = "Thanks"; $Variable2 = "Everyone"; echo "$Variable" to "$Variable2" that sent me info on what to do and where to go for my php learning stages ?> --------------------- That was just some BASIC variables Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 1, 2010 Share Posted July 1, 2010 Also I don't think any one script said php.net is invaluable look up some functions you see around the place Also you don't have to buy the book ask your local libary if they haven't got a book on php I'm sire they can get one from another libary Quote Link to comment Share on other sites More sharing options...
aha2095 Posted July 1, 2010 Share Posted July 1, 2010 http://www.phpvideotutorials.com/free - Use the old vids then when you have finished use w3scools. http://mccodes.com/viewengine.php?id=2 - Play around with this try to read code and make an add on or two or even make your own website, its better to learn by doing. I am 15 and when you get the hang of it's easy! One last note: If you get stuck google it before asking for help ;) Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted July 1, 2010 Share Posted July 1, 2010 Yeah I recommend php academy to everyone, it helps so much. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 1, 2010 Share Posted July 1, 2010 Im 15, been coding for about 2 years, and i would say i can code everything i need to and im happy with it. But i think you needa learn HTML, XHTML at the least before you learn PHP. Quote Link to comment Share on other sites More sharing options...
LordDan Posted July 2, 2010 Share Posted July 2, 2010 I personally used KillerPHP.com way back then, i found his videos to be 100% detailed and explanatory. Give them a try to get started, I was 15 when i learn and it takes about 6 months to learn and remember enough to start making a website, give or take a few months depending on your Intellect.. I'm stupid, so 6 months for me. :thumbup: Quote Link to comment Share on other sites More sharing options...
DigitalGerm Posted July 2, 2010 Share Posted July 2, 2010 <?php $Variable = "Thanks"; $Variable2 = "Everyone"; echo "$Variable" to "$Variable2" that sent me info on what to do and where to go for my php learning stages ?> Incorrect. Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 2, 2010 Share Posted July 2, 2010 <?php $Variable = "Thanks"; $Variable2 = "Everyone"; echo "$Variable" to "$Variable2" that sent me info on what to do and where to go for my php learning stages ?> Incorrect. WHY NOT TELL HIM WHERE HE IS INCORECT (soz for the caps i had caps loc k on and CBA to re write :P) chinion you need to add "" or '' arounf the text you want to echo to the page (plus a ; at the end of each line of code) and you need to add {} around the varables Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted July 2, 2010 Share Posted July 2, 2010 Here I will set up a free webhost for you to get started, private message me ok. Then I can teach you some stuff also. Quote Link to comment Share on other sites More sharing options...
aha2095 Posted July 3, 2010 Share Posted July 3, 2010 <?php $Variable = "Thanks"; $Variable2 = "Everyone"; echo "$Variable" to "$Variable2" that sent me info on what to do and where to go for my php learning stages ?> Should actually be: <?php $Variable = "Thanks"; $Variable2 = "Everyone"; echo $Variable ." to ".$Variable2." that sent me info on what to do and where to go for my php learning stages"; ?> Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted July 3, 2010 Share Posted July 3, 2010 $Variable = "Thanks"; $Variable2 = "Everyone"; echo "$Variable" to "$Variable2" that sent me info on what to do and where to go for my php learning stages ?> Should actually be: $Variable = "Thanks"; $Variable2 = "Everyone"; echo $Variable ." to ".$Variable2." that sent me info on what to do and where to go for my php learning stages"; ?> Here is an easier way to read it: $Variable = 'Thanks'; $Variable2 = 'Everyone'; echo $Variable .' to '.$Variable2.' that sent me info on what to do and where to go for my php learning stages'; ?> I prefer single quotes but thats just me. Quote Link to comment Share on other sites More sharing options...
aha2095 Posted July 3, 2010 Share Posted July 3, 2010 I use double quotes for HTML and single for PHP usually as it's easier for example: <?php $haidere= ":P";//This is a comment and you may see that I used a double quote for the variable thats just another thing I do, You can switch between the two. echo '<html> <head> <title> Ummm </title> </head> <div id="You see here!"> <body> HAHAHA DON\'T '; echo $haidere; echo ' </body> </html>'; ?> Also when something like the word "don't" needs a ' you will need to escape it by putting a \ in front of it so it doesn't interfere with the script. Quote Link to comment Share on other sites More sharing options...
DigitalGerm Posted July 3, 2010 Share Posted July 3, 2010 Double quotes accept variables inside. singles don't so //this is correct echo $Variable .' to '.$Variable2.' that sent me info on ...'; //olso echo "$Variable to $Variable2 that sent me info on..."; //and the Dayo way echo "This is my {$array['username']} with {$normalVar} plus {$array['password']} lovely ?"; Another good example: ( this way you can validate block of code (html) inside an IDE like netbeans ) <?php $haidere= ":P"; ?> <html> <head> <title>Ummm</title> </head> <body> <h1><?php echo $haidere; ?></h1> </body> </html> Quote Link to comment Share on other sites More sharing options...
LordDan Posted July 3, 2010 Share Posted July 3, 2010 Whilst we're on the subject of echo and concatenation methods, anybody use (,) rather than concatenation (.) when using echo? echo $myName ,' is ', $awesome; I was told it is faster than Concatenation and only works with Echo, I've tried it with echo and it does work without error. Anyone else seen/used this? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 3, 2010 Share Posted July 3, 2010 Ive seen and used it before, but i do tend to use the . over the , Quote Link to comment Share on other sites More sharing options...
Zeggy Posted July 3, 2010 Share Posted July 3, 2010 The dot and comma do different things in echo. The comma is for separating parameters. Think of echo as like a function: echo ('hi', 'bla', 'bla'); All this does is echo hi, then echo bla, then echo bla. The dot is for concatenating strings together. If you use echo 'hi' . 'bla' . 'bla', what PHP does is: Create a new string 'hiblabla', and THEN echo it. As you can probably guess, using comma is faster (not by much) because php doesn't need to concatenate the parts into a new string, it just echoes each part directly. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted July 3, 2010 Share Posted July 3, 2010 personally i'd think using dot would be faster because it echo's together when the comma echo's separately 1 vs 3 echo's dot would be faster IMO Quote Link to comment Share on other sites More sharing options...
Zeggy Posted July 3, 2010 Share Posted July 3, 2010 Well, string concats are more computationally expensive than just outputting text on a screen. Yes, 1 echo is faster than 3 echoes, but 1 echo + x-1 string concats is slower than x echoes. PHP needs to 'reconstruct' the string with each concatenation. So to go deeper into my previous example with 'hi' . 'bla' . 'bla', PHP does this: create new string 'hibla' create new string 'hiblabla' return 'hiblabla' Edit: this is also why it's 'faster' to use heredoc syntax rather than a whole series of $text .= 'bla'; $text .= 'bleh', etc. Or 'faster' to use echo "{$variable} blabla" rather than echo $variable . "blabla". (actually I'm not sure about this one) But the speed difference is really not noticeable, everybody should just use the format that they prefer to code in. Quote Link to comment Share on other sites More sharing options...
LordDan Posted July 3, 2010 Share Posted July 3, 2010 That makes sense, I understand that.. :thumbup: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.