Re: [PHP] strange errors from command line vs. web
- From: travis@xxxxxxxxxxxxx (Travis Doherty)
- Date: Thu, 28 Sep 2006 12:37:02 -0400
blackwater dev wrote:
Ok, dumb question but how do I do that? I know how to re-compile theJust to verify that this is in fact the problem you should remove the
standard php. My code also uses mssql via freetds, does that somehow
need
to be enabled as it doesn't seem to fail there.
Thanks!
echo "about to connect";
$this->connectionID= @mysql_connect($this->host, $this->user,
$this->password);
echo "after connect";
'@' sign from mysql_connect. '@' is a way of supressing errors, you
specifically WANT that error. Is there a reason you have the '@' there?
If the error is 'Undefined function mysql_connect' then you do need to
get MySQL support compiled in... If it is available on the apache
module it should be available to the CLI as well.
If there is no 'undefined function' error then you should also be
calling 'echo mysql_error()' to see what the error is after connecting.
That error is going to give you more info than any of us can.
Travis
.
- Follow-Ups:
- Re: [PHP] strange errors from command line vs. web
- From: "blackwater dev"
- Re: [PHP] strange errors from command line vs. web
- References:
- strange errors from command line vs. web
- From: "blackwater dev"
- Re: [PHP] strange errors from command line vs. web
- From: "Richard Lynch"
- Re: [PHP] strange errors from command line vs. web
- From: "blackwater dev"
- Re: [PHP] strange errors from command line vs. web
- From: "Ivo F.A.C. Fokkema"
- Re: [PHP] strange errors from command line vs. web
- From: "blackwater dev"
- strange errors from command line vs. web
- Prev by Date: Re: [PHP] strange errors from command line vs. web
- Next by Date: Re: [PHP] How do i check if a variable is a reference or a copy?
- Previous by thread: Re: [PHP] strange errors from command line vs. web
- Next by thread: Re: [PHP] strange errors from command line vs. web
- Index(es):
Relevant Pages
|