Connecting Tech Pros Worldwide Help | Site Map

Open-save .php file error instead of execute?

  #1  
Old June 30th, 2006, 04:15 AM
Adam
Guest
 
Posts: n/a
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.
  #2  
Old June 30th, 2006, 12:25 PM
Rik
Guest
 
Posts: n/a

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


Adam wrote:[color=blue]
> 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)?[/color]

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


  #3  
Old June 30th, 2006, 02:45 PM
Adam
Guest
 
Posts: n/a

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


On Fri, 30 Jun 2006 13:25:21 +0200, Rik wrote:
[color=blue]
>Adam wrote:[color=green]
>> 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)?[/color][/color]
[color=blue]
>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.[/color]

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to php jayman9782 answers 6 March 10th, 2008 11:53 AM
Return value of 1 instead of -1 mstng07 answers 2 November 10th, 2007 05:00 AM
No CSS or PHP Includes showing on apache localhost site MaiyaHolliday answers 6 June 5th, 2007 09:36 PM
Error - Cannot pass paramter --> Failed to open stream One answers 9 October 3rd, 2006 08:45 AM
un php script and excpect an answer pas805@gmail.com answers 8 September 17th, 2005 05:45 PM