php installation help!

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
joseph
Forum Newbie
Posts: 24
Joined: Mon Jul 03, 2006 6:15 am

php installation help!

Post by joseph »

We also need to make a version of php.ini available. To do this, first add you php directory to your Windows PATH (Where is this windows path anyway?) Next, in the PHP installation directory, copy the php.ini - recommended file to php.ini (Did he mean that I should copy and paste that file into the same folder and just rename it to php.ini?). After making these changes you must restart your apache server.

Now we're ready to check that PHP is working. In the htdocs directory in your Apache installation, create a file called phpinfo.php containing the following lines

<?php
phpinfo();
?>

How do I create a php file? Should I use notepad to create one?
Thanks.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

From php.net's FAQ, http://www.php.net/manual/en/faq.instal ... .addtopath

The php.ini - recommended file is like a quick-start configuration -- just overwrite the original php.ini file with this one.

You can use any text editor to create a php file. Just make sure it has a .php file extension, and that it is in Apache's public_html directory.
joseph
Forum Newbie
Posts: 24
Joined: Mon Jul 03, 2006 6:15 am

Post by joseph »

hey... Thanks! :D What php editor do you recommend? is Zend studio the best one?
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

I recomend PHP Designer here a feature list http://www.mpsoftware.dk/phpdesigner.php. Or you can use PSPad Editor
from ww.pspad.com.
But the best for learning are Vim for linux or Notepad for Win.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Lets not start a "which editor is best thread".

Many can be found in this existing sticky.
Post Reply