well i dont know solution but try updating to firefox!!
As some of you may know, I am running a webserver on my local machine (Win based, since Slack pooed on me... oh, okay, it was my fault...). I am running Apache 2 and I installed PHP (yeah, I am going to try and learn it... for the fifth time). Anyways, I have a simple PHP script on my local server, that displays the php information for the system. When I am using Firebird, and I click on the test link on my page to view the php information, it keeps wanting to know if I want to download the file, or open it with an application. I tried to set it to open with PHP.exe, which of course didn't work. Anywho, just for grins, I decided to actually use IE to see what my results were, and with IE it works perfectly. Can someone point me in the direction I need to go to have Firebird handle these things correctly? Maybe it is Apache handling it incorrectly? Beats me...
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
well i dont know solution but try updating to firefox!!
You didn't set your file types correctly in your apache configuration.
AddType application/x-httpd-php .php .phtml
but I do mine this way
AddType application/x-httpd-php .php .phtml .htm .html .php4 .php3
That is the way I like it. That should fix your problem.
Aragorn
If you give a man a fire he'll be warm, if you light the man on fire he'll be warm for life.
What this does (for people that don't know), is allow you to put php code in files named .htmlOriginally Posted by Aragorn
Its basicly security through obscurity.... people can't see you are running php as easily...
whatdoyougetwhenyoumultiplysixbynine??
Sorry... my post is misnamed... I do have firefox on here. I was running firebird before, and was confused.
As far as the file type, here is the line from my httpd.conf:
AddType application/x-httpd-php .php .PHP
I don't have html files with PHP in them yet, as I don't even know how to use PHP yet... The test file is a .php file, so it should work. I mean, I hate to give props to IE, but with IE, it does work (damn...).
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
just out of interest, whats in the php file?
whatdoyougetwhenyoumultiplysixbynine??
Yeah, since it works already in one browser check and see if a php file works with just this specifically.
<? phpinfo() ?>
Aragorn
If you give a man a fire he'll be warm, if you light the man on fire he'll be warm for life.
Alastair, it is just a simple 'php info file', similar to what Aragorn has posted, but mine is a shade different, as it doesn't use the short PHP tags... I will try that Aragorn, and see if it will work. Thanks!
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
that shouldn't matter.
Try this..... (yay for people that know more than you)
<alastair_> why would mozilla offer to download a .php file, but IE run it and return everything properly?
<philth> alastair_: munged content-type
<philth> telnet sever 80
<philth> GET /file.php HTTP/1.1
<philth> Host: blah
<philth> see what it says
So an example on my computer:
Code:[alastair@Hooloovoo alastair]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. GET /~alastair/index.php HTTP/1.1 Host: blah <hit enter again here> HTTP/1.1 200 OK Date: Mon, 23 Feb 2004 10:06:48 GMT Server: Apache/2.0.48 (Fedora) X-Powered-By: PHP/4.3.4 Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
whatdoyougetwhenyoumultiplysixbynine??
Bookmarks