Page 1 of 1

Testing my php

Posted: Wed Jul 30, 2003 5:19 pm
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?

Posted: Wed Jul 30, 2003 11:27 pm
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

...

Posted: Wed Jul 30, 2003 11:42 pm
by kettle_drum
And you must restart apache after editing the httpd.conf file.

Posted: Thu Jul 31, 2003 2:28 am
by m3mn0n
...and php.ini