PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

What do I need to download for php?

Asked 2006-03-29 06:15:07 by henryl76

Hi,

What will I need to download to work php (Which do I download of the site cause there is a binary thing etc etc...) confusing first time ^_^.
And how do I work it with HTML? Like do you make a .php extension or just normal .htm or .html?

Anwered 2006-03-29 06:34:14 by dmode

guess that you have a window$ box... if you use linux, apache and php would have already been installed...

so... download and install apache (free web server) from here:

http://httpd.apache.org/

straight forward installation! try to search for your web root (where all you html and php files will be), e.g. c:/www, you will see it during installation.

Then download the php installer from here (you will need to interface itself with apache):

http://www.php.net/downloads.php

You'll have all the help you need on the website, there is maybe some easy configuration to be done, but its easy.

Then create a file index.php in your document root:

<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<h1>This will display info for php</h1>
<?php
phpinfo();
?>
</body>
</html>

Go to your browser (firefox or ie) and type localhost... if your installations and configuration was correct... you'll get a really nice surprise...

Then... learn some php basics... it's a bit like C... read this book... PHP and MySQL Web Dev (the latest version, syntaxes have changed for php)... when you come to Part II... install MySQL from here (stand alone sql server working on a predefined port):

http://dev.mysql.com/downloads/

Get help from the website to install mysql... its tougher... but i've done it a lot of times... learn a little bit of sql...

select * from table where field="bobo"

learn some aliases, get a grip of relationships, e.g primary key and how to link tables etc.

and start with Part II

This is how it all started for me... don't give up... fight until it works... I was just like you and I did it... seems weird in the beginning... there are thousands of forums for people to help... don't hesitate to ask questions...

Then move to FC5 Linux... you'll love it...

Anwered 2006-03-30 05:32:39 by victorzvv

Download EasyPhp.It's a buit in solution with Apache & MySQL.And get phpMyadmin:it's a tool that gives you access to the Sql database(s) in a browser.
Unlike html,php can't be directly opened with a browser.
A server must first translate it to a html page and then it goes to the browser.

Questions and answers provided by the Yahoo Answers Community.