You are viewing our Forum Archives. To view or take place in current topics click here.
PHP Tutorials - Learn the basics of PHP
Posted:

PHP Tutorials - Learn the basics of PHPPosted:

skatertg
  • Blind Luck
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
Getting started with PHP

I will be updating this thread daily(for the most part). If you have anything you want to learn/ any projects you need help with in PHP feel free to ask

In this tutorial I will show you how to setup your PC ready to start programming in PHP

All tutorials are in full HD if you want to watch it in full screen.




In this tutorial I will teach you Basic PHP outputs & how to use variables:
All tutorials are in full HD if you want to watch it in full screen.




In this tutorial I will teach you how to use Variables in basic maths:
All tutorials are in full HD if you want to watch it in full screen.




In this tutorial I will teach you basic IF else statements:

All tutorials are in full HD if you want to watch it in full screen.



In this tutorial I will teach you Basic ElseIf and Switch statements:

All tutorials are in full HD if you want to watch it in full screen.





Last edited by skatertg ; edited 4 times in total

The following 5 users thanked skatertg for this useful post:

Zion (08-23-2011), GTX (08-18-2011), Feargoyle (07-31-2011), FinancialChad (07-29-2011), RDCA (07-28-2011)
#2. Posted:
-Jordan-
  • TTG Addict
Status: Offline
Joined: Jul 12, 201013Year Member
Posts: 2,684
Reputation Power: 122
Status: Offline
Joined: Jul 12, 201013Year Member
Posts: 2,684
Reputation Power: 122
Just pointing out, in the 3rd video you say "=" means equal to when equal to is in fact "==" or "===". Also they're mathematical operators, not functions
#3. Posted:
skatertg
  • TTG Champion
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
-Jordan- wrote Just pointing out, in the 3rd video you say "=" means equal to when equal to is in fact "==" or "===". Also they're mathematical operators, not functions


I show "==" in the video, a bit quick yes. But it's shown there... when i was correcting myself i was just making sure that "==" did mean equal to. So it's all there, maybe just a bit confusing.

And you may have noticed already from the tuts but i forget what words im supposed to be saying hence most of the time i repeat words, thanks for the constructive criticism though? ;o)
#4. Posted:
-Jordan-
  • TTG Addict
Status: Offline
Joined: Jul 12, 201013Year Member
Posts: 2,684
Reputation Power: 122
Status: Offline
Joined: Jul 12, 201013Year Member
Posts: 2,684
Reputation Power: 122
skatertg wrote
-Jordan- wrote Just pointing out, in the 3rd video you say "=" means equal to when equal to is in fact "==" or "===". Also they're mathematical operators, not functions


I show "==" in the video, a bit quick yes. But it's shown there... when i was correcting myself i was just making sure that "==" did mean equal to. So it's all there, maybe just a bit confusing.

And you may have noticed already from the tuts but i forget what words im supposed to be saying hence most of the time i repeat words, thanks for the constructive criticism though? ;o)


Ah I must have missed it then
#5. Posted:
Goten
  • Resident Elite
Status: Offline
Joined: Jul 29, 201112Year Member
Posts: 227
Reputation Power: 8
Status: Offline
Joined: Jul 29, 201112Year Member
Posts: 227
Reputation Power: 8


Nice tutorials man, thanks a lot!

#6. Posted:
hi_
  • Gold Gifter
Status: Offline
Joined: Sep 10, 201013Year Member
Posts: 4,250
Reputation Power: 360
Status: Offline
Joined: Sep 10, 201013Year Member
Posts: 4,250
Reputation Power: 360
<?php

$twitter = "facebook";
$herp = "derp";

echo $twitter.$herp;

?>


8)
#7. Posted:
ODST_107
  • Resident Elite
Status: Offline
Joined: Oct 07, 201013Year Member
Posts: 247
Reputation Power: 9
Status: Offline
Joined: Oct 07, 201013Year Member
Posts: 247
Reputation Power: 9
correction on your second video ;)

text outside of the php tags will be shown as standard text or even HTML in the browser. It is also possible to incorporate HTML and PHP together flawlessly to make some pretty darn cool stuff!

Here's an example:

<?php
$example = "Hello!";
$link_target = "http://www.example.com";
?>
<!-- gonna skip all the unnecessary stuff -->
<h1>Example!</h1>
<a href="<? echo $link_target; ?>"><? echo $example; ?></a>


just an example ;)
Great tutorial BTW!
#8. Posted:
smashingeddie
  • TTG Senior
Status: Offline
Joined: Jan 29, 201014Year Member
Posts: 1,987
Reputation Power: 88
Status: Offline
Joined: Jan 29, 201014Year Member
Posts: 1,987
Reputation Power: 88
Thanks for posting these. Very helpful and created an interest in me
#9. Posted:
A-Fat-Mudkip
  • TTG Senior
Status: Offline
Joined: Aug 01, 201013Year Member
Posts: 1,017
Reputation Power: 38
Status: Offline
Joined: Aug 01, 201013Year Member
Posts: 1,017
Reputation Power: 38
This is really really interstening, but before i begin with this i have 2 questions.

1.Is this the kind of stuff that Mark used in the movie social network to make "FaceMash"?
2.If i write a decent code, how would i make it go online and how much would it cost?
#10. Posted:
Clear
  • TTG Addict
Status: Offline
Joined: Dec 16, 201013Year Member
Posts: 2,462
Reputation Power: 126
Status: Offline
Joined: Dec 16, 201013Year Member
Posts: 2,462
Reputation Power: 126
Nice tut dude!

-Clear
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.