PHP Tutorial: Installation and The Basics

You need Flash player 8+ and JavaScript enabled to view this video.


-

[ Full Screen ] [ See on Youtube ] [ Download (?) ] [ Subscribe ]



Watch Here
Watch on YT

Time: 11 min
Rating: 4.81 / 5
Views: 78540
Rated: 369
Talk: 207
Faves: 450
Video Description
To get php and apache installed use xampp.
xampp is free and contains php / apache (around 33mb)


1. Download and Install XAMPP from here:
http://www.apachefriends.org/en/xampp.html

2. on windows go to C:\xampp

it should have a folder called htdocs. If you put a file called foo.html
into the htdocs folder you should be able to access it by going to
http://localhost/foo.html or /foo.php.

There's also something called WAMP
http://www.wampserver.com/en/

There's a lot of php tutorials out there just search google
http://www.google.com/search?hl=enr&q=php%20tutorial

Request tutorials here
http://youtube.jimmyr.com/
More PHP TUtorials here
http://killerphp.com/

Some people have recommended other editors
http://www.scintilla.org/SciTE.html
http://www.pspad.com/
http://en.wikipedia.org/wiki/Comparison_of_text_editors
http://www.context.cx/

Comments:

rainbowbowserpow9999: lol last comment not first Comment you got -16 LOL!

peanutsnpeppers: if only i knew what you where talking about :( ... nice vid very informative.

3rd comment =)

Asteao: I assume we will get more in an upcoming video.

naraku3: lol ty i learned basic so far. im not much into that. im like a html person.

TheJeff283: You're making and adding tutorials faster than ever these days. =)

ihiphopanonymous: this guy's coming out with tutorials like it's nothing....wow i'm really impressed. Keep doing your thing jimmy.

ic300x: is that wut your doing kinda like pascal?
example

1.program new;
2.begin
3.end.

DarkCrisis: Your so Awesome! Tutorial spree!

Scytherax: Glad i subscribed. Lots of useful information from your tutorials !

Tophillious: Thank you for listening to my request :D

pongman: Geez! You're now speaking Greek. I don't think I've ever had to yawn in any of your videos before? lol Ok I shouldn't have watched this video but I'm sure it means something to someone. Now I know you're MIT material.

