[freetds] Using PHP with FreeTDS
Daniel Fazekas
fdsubs at t-online.hu
Tue May 29 23:29:06 EDT 2007
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
More information about the FreeTDS
mailing list