Using odbc_connect with mapped drives? [SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

Using odbc_connect with mapped drives? [SOLVED]

Post by PhpDog »

I can connect to a dsn datasource using odbc_connect with a local drive. But it won't connect to a mapped drive (XP Pro box). How can I correct this please?
Last edited by PhpDog on Fri Feb 08, 2008 5:05 am, edited 1 time in total.
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

Re: Using odbc_connect with mapped drives? [SOLVED]

Post by PhpDog »

I'm surprised that I received no replies on this.

Anyway, a solution was found by a friend of mine (can't take credit for another man's work).
If you run Apache as a console application, rather than a service, PHP will then play nicely with mapped drives.
Hope that helps someone else to avoid the pain we experienced to get to the solution.
Post Reply