Click to See Complete Forum and Search --> : Save this file to disk


Anon
12-27-2000, 05:30 PM
I installed PHP4.0x/Apache 1.3.14 by the book. Apache starts and works just fine. When I try a test.php file with the following code snippet. I get a dialog box that pops up asking me if I want to download the file to disk or run it from its location.

This is wierd I've done at least 5 other installs of PHP/apache and they all worked just fine. Is there anything I should be looking for with Apache 1.3.14 the other installs were all with previous versions of Apache.

Any help would be greatly appreciated.

Anon
12-27-2000, 05:54 PM
I get the same thing as well, if i find out i will let u know, im using php404

Anon
12-28-2000, 01:54 AM
Same result for me as well, i.e.,
either a prompt for download, or
file not found page when attempting
to load php pages (some html files
will, however be read by the browser
from localhost, some will not. Weird.
Addmittedly, in my case I\'m very
unsure of what I\'m doing during install
(nonprogrammer, newbie, etc.). But I
felt I tried to be extremely careful
with the phpwin.de 4.04 install
instructions.

A prevous install of Apache/MySQL/PHP
4.02pl1 for Windows (Firepages bundle)
still works fine (well...except that after uncommenting GD and zlib extensions
in php.ini the browser subsequently
hangs when I attempt to load any php
files... but other than that Mrs.
Lincoln...). Any suggestions for
either issue would be greatly
appreciated.

Anon
12-28-2000, 12:46 PM
If you use CGI version of PHP, you have to put the following lines in your httpd.conf file in order to Apache to execute PHP files :

ScriptAlias /php/ "c:/php4/"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php

Of course, you have to put you own PHP directory in the first line.