PHP 5.2.1: cli does load php_mysql.dll while the same script executed by apache 2.2 fails Call to undefined function mysql_connect()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • java@wispa.de

    #1

    PHP 5.2.1: cli does load php_mysql.dll while the same script executed by apache 2.2 fails Call to undefined function mysql_connect()

    Hi there!

    After I overcame some short_open_tag (thanks, Rik!) I encounter
    another strange php-behaviour. The script I just got to work on the
    windows-commandline obviously does as php.ini tells php to do and
    loads php_mysql.dll:

    E:\ersDHCP>php ./extractLog.php
    .... some mysql-stuff, some output, OK

    The same script invoked by the webserver apache 2.2 entails an error:


    PHP Fatal error: Call to undefined function mysql_connect()

    My configuration php.ini does contain the line extension=php_m ysql.dll
    and seems to be OK while I use the script from commandline. Is there
    anybody who can give me a hint where to cope with this error?

    Take care,

    Christian

Working...