Testing my php

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
User avatar
greeneel
Forum Commoner
Posts: 47
Joined: Wed Jul 30, 2003 5:19 pm

Testing my php

Post by greeneel »

Hello all,

I have installed php on my system version php-4.3.2-Win32 apache has already been installed and is working i tested it by goin doin a http://localhost , works fine ...... All of the following have been done also I coppied php4ts.dll and php.ini to my WINNT folder..
Edited the php.ini file to change the extension_dir to point to the extension folder and also changed doc_root to point to the htdocs folder on apache..

now do I need to edit or uncomment any extension=php_*.dll files ? because i tried a test page by using <? phpinfo ( ) ?> i edited notepad then saved the file in C:\program Files\Apache Group\Apache\htdocs folder then after i ran a test again by typing http://localhost/test.php...
When i hit go on the browser i get a File Download Box saying that I have chosen to download a file from this location...... test.php from localhost...

did i miss something? is there no space between the two brackets or something?
jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

You sure did.

Code: Select all

AddType application/x-httpd-php .php3
    # And for PHP 4.x, use:
 AddType application/x-httpd-php .php
If you are getting a 'save' option, it means the server doesn't know what the hell to do with a php file. The lines above tell it why you loaded all those dlls
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

...

Post by kettle_drum »

And you must restart apache after editing the httpd.conf file.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

...and php.ini
Post Reply