|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
download prompt instead of executing php file
Hello
I'm brand new to php and am stuck on square one. Running Apache, when I call a php file from a webpage, I get a prompt to download the file instead of the file being executed. I've tried one suggestion of changing the mime settings in my httpd.conf, but was unsuccessful. Can somebody help? I'm using: PHP 4.2.2 OS: WIN2k Pro |
|
#2
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'PHP Installation' by nawlej.
Reason: install issue. |
|
#3
|
|||
|
|||
|
RE: download prompt instead of executing php file
Hmm... I don't think you can force how your browser deals with the file sent. Most site just put a note that say's "right click and press 'save as' or something like that.
|
|
#4
|
|||
|
|||
|
RE: download prompt instead of executing php file
did you read (and follow) the documentation already?
http://www.php.net/manual/en/install.apache.php |
|
#5
|
|||
|
|||
|
Happy Birthday xs0
Oh shoot, I misunderstood his post, duh, on my part.
you need the following lines in your httpd.conf file <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps </IfModule> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > download prompt instead of executing php file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|