Skip to Content.
Sympa Menu

freetds - Re: [freetds] Using PHP with FreeTDS

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Fazekas <fdsubs AT t-online.hu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Using PHP with FreeTDS
  • Date: Wed, 30 May 2007 05:29:06 +0200


On May 30, 2007, at 04:19, Brian Paquin wrote:

Apache and PHP are working (I can generate a phpinfo() page).
But when I use a fairly simple PHP page to connect to the database, I get a timeout.

Timeout as in PHP generates some kind of timeout message?
Or is it your browser timing out waiting for a reply from the web server?

The same simple PHP page executes correctly (so I know the PHP page code works, the database is up, and I have the right setup.

Can you also reproduce the problem executing your php script from the command line?
eg, logged into the new server, in Terminal, try:
php script.php

If it still fails, then you can experiment here a bit easier than going through Apache.

For example, you can just dump the debug output to the terminal:
TDSDUMP=stdout php script.php

Of note, the older server has Sybase installed; the new server doesn't.

That shouldn't make a difference unless you actually are using, or trying to use, Sybase's libraries rather than FreeTDS on one of the servers.

Is a local Sybase install required??

Definitely not.

Will enabling Dump in freetds.conf provide help with this issue?

Yes. If you can only reproduce the problem through Apache, that will be your best option.

--
fds




Archive powered by MHonArc 2.6.24.

Top of Page