Results 1 to 9 of 9

Thread: Firebird and PHP

  1. #1

    Firebird and PHP

    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

  2. #2
    dox
    Guest

    Re:Firebird and PHP

    well i dont know solution but try updating to firefox!!

  3. #3

    Re:Firebird and PHP

    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.

  4. #4

    Re:Firebird and PHP

    Quote Originally Posted by Aragorn
    but I do mine this way

    AddType application/x-httpd-php .php .phtml .htm .html .php4 .php3
    What this does (for people that don't know), is allow you to put php code in files named .html

    Its basicly security through obscurity.... people can't see you are running php as easily...
    whatdoyougetwhenyoumultiplysixbynine??

  5. #5

    Re:Firebird and PHP

    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

  6. #6

    Re:Firebird and PHP

    just out of interest, whats in the php file?
    whatdoyougetwhenyoumultiplysixbynine??

  7. #7

    Re:Firebird and PHP

    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.

  8. #8

    Re:Firebird and PHP

    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

  9. #9

    Re:Firebird and PHP

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

Similar Threads

  1. Firebird/Debian Fonts
    By mojo jojo in forum Linux - General Topics
    Replies: 4
    Last Post: 11-19-2003, 12:50 AM
  2. MOZILLA FIREBIRD DOESNT LIKE PNG!!!
    By sujoki in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 09-20-2003, 09:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •