Re: [PHP] strange errors from command line vs. web



Yep, I get called to undefined function so I need to somehow re-compile the
cli version? How do I give support to just the cli version? I'm going to
the docs now.

Thanks!

On 9/28/06, Travis Doherty <travis@xxxxxxxxxxxxx> wrote:

blackwater dev wrote:

> Ok, dumb question but how do I do that? I know how to re-compile 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";
>> >
>
Just to verify that this is in fact the problem you should remove the
'@' 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



Relevant Pages

  • Re: [OT] Compassionate Conservatism and "moral values"
    ... Do you have any argument with the links and the support, ... poll taken by a major polling organization within the US? ... GNU/Linux has a better CLI. ... Snit: ...
    (comp.sys.mac.advocacy)
  • Re: php5 and SQL Scripts
    ... ports collection on a system in order to query a MS-SQL data ... base on another server. ... Call to undefined function mssql_connect ... GD support, CURL support, SOAP, XML, etc.) ...
    (freebsd-questions)
  • Re: Delphi 7/8 Language enhancements
    ... > I believe Danny Thorpe mentioned that the CLI has support for sets, ... The CLI doesn't support sets exactly, in fact since the CLI doesn't ... There is an attribute that informs anyone who cares ... marc rohloff at bigfoot dot com ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 7/8 Language enhancements
    ... Rich Walker wrote: ... > I believe Danny Thorpe mentioned that the CLI has support for sets, ... > but I don't know of any languages other than Delphi that support ... but that doesn't mean that C# is not a fully fledged CLI compliant ...
    (borland.public.delphi.non-technical)
  • Re: Kent Milligan - General question about DB2
    ... I'm talking about CLI Server mode. ... Actually I was reading about the CLI asynch mode supported by other DB2's and they say its only a benefit on single-threaded systems and that multiple threads should be used on multi-threaded systems. ... I can't see us adding this support - other than enhancing RPG at some point to support threading. ...
    (comp.sys.ibm.as400.misc)