473,405 Members | 2,262 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,405 software developers and data experts.

Open-save .php file error instead of execute?

On one site I'm working on I occasionally get an error where instead
of executing the PHP file as per normal, the browser sees the page as
a file (therefore opens up a execute/save pop-up).

All these pages work fine locally on my Apache/WinXP but produces
these errors on the remote server (Linux/on Apache/1.3.34).

Where do I start looking?

I suspect there's some malformed headers being produced/sent as some
of the scripts use re-direction.

Or is it some basic Apache misconfiguration (it's on a remote hosted
server)?

Adam.
Jun 30 '06 #1
2 5896
Rik
Adam wrote:
On one site I'm working on I occasionally get an error where instead
of executing the PHP file as per normal, the browser sees the page as
a file (therefore opens up a execute/save pop-up).

All these pages work fine locally on my Apache/WinXP but produces
these errors on the remote server (Linux/on Apache/1.3.34).

Where do I start looking?

I suspect there's some malformed headers being produced/sent as some
of the scripts use re-direction.

Or is it some basic Apache misconfiguration (it's on a remote hosted
server)?


1. Check wether all your files end on .php after redirection (you could have
altered that locally, but that's not standard.
2. Try reading the error log of the server, and check what is's doing when
it serves the php as a normal file.

Grtz,
--
Rik Wasmus
Jun 30 '06 #2
On Fri, 30 Jun 2006 13:25:21 +0200, Rik wrote:
Adam wrote:
On one site I'm working on I occasionally get an error where instead
of executing the PHP file as per normal, the browser sees the page as
a file (therefore opens up a execute/save pop-up).

All these pages work fine locally on my Apache/WinXP but produces
these errors on the remote server (Linux/on Apache/1.3.34).

Where do I start looking?

I suspect there's some malformed headers being produced/sent as some
of the scripts use re-direction.

Or is it some basic Apache misconfiguration (it's on a remote hosted
server)?
1. Check wether all your files end on .php after redirection (you could have
altered that locally, but that's not standard.
2. Try reading the error log of the server, and check what is's doing when
it serves the php as a normal file.


Nothing there but .php files - I'm pretty strict on using all lower
case as well - as I'm developing on a WinXP system invariably for
Linux remote servers.

I'll try grabbing an error log - see if it gives me any clues.

Adam.
Jun 30 '06 #3

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

Similar topics

6
by: Les | last post by:
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: Samir Pandey | last post by:
Hello, I am using the following javascript code to open a new window. Somehow, IE always opens a new window. It doesn't open target url in the window name given. All i want is, if there is a...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
13
by: Geoff Fox | last post by:
I am in the final moments of designing a new website. One of the pages (http://www.auditionfactory.com/samples.php) has four links to show sample work. I would like these links to open new...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.