What exactly is your php file doing?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
I tested it with firefox on my linux box and it prompts for the open or save option.
How peculiar. Are you using firefox 2.0 out of interest?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
It's not liking something in your code. Hmm. I wonder.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
When you send a HTTP Request to the URL, you get the HTTP Response Headers:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
X-Powered-By: ASP.NET
Date: Sat, 30 Jun 2007 14:28:56 GMT
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 29 Jun 2007 12:53:49 GMT
ETag: "1077a4894cbac71:3202"
Content-Length: 7111
Notice:
Content-Type:application/octet-stream
Accept-Ranges: bytes
It does not look like your server is not sending out the correct response headers. Its treats the PHP files as a download.
Is PHP even set up on the server? Have you tried other PHP scripts successfully?
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
thank you so much for helping me paksender....
digital ether: That could quite possible be it.. I was on a windows server and I just switched it to unix but I dont know if it is completely switched right now.
The domain is still resolving to an IIS server. Did you change the DNS entries for your domain to point to the new server?
I just tested right now and I still get a response from an IIS server.
HTTP Request:
GET /index2.php HTTP/1.0
HOST: arbortreeland.com
HTTP Response:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
X-Powered-By: ASP.NET
Date: Sun, 01 Jul 2007 09:51:43 GMT
Content-Type: application/octet-stream
Accept-Ranges: bytes
Last-Modified: Fri, 29 Jun 2007 12:53:49 GMT
ETag: "1077a4894cbac71:3202"
Content-Length: 7111
I think the problem is that you believe you're testing the page on the new host, but in fact the domain still resolves to the old host.
A whois shows:
NS7.WORLDNIC.COM 205.178.190.4
NS8.WORLDNIC.COM 205.178.189.4
as the DNS.
Sometimes it takes a day or two for DNS entries to propagate through the differnet DNS servers around the globe.and what do you mean set up php on the server... I am paying a hosting site and they should do that right?
I mean: Is PHP installed on the machine running the IIS server?
The particular page is being handled by ASP.NET and not PHP.
You can see it in this response header:
X-Powered-By: ASP.NET
If it was handled by PHP it would be something like:
X-Powered-By: PHP/{php version}
To make sure the page is being handled by PHP try a php page with the following:
<?php
phpinfo();
?>
This still doesn't mean PHP isn't intalled however, it just means the server hasn't been set up to handle .php extensions with the PHP module or CGI.But the thing is it works on Internet Explorer so it is confusing.
....
if IE works it should be fine though.....
No, the page working on IE does not mean anything. It only means that IE does not respect the Content-Type HTTP Header. Firefox actually follows the HTTP standard and treats the HTTP resource as a download instead of assuming its a PHP page just because it has a .php extension.
You have to place some PHP code into the page, and see if the PHP is parsed. Use the phpinfo() test above.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101