473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

browser tries to download .php files instead of executing them

JT
I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
when I try to execute a script on my local server here it opens a
window to try and download any .php files. I think Apache isn't
loading the module, but when I add in:

LoadModule php4_module modules/libphp4.so

it can't find the module and I can't find it on my system under
libexec or modules or anywhere else for that matter. What do I need
to do to httpd.conf (or php.ini) to make it execute these scripts?

Thanks in advance.
Jul 17 '05 #1
3 11099
You probably forgot a line in the configuration file:

AddType application/x-httpd-php .php

JT wrote:
I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
when I try to execute a script on my local server here it opens a
window to try and download any .php files. I think Apache isn't
loading the module, but when I add in:

LoadModule php4_module modules/libphp4.so

it can't find the module and I can't find it on my system under
libexec or modules or anywhere else for that matter. What do I need
to do to httpd.conf (or php.ini) to make it execute these scripts?

Thanks in advance.


Jul 17 '05 #2
On Sun, 19 Oct 2003 14:20:07 -0400, Louis-Philippe Huberdeau hath writ:
You probably forgot a line in the configuration file:

AddType application/x-httpd-php .php


Or, (but unlikely...) , you're loading it by file reference
rather than by ip reference.

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | OS/2
| Gunnison, Colorado | @ | Jonesy | linux __
| 7,703' -- 2,345m | config.com | DM68mn SK
Jul 17 '05 #3
JT
No, I've had that line in there all along, this is good one....

Louis-Philippe Huberdeau <lp*********@sympatico.ca> wrote in message news:<mG******************@news20.bellglobal.com>. ..
You probably forgot a line in the configuration file:

AddType application/x-httpd-php .php

JT wrote:
I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
when I try to execute a script on my local server here it opens a
window to try and download any .php files. I think Apache isn't
loading the module, but when I add in:

LoadModule php4_module modules/libphp4.so

it can't find the module and I can't find it on my system under
libexec or modules or anywhere else for that matter. What do I need
to do to httpd.conf (or php.ini) to make it execute these scripts?

Thanks in advance.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: scrimp | last post by:
Ive been using PAMIE 1.4 to try to automate web page processes. The one thing I cannot do with it is upload files and download files. With uploading files, the file input box does not allow PAMIE...
7
by: Stu | last post by:
Downloaded the sendMail.htm and sendMail.asp sample files from technet onto my IIS 4.0 server. The first 2-3 times I tested all went well. Subsequent tests, with no server changes, gave/gives me...
2
by: r dubey | last post by:
Hi, I'm using webclient to enable download of files. However, files get copied to the server rather than the client machine. What could be the problem. Here is the sample that I've used: ...
3
by: David Reynolds | last post by:
Does anyone know how I could stream Excel to the browser for download without saving the file somewhere first. I wasn't sure how I would go about it.
2
by: Grant | last post by:
Hi, I'm trying to download files using asp.net (vb) and it seems to take forever to actually bring up the Save As dialog box. The files are Academic Software Downloads so are quite large in...
2
by: Roger Withnell | last post by:
I'm using the Response object download files from an SQL Server table to the client browser. Having set the content type and AddHeader, I use Response.Write and the file opens in the browser. ...
0
by: tanyali | last post by:
using php5, I download files : ******** downloadfile.php $fileContent = @mysql_result($result1,$i,"gdata"); ...
0
by: PreethiParkavi | last post by:
Hi All, I am trying to develop a custom download manager for my website and I have partially succeed.The Problem is, When I download a file, The browser opens default download manager Instead of...
5
by: nagmvs | last post by:
Hello, Can anyone tell me how can i create a button in asp and link to download files from some folder one by one Simultaneously? I wrote some code to download one file,i don't no...
4
by: robain | last post by:
I am looking for an isolated piece of code that uses XmlHttpRequest/JavaScript to download files from a (specified path on a) server to local machine. The browser on the local machine...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.