PHP Tutorial: Installation and The Basics
Posted on 19 February 2010 by Abidoon
To get php and apache installed use xampp. xampp is free and contains php / apache (around 33mb) 1. Download and Install XAMPP from here: www.apachefriends.org 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 localhost or /foo.php. There’s also something called WAMP www.wampserver.com There’s a lot of php tutorials out there just search google www.google.com Request tutorials here youtube.jimmyr.com More PHP tutorials here killerphp.com Some people have recommended other editors www.scintilla.org www.pspad.com en.wikipedia.org www.context.cx %%programming
Tags | Basics, Installation, Tutorial

Good Job Dude … Superb .. U made me learn a bit .. Thanks! from India
@cappew22
Of course
@cappew22 Yeah you can have them both in the same file (.php file). You can even have them completely weaved in with each other.
great example for the boolean conditional!
Yes.
Can i mix HTML and PHP?
@Yarikus23 Yeah, at least it does here.
Does xampp work properly on Windows 7?
hello guys wts up ?? i really need a good tutorial to learn php from the basic this is good but not enough ! so plz recommend something!
@AllphrncMetactzn No problem if you need any help just send me a message or comment on a video, I’ll be glad to help.
@AcuteGaming Thanks very much, I can’t understand very well yet but I’ll continue learning html and when I learn it well I’ll give PHP a try
@AllphrncMetactzn PHP and HTML are not to be compared. They are totally different languages, designed to be used together.
HTML – used for presentation on your site, along with style sheets.
PHP – scripts executed on the server to allow dynamic features like logging in etc.
Thats it put very briefly. You should learn HTML first then PHP to use along with your HTML.
Yeah the only downside is that the parser is looking for a var that isnt there, slowing the script down, wont make much of a difference unless your writing big scripts to be honest.
Good practice though, when i used to code if i used vars in double quotes I used it like so “This is my {$var}”.
If your on mac/linux there is MAMP, all though I suggest clearing your cookies/cache and re-download the XAMPP as it was most likely due to a download error.
Well put!
what’s the advantage of PHP over html?
Amen to that !
You have to go to localhost, and then navigate to the php file from there.
If html is the outer part of a car that looks nice, php would be the inner gears.
I hope you know what html is O.o
Facebook.
But Facebook uses other languages as well.
@septictesticle
Its not wrong strictly speaking, just inconvenient.
@bas24680
A string simply means a piece of text, for example:
“Dog”
“Food”
Etc…
A var, denoted by the “$” in php, means a variable, and can store pretty much anything.
Hope that helps
man it not installing it says some files are curropted so please suggest me a alternative to xampp thankyou ur tutorial is great
good tut, for everyone into programming, check out
Codecall(.)net
It’s the largest programming forum on the net
Hey man i have problem i have been installed XAMPP and wenn i go to localhost my browser say: This site can not be load” Why say it Please Help me