InsanePL: nice tut for begginers, you shoudl add php[dot]net at teh end of video for more tutorials, cuz it`s the best way to learn php :) Or just buy book like me :)

HeadDominion: you forgot to say what the purpose of the video si for........remember half of us aren't spectacular with computers and if we can't work out the purpose of this vid, it loses its effect.

jimmyrcom: the purpose is php, installation and the basics.

spotlight26: it seems easier than Java
i like the bush example looool

thanks a lot
keep going on
all the time looking for ur new videos

Dragonan: Glad I subscribed to your vids,have learned much

jhawk528: Your videos are so good, I would pay to watch them

AznPanda: It irritates me when you highlight everything you're talking about. I think we're smart enough to know what you're talking about. I love your videos though ;).

Puddinhaid: He's just pointing it out, I say it helps us not divert our attention to something else and be on subject.

xildavar: what about pspad its a really cool editor and free i think its also open source

pierkov: It is a really good text editor, I have used it alot, and it is compatible with compilers, and has highlighting for "most" languages.

jimmyrcom: I'll try it, I never heard of it before.

sticksquash: aw I wanted you to make a tutorial on how to install XAMMP... I'm not really good with server kind of shit and I always have to upload my php files on my website and I want to have them on my computer first... everytime I open a php file in the CLI thing it gives me a lot of errors and then crashes...

Singul4r1ty: Too bad my webspace doesnt support php or the like, Java comes in handy then.

Spike1882: do you use linix or windows or mac? its hard to tell and im just curious

andsanp: i hate to ask a stupid question, BUT here goes:
WHAT IS PHP? and WHAT IS IT'S PURPOSE?

Bpslave: cool..im so going to sound smart to someone...i can't wait.

davronru: Yea, bushissmart = false.

while bushisdumb = true (10*10)%

chemicaljordan: now hopefully a follow up video with some practical uses?

jimmyrcom: I'm not done with basics. I hadn't even touched strings with apostrophes, array data types, classes, loops, interaction with forms, regex, command line php and file/website io =P.

chemicaljordan: oh wow. Well I'm looking forward to learning even more. =D

AK225596: lol jimmy, i like the sumbliminal messaging

successiveaspect: Thanks for the link to the xampp server. I have been having trouble configuring php on this machine and have tried 4 different freeware servers. In addition I have never been able to get sql to work. Very helpfull.

Bobertoq: Very nice! This is very handy thank you. Do you know any good CSS editors? I make a Firefox theme and I don't like using notepad, too simple, or word, takes to long to open. >_>

jimmyrcom: same ones mentioned in this video

StarWarsGataradeRain: Damn Right it is! But I like Truevision a lil better.

EmoCoder: Use
because when they go to swap to there host it might not support the short hand.

drblock1: My first php script

76.98.147.117/test/

jimmyrcom: inaccessible. you need to portforward port 80 to allow incoming connections in your firewall/switch/hub/router.

drblock1: I know. I cant keep my server up 24/7 :D

videoasitis: How do I upload my php? It keep taking me to the xampp admin center.

dfrusdn: LOL $bushissmart= false
"We're all doomed";

rosaria: this reminds me of visual basic..

jimmyrcom: maybe because it's a programming language, but otherwise visual basics is a very disgusting syntax that teaches bad habits and low efficiency.

dat2052: will there be any more videos of php tutorials?

zumzer0: Karen's Power Tools is in VB. Not great tools to begin with and looks like she's having problems getting them in to Vista now.

Knuckles000: How do i automaticly use notepad++ when editting something?

Demonader: For MS Windows, right click on the file (like a webpage) and go on properties. Then change the "Open With..." to Notepad++.

thebrantmeister: I found that to be easy to understand and helpful. Thank you for your video.

joscpe: WeBuild is also a good editor for all web scripting formats, even CSS.

lildannya: i downloaded it and not one thing installed

GenericGene: Interesting and useful - thanks

transatlant1c: This was a fantastic tutorial jimmy :) Thanks a bunch!!

venechat360: Esta muy cabrón el tutorial pondré en practica lo que explicaste para ver que mas sale. Bueno desde Css Venezuela de despide este servidor muchas gracias.

rip0201: thx...good basic tutorial...i feel its similar to CGI perl!

SodaFanatik: Hey how do you get the numbers to show up on the side of your editor. I got the program just for that and I can't figure out how to enable it.

timetravelfx: wow. you explained the basics better than any other basic tutorial I have seen. I mean, I was with you the entire time. great job. looking forward to more like this.

linktojos: how can i get local host jimmy pleas help me thank you

jimmyrcom: just install apache, it exists because of an entry in your hosts file.

ckwing888: ah thanx man. php seems fun. keep it up

schetleft: where do i put the file: index.php ?

hofimastah: Man you are awsome! Im not very good in english but i understend everything. You speak fast and not boring, so i can't deconcetate.

fennec85: jimmy i read how 2 install it and yet its stil not working.. u can call me stupid but plz help me.. in the website it sais: Untar it to /opt using the following command:

tar xvfz xampp-linux-1.4.7.tar.gz -C /opt

whats untar it? and where is/opt?
plz help and thanx

gangster8912: sry again.. but if u go in to the website... i worked everything out until the scripting part... everithing was fine up until the scripting part thats where i got copletly lost... where should i put the scripts and how?

amosapostol: nice vid! especially the bushissmart thingy lool!!!

uknowmefool: Wow! This guy is really good! Adding to favorites now! lol

scientist100: I have pspad does that one works like the one you're using???

jimmyrcom: is being "high" a good thing?

karbekian: Sorry but i mean law,not low!!My english is poor!You are do good job.Sory once again...

henrythehoover1994: very good.. i've learnt lots from this! Im favoriting it, thanks jim! x

crazycrisco: Awesome I understand PHP better now!

Music143840: Thanks dear jim good work keep it up

thenewboston: yep these are actually really good tutorials

MetalMercenary0: Hey i have a certificate error and i dont know what to do. my adress bar turns red when i clicked on this botton thing

tigrous4ever: do you reccomend dreamweaver for php

wackzingo: Dreamweaver is a great text editor for PHP if you already have it...but don't buy it for that because it's too expensive. Dreamweave when used as a text editor is awesome for many web languages.

tigrous4ever: i already have it the school i go to are big on IT and gives everyone a copy of it

qwertyTRiG: I use Notepad2 for writing php, which is free and does syntax highlighting and line numbering, which is very handy when your told there's an error on line 218!

TRiG.

kelkeelkeeel: ei jimmy, can I ask a question? Why is it that when my computer is on, apache is started, and I can access localhost on my computer but my friends can't access my IP address... y is that? Anyways nice job ^^

qwertyTRiG: Your localhost exists only on your computer. That's why it's called a local host.

amosapostol: I got a question, can i set up my own server online without a router? if not, how canI set up a router and what's a router? and how can i portforward to port 80? Im so noob..

WoWRSVids: make a vid on how to set up cuzz i cant find the set up page

wheay21: how did you make this video so clear. hope all video tutorial on this site make it as clear as this one. like your vid.

Zounas86: If you don't want to print variable values, you can also use '$thing' instead of "\$thing". Also single quotes are processed faster. Hopefully we'll see more of these tutorial for beginners so I can come rant about stuff :P.

jimmyrcom: I had added that too but it had to be clipped because the vid had to be under 11min

JesusismyShepherd: I have Swifty and Aptana Studio for code editing. Swifty isn't very big, so it opens fast and you can also view what your coding will look like online. Aptana Studio is more professional looking and can do a whole lot more stuff. I open that one when I plan on doing a bunch of coding. Google them, they're free.

waghhhh: Great video, it was very helpful to me!

k1llak4y: Finally, what seems to be a good PHP tut series. Ill keep watching, thank you!

iExcelStudio: Aww...he beat me to the reply lol

kdmq: there is a programming language called 'python' can u plz post a tutorial for it?

Ljultimatehacks: how do you open a php file like he does ?

ncbookz: 2 screens one is a html screen and the other is word pad similar

RayneValco: its sounds abit noobish but what is php, mysql and other programming languages for exactly? like what kind of programmes are best for doing what jobs?

JavaHamster: MySQL is a Programm, not a programming language. I would recomend you to use HTML or JavaScript.

123asas123: It's not a Program, it's a friggin' Database. >_>

bessadale: Peng! You got it wrong. It's a programming language.

123asas123: Uhm. In my Comment I meant MySQL. It was supposed to go to an older Comment, where someone stated that MySQL is a programming language. xP

jonahansen: Hey - thanks a lot. It's like easy to use C!

caygun13: a.q bizim türkler niye böyle bişi yapmıyoooo
neyse ceki senin emeğine sağlık bu arada :)

PenguinRapPhysco: You made PHP easy for me!!! I have been trying to learn it for a long time, and I just don't understand a lot of tutorials (even the one off W3Schools, and that's a good site) Thatnks a LOT man!

pkhamidar2com: dose that mean that i dont need html to make my website.

pkhamidar2com: how do you make a new line on php

jimmyrcom: php and the packages have been downloaded millions of times, I think you should rephrase that statement, "I failed but am giving no further detail as to where in the process"

bessadale: I love the way you explain boolean data type with "$bushissmart". I love ironic people.

disorder8: Is there a security issue with the xampp?

psnoob: I prefer USB webserver, because you can take it everywhere with you on a thumbdrive. In combination with usbwebserver I would recommend Notepad++ (v 4.8.5 has been released last week)

mayhempk1: notepad++ is the best by far imo.

erenNtR: Omg.. BushIsSmart.. You made my day!
Exellent tuts btw :D

redentado: that why programrs dont run da country, whats next putting down Clintn cause he didn't kill Osama wen he had the chance? No that would be to rite-wing. Your doing a good job with programming stick with it. Let the man do his job:) thanx for this vid though.I'll check with u in 5 or 10 yrs and if we are stil alive then you get to make a vid saying "we're not doomed Bush was smart I was not"(politicaly of course). unles global warming kills us al:( have a cool spring.Freedm isnt cheap, thanx.

jimmyrcom: quit shitting out your hand. I don't like reading retard speak. Please learn to spell.

redentado: You are rude, and the reason I "cant spell right" is because you only have a limited number of letters. so I shortened the words. can't you figure it out? Any way this is ad hominem. It is considered a logical fallacy and is one of the modes of spreading propaganda.

redentado: and what? you want to prostitute yourself to all the arabian muslims so they can leave your country in peace?

judoka1: It seems that Prostitution is your expertise, we come to this channel to learn some PHP! Hence the title: PHP Tutorial!! Not to spread the fear mongering agenda, and if anybody is in bed with "arabian muslims" it's bush with his strong intimate ties to the bin laden family and the "supporters of terrorists" the Saud's & the UAE royal family!! So go congregate with the rest of you 28%'s and finish fabricating some excuses to bomb Iran.

linklovezelda: shut up would you? you dont even know what your saying yourself man. you are sad you are saying crap like that cause you have no friends and you get raoped by your mom.

computertrick: nice im trying to download but it must be a big file cause its been on 0% for the past 10 mins lol

pippin418: i've been coding in php for a while now and i couldn't figure out how to add quotes! After watching this
i found out how! Thanks so much!

lordkoronis: Nice tutorial , thanks .
But i know better server , just download WebServ 2.0 .
It has :
-Apache
-MYsql
-phpmyadmin
-FTP
-Free no-ip domain

aspcajaye: my web browser dont show anything when i do the hello world thing what do i do

aspcajaye: i posted a video response stating my problem

x1337magex: Excellent video, Great quality, 5/5 Cheers mate!

mugg12345: What programm did you used to capture this Video?

Nice Tutorial by the way. 5/5. (Quality is great!)

rsingh87: nice basic beginners tutorial. I like the way you give some comparisons to other programming languages eg. floating points are not necessary. Nice work and thanks for helping us all out!

fatuesque: I changed something on the html_output.php file and now i cant flog into the admin console, it just refreshes when i try.

Any ideas how i can fix this ?

xxxKLLxxx: This guy has no idea about web programming.
Get netbeans 6.1, it contains everything you need.

jimmyrcom: You're an epic retard. That's just a stupid ide, plus it was intended for friggin java. The code editor is not all that friggin important.

meegapop: xxxKLLxxx
This guy has no idea about web programming.
Get netbeans 6.1, it contains everything you need.

oh and i gess you do, nice vid:)

marvinit0488: This is it! my solution of my problem. Through this video i passed my web development subject. I maximized this basic tutorial on my own, and that's it i can create now a simple guestbook. Thank You Very Very Very Much Man.
Just Keep Up Sharing you're knowledge.

clc786: Nice video Jimmy! It really helped me a lot !

meluvsk8ing: how do u make the address the way u want it and host it on the web, instaid of just on lan??

jimmyrcom: search "jimmyr webhosting" in google

kerron68: yeeh, you're better than my java teacher! :p

isaaccade: here is a great explanation of "echo" Echo adds to HTML while you are in the php tag.

efraimdeluxe: you forgot VIM <- in the Editor Section

paradox19993: it says my port is all ready in use

Brandonmxb: Bush is smart is false, lol nice one.

ReverendGoob: You are a good teacher. Thank you.

uvon33: hey jimmy can you teach me more in php using myql.. thanks.. more power God Bless.

LupoBHS: Hey man I've been trying to get my PHP program to work but it wont its freaking pissing me off! Anyway everytime I type localhost or 127.0.0.1 in the URL it always takes me to the XAMPP homepage. Have I not set something up yet or is my Vista just being stupid like always!?

jokeranger: You should put your .php file somewhere in the xampp/htdocs/ Then, in url type localhost/myphpname.php
After that your php file could now be seen in your web browser. . pm me if its didnt work

ilovekeane: I like Jimmy's voice! It's really relaxed. Thanks for teaching me PHP, Jimmy.

OlloX3: Your a beater teacher than my teacher in school lol

Dres9711: Good stuff Jimmy, I hope your voting for Obama... we dont need another dumb president

Dres9711: He makes fun of Bush... so that's where it came from.

ahmed660066: it's agood idea to make fun of bush

HeartorHead: Great video! Thank you very much for doing!

sscheets: when i install xampp i get an error message stating to turn off windows vista user account control using msconfig in order for all of the functions to work. do you know how to do that?

sscheets: ps- great vid- xampp is just what i was looking for- so long as i can get it to work

CamWa11: in just 10 min i learned more from you then my teacher taught me in class in the first week

caouetac48: i love jimmys videos thay teach me so much.

nailshead18: wonderful video. you're really good at teaching. well, i prefer wamp, myself. xampp kept giving me problems, and i'm on a xp, anyhow. :D have a good week!

thecoolestleo: um how do i use it to make widgets

ahmed660066: why not continue this good work

slashsnemesis: whenever i try to go to localhost it says it cant establish a connection what do i do?

kaosboy13: instead of putting a bunch of (var)++ statements in a row, why not use a numbered switch loop and just have it repeat the line until the desired result is attained? anyone who has no programming experience just went "numbered switch loop? is that some kind of weapon?"

EvilNemesis99: do you HAVE to install something to do php?

klugiebooh: hi, just wanna ask some help, i am new in php and i am having some problem with debugging the code. i have installed xampp and it was successfully installed, and then i tried to create php code and saved it as hello.php and then when i checked it out it was a text format... =(

relliksd: when you saved did you have it the "Save as type" set to all files?

klugiebooh: i did both, in txt file and all files. the one that i saved as all files, when i click the file my system cannot read the file it said that "the windows cannot open this file" im using windows xp. by the way, thank you for the response =)

relliksd: hmmm ok well did you do .php after it lol if you did and still doesn't work im not sure and it should work with xp thats what i have

ronfbat: Excellent work.

Loved the conditional example. We're doomed. :)

relliksd: do you need php to make a website? or can you just make a full and good site with just html and css?

TGPotet: You dont need PHP, but, i im not wrong, you need PHP to make a community. But i have not learned PHP yet, so i am not sure.

All you need to make a website is HTML, but CSS makes the website faster, easier to edit and more.

WJC1981: Thanks I am just starting out with this and it explained things better than anything Ive seen so far, good work

vvvlladdd: your voice is so annoying... but the tutorial is good

Jimmy57452: Lol, $bushissmart=false;
Bush isn't smart, and that gave me a laugh while learning PHP.

Awesome tutorials, jimmyrcom. Good tutorials ftw.

gguubbaa: Cool, thanks for nice tutorial!

lover2199: thanks jimmy this video is great but iam stuck on adding a image i have to code and can see the image but when i try to write echo or print with text in it all i can see is the image please help me.

jancom777: Bush Is Smart = False....HAHAHAHAHAHA