Jump to content

Recommended Posts

I am not a PHP programmer but inherited some code. Basically they upgraded the PHP version from v5.0.5 to v5.2.6 and now the code gives the following errors:

 

PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0

 

Fatal Error handling CallPHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php_oci8.dll' - The specified procedure could not be found. in Unknown on line 0 PHP Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'function'. (severity 15) in \\166.37.214.35\OAWebData$\Production\VSSPT\db.inc on line 126 PHP Warning: mssql_query() [function.mssql-query]: message: Could not locate entry in sysdatabases for database 'the'. No entry found with that name. Make sure that the name is entered correctly. (severity 16) in \\166.37.214.35\OAWebData$\Production\VSSPT\db.inc on line 126 PHP Warning: mssql_query() [function.mssql-query]: Query failed in \\166.37.214.35\OAWebData$\Production\VSSPT\db.inc on line 126

 

I have no idea what this means, and there is almost nothing on Google. Any help to start correcting this, or pointing me in the right direction would help immensely.

 

Thanks :-)

Link to comment
https://forums.phpfreaks.com/topic/131634-phpv505-upgrade-to-phpv526/
Share on other sites

This means that the libraries php requires haven't been installed or are referenced to an incorrect path on your server.

I personally dont work in a Windows environment only Linux but its obvious you must obtain the dll files that your configuration requires.

 

The path for your setup is c:\PHP\ext\php_oci8.dll

Sorry I reread the post again and I see the answer where to install it from.

 

The question I have is why does it need an Dall for Oracle when it is using an MS SQL DB? Is there a place in the code that specifically references this Dall and I could remove it? Is there a specific file in all PHP codes that contains this info?

 

Thanks.

Yes PHP needs to be configured to use which ever extensions you want to use.  PHP can be configured via the php.ini

 

The only extensions you'll need to have enabled for MS SQL databases would be the following

;extension=php_msql.dll

;extension=php_mssql.dll

(remove the ; at the start of the line to enable the extension. To disable do the opposite)

 

Never enable ALL available extensions.

 

Once you have configured PHP make sure your restart your HTTP Server (eg Apache, IIS etc)

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.