#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    114
    Rep Power
    15
    After crawling through this forum's archives to see if my question'd already been asked and answered, I found it. This was asked on 06.06.00, but it was never answered:

    Sorry about this newbie question but from my
    installation on my home PC I get following
    output from my php site.
    X-Powered-By: PHP/4.0.0 Content-type: text/html

    <html>

    ...
    What have I missed, I think its a simple
    miss in my apache config but I dont find
    it.

    I couldn't have said it better.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    56
    Rep Power
    15
    I'd just get this problem solved myself so I'm so glad I could help this one.

    The solution comes in 2 parts:

    X-Powered-By-PHP/4.0RC1 is removed by commenting out the 'expose php'
    line in the php.ini file.

    To eliminate the Content-type: text/html comment out ALL the loadable
    extensions in the php.ini file.

    I was told that commenting out the loadable extensions solves the problem in both
    parts. With the 'expose_php' line in php.ini set to 'On', "X-Powered-By-PHP/4.0RC1" is still sent as header information, but not printed on your pages.

    but I was still wondering why by commending the line 'extension=php_mysql.dll' I was still able to connect to mySQL...
    anyone can explain this to me?!

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    56
    Rep Power
    15
    I just got this problem solved myself so I'm glad to be able to help you with this.

    The solution comes in 2 parts:

    X-Powered-By-PHP/4.0RC1 is removed by commenting out the 'expose php' line in the php.ini file.

    To eliminate the Content-type: text/html comment out ALL the loadable extensions in the php.ini file.


    I was also told that commenting out the loadable extensions solves the problem in both parts. With the 'expose_php' line in php.ini set to 'On', "X-Powered-By-
    PHP/4.0RC1" is still sent as header information, but not printed on
    your pages.

    though I was not sure why by commending the line 'extension=php_mysql.dll' I was still able to connect to mySQL.

    Hope someone can explain to me

    --Ben

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    114
    Rep Power
    15
    Thanks, you're my new hero. That worked, though I too am curious how php is still able to connect to mySQL, I sort of thought that line was critical. Thanks again.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    56
    Rep Power
    15
    Anytime man!
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    In PHP4(all)
    the extensions are included as part of the executable (no external files).

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by billyo:
    Thanks, you're my new hero. That worked, though I too am curious how php is still able to connect to mySQL, I sort of thought that line was critical. Thanks again.[/quote]

Similar Threads

  1. (hopefully) simple SQL in java servlet question
    By djstyli in forum Java Help
    Replies: 3
    Last Post: February 5th, 2004, 07:58 PM
  2. Simple question regarding string evaluation
    By Lobsang in forum PHP Development
    Replies: 3
    Last Post: February 3rd, 2004, 02:28 PM
  3. Just a simple question!
    By Il Capitano in forum Perl Programming
    Replies: 1
    Last Post: January 23rd, 2004, 05:00 PM
  4. Replies: 3
    Last Post: January 7th, 2004, 04:23 PM
  5. Replies: 1
    Last Post: January 7th, 2004, 01:39 AM

IMN logo majestic logo threadwatch logo seochat tools logo