What do I need to download?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rabid.goblin
Forum Newbie
Posts: 4
Joined: Thu Jul 03, 2003 12:11 pm

What do I need to download?

Post by rabid.goblin »

What to I need to download so i can see my php? i saved it as .php, .php3 and .phtml and none worked. I also downloaded PHP 4.3.2 and saved it in c:\php but nothin happened.
Drachlen
Forum Contributor
Posts: 153
Joined: Fri Apr 25, 2003 1:16 am

Post by Drachlen »

If you're trying to test offline i suggest installing phptriad or just a webserver like apache. PHPtriad includes apache, an older version of php and phpmyadmin. If you get phptriad then i suggest also downloading the latest version of PHP. You'll need to install triad first, and to view your files you need to make sure apache.exe is running, then move your php files into C:\apache\htdocs\ and view them at http://127.0.0.1/ . Make sure you delete index.php from htdocs also so you can see the directory. Also: when and if you're updating your PHP, you just need to drag and drop the downloaded php into your apache directory and replace the one it comes with. If you have any troubles ill try to help more.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

You need to have a webserver installed, preferably Apache. I suppose you are running windows - there are various "webserver-bundles". I personally prefer WAMPP as it is the most stable bundled package. It comes with Apache 1.3, PHP 4.3, MySQL 3.2 (I think), SSL, mailserver-admin etc.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

1: what is your operating system
2: did you just dl php 4.3.2 or did you install it?
3: how did you try to view it?
4: is your computer set to serve web pages?


.php3 was an extension to tell a php engine that the form of php is version 3. i have been using .php and that works fine.

if your computer doesn't know how to serve web pages, then i'm not sure having the php engine installed will help. if you have server space put it there and browse to it there.

remember, viewing php is like viewing html, you could open it in an editor or in a browser, which you chose depends on what you're doing
rabid.goblin
Forum Newbie
Posts: 4
Joined: Thu Jul 03, 2003 12:11 pm

Post by rabid.goblin »

i installed PHPtriad but i still cant open PHPs. I got all the files for PHP 5 in a folder but i dont know what to do with them.
rabid.goblin
Forum Newbie
Posts: 4
Joined: Thu Jul 03, 2003 12:11 pm

Post by rabid.goblin »

nvm i got it
thx for the help
Drachlen
Forum Contributor
Posts: 153
Joined: Fri Apr 25, 2003 1:16 am

Post by Drachlen »

I wouldnt suggest using PHP5 YET until its out of beta, because it is, beta
rabid.goblin
Forum Newbie
Posts: 4
Joined: Thu Jul 03, 2003 12:11 pm

Post by rabid.goblin »

yeah... i got the one that came with phptriad
Post Reply