Re: Open-save .php file error instead of execute?



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.
.



Relevant Pages

  • Feedback form problem ???
    ... I have a feedback form in html that 'includes' a php file. ... On my remote server the form works OK. ... I cannot modify $mail as I need to keep the original email address on ...
    (alt.php)
  • Re: Apache and symbolic links
    ... symbolic link from a file called rubbish in the web directory to ... executing it, Apache just serves up its contents. ... it doesn't know it is a php file. ...
    (uk.comp.sys.mac)
  • Open-save .php file error instead of execute?
    ... of executing the PHP file as per normal, the browser sees the page as ... Or is it some basic Apache misconfiguration (it's on a remote hosted ...
    (comp.lang.php)
  • What are the possible ways to get hogh ranking in seach engine ?
    ... I know sone way as follows: ... Executing .html extension as php file through .htaccess file ...
    (comp.lang.php)