Jump to content

Script hangs - ADODB connection


Cep

Recommended Posts

Hello,

 

I am trying to connect to a remote database on my domain using PHP and an ADODB connection via the OLEDB driver. However the script just seems to hang,

 

[code=php:0]
<?php
// Connection strings to Database
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");

// Microsoft Access connection string.
$conn->Open("Provider=Microsoft,.Jet.OLEDB.4.0; Data Source=G:\\apps\\Access\\Mercdat.mdb");
?>

[/code]

 

I don't understand why the script isn't just connecting or dying out but it just seems to hang.

 

This is part of my database_conn.php script which I require on other php scripts in my project. I am not running any queries as yet but since added the above connection my other scripts will just hang.

Link to comment
https://forums.phpfreaks.com/topic/40157-script-hangs-adodb-connection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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