Jump to content

Crazyfig

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Crazyfig's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. UPDATE: Well, I have to say Im not impressed with WAMP at all. Added...I tried EasyPHP (similar to WAMP) and had no luck either. I then tried the MSI installed from php.net....surprise...same result...no luck. PHP runs in all, dont get me wrong....but with errors and warnings all over the place. BUT! I found a way to get it all working...not ideal...but its running - PHP, IIS 7.5 and SQL Server. Now I can run ASP pages and PHP pages all from the same location. I did the manual install....pretty much as below: My step by step process:
  2. Ok, thanks for the info, I added the ";" back in front in php.ini Yeah, have code dependent on mssql and to recode, damn...it really is not an option now The DLL it depends on is called ntwdblib.dll. There is a 2004 version(incorrect one) and a 2000 version(correct version). I am using the correct version from SQL 2000. Checked the Apached error log, no more errors....just warnings now: PHP Warning: PHP Startup: mssql: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: mssql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> PHP Warning: PHP Startup: pdo_mssql: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: pdo_mssql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> PHP Warning: PHP Startup: pdo_mssql: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: pdo_mssql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> PHP Warning: PHP Startup: mssql: Unable to initialize module\nModule compiled with build ID=API20090626,TS,VC9\nPHP compiled with build ID=API20090626,TS,VC6\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: mssql: Unable to initialize module Module compiled with build ID=API20090626,TS,VC9 PHP compiled with build ID=API20090626,TS,VC6 These options need to match in <b>Unknown</b> on line <b>0</b><br /> PHP Warning: PHP Startup: PDO: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: PDO: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> PHP Warning: PHP Startup: mssql: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0 <br /> <b>Warning</b>: PHP Startup: mssql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in <b>Unknown</b> on line <b>0</b><br /> [Wed Mar 30 19:45:15 2011] [notice] Child 4132: Child process is running I think I will need to use the Microsoft solution. I tried this, but had no luck...guess its time to try again!
  3. Hi all, Been struggling for 2 days now. Installed WAMP with Apache 2.2. PHP runs fine, but I cant connect to MSSQL. The mssql extension is uncommented in php.ini, and the dll exists in the 'ext' directory (see attached images). Everything seems to be fine, and where it should be....but it cant connect to MSSQL. Its not the servername, username or password...it it were it would be a different message....this is saying mssql is not installed when it clearly is? I know MSSQL is not installed by running code below: if (function_exists('mssql_connect')){ echo "Okay, fn is there<br>------------------<br>"; } else { echo "Hmmm .. fn is not even there<br>------------------<br>"; } if(extension_loaded("mssql")) { echo "MSSQL is Loaded<br>"; } else { echo "MSSQL not loaded<br>"; } if(extension_loaded("msql")) { echo "MSQL is Loaded<br>"; } else { echo "MSQL not loaded<br>"; } echo '<br><br>'; $ext = get_loaded_extensions(); if(in_array('mssql', $ext)) echo 'u have mssql installed<br><br>'; else echo 'u do NOT have mssql installed<br><br>'; Above displays: Hmmm .. fn is not even there ------------------ MSSQL not loaded MSQL not loaded u do NOT have mssql installed Extensions from php.ini ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_dba.dll ;extension=php_exif.dll ;extension=php_fileinfo.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_ming.dll extension=php_mssql.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll ;extension=php_oci8_11g.dll ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_phar.dll ;extension=php_pspell.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite.dll ;extension=php_sqlite3.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll ;extension=php_zip.dll extension=php_pdo_mssql.dll extension=php_pdo_sqlsrv_52_nts_vc6.dll extension=php_msql.dll extension=php_dblib.dll extension=php_sqlsrv_53_ts_vc9.dll extension=php_pdo_sqlsrv_53_ts_vc9.dll ;extension=php_pdo_sqlsrv_52_ts_vc6.dll ;extension=php_pdo_sqlsrv_52_ts_vc6.dll ;extension=php_pdo_sqlsrv_52_ts_vc6.dll ;extension=php_pdo_sqlsrv_52_ts_vc6.dll ;extension=php_sqlsrv_52_ts_vc6.dll extension=php_pdo.dll Extension directories from phpinfo.php Configuration File (php.ini) Path C:\windows Loaded Configuration File C:\wamp\bin\apache\Apache2.2.17\bin\php.ini I set debug to true, ran code that tries to connect to a mssql server, get error message below: Fatal error: Call to undefined function mssql_query() in C:\wamp\www\website\include\adodb\drivers\adodb-mssql.inc.php I have the ntwdblib.dll file in the root php folder (as seen in the attached images, correct version....its the older one...not the newer one which apparently gets corrupted), so all is as it should be...but I still cant connect! Please help....have search the net but everything I try doesnt seem to help [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.