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

2006-09-29 Thread Ivo F.A.C. Fokkema
On Thu, 28 Sep 2006 14:29:13 -0400, blackwater dev wrote: > 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! I guess it's dependent on your OS, but you might be abl

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

2006-09-28 Thread blackwater dev
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 <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > Ok, dumb question but how do I do that? I

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

2006-09-28 Thread Travis Doherty
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=

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

2006-09-28 Thread Richard Lynch
On Thu, September 28, 2006 7:26 am, blackwater dev wrote: > Ok, I've set up a username and password using Grant All Privileges, > blah. > with username and password. For some reason though the web now can't > login > with that. I then changed the root db password and put that in the > config > an

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

2006-09-28 Thread blackwater dev
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! On 9/28/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: Hi, (sorry for top-posting) This

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

2006-09-28 Thread Ivo F.A.C. Fokkema
Hi, (sorry for top-posting) This is the great way PHP-cli lets you know it hasn't got any MySQL support :) Enable that, and you're good to go. Mind you, PHP-cli has a separate php.ini file. Ivo On Thu, 28 Sep 2006 08:26:13 -0400, blackwater dev wrote: > Ok, I've set up a username and passwor

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

2006-09-28 Thread blackwater dev
Ok, I've set up a username and password using Grant All Privileges, blah. with username and password. For some reason though the web now can't login with that. I then changed the root db password and put that in the config and the web side does run properly with that username, password. I still

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

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 11:36 am, blackwater dev wrote: > I have some code that makes a connection to the db. When I run this > code > from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... > If I call the > script > from the brow

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

2006-09-27 Thread travis
> I have some code that makes a connection to the db. When I run this code > from the command line, it stops at the db connection. If I call the script > from the browser, it works fine. I've changed the permissions and that > didn't work. The db connection is the basic, localhost, root, with n

[PHP] strange errors from command line vs. web

2006-09-27 Thread blackwater dev
I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no passw

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
[snip] i just skimmed the errors, but it looked like various of them were likely due to database failure (i.e., the function didn't have the expected data to process). if something spotty is happening with your database connection that could give you these transient errors (assuming my underlyi

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Chris Gregors
are the source. -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 2:35 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Strange errors when PHP script called from CRON Marek Kilimajer wrote: [snip] >>> Perhaps. Could the data being utili

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Marek Kilimajer wrote: [snip] >>> Perhaps. Could the data being utilized by the code occasionally have >>> characters that should be escaped, by aren't? Are you escaping all >>> of the escapable characters, especially quotes, both single and >>> double? >> >> >> That's what I was thinking initia

Re: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Marek Kilimajer
Pablo Gosse wrote: Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Jay Blanchard wrote: > [snip] > Does anyone have any idea why I might be getting these errors? The > code above, to me at least, doesn't look like it should be throwing > parse errors. > > The script which is called by my crontab to start this process > executes every minute, so I find it very

RE: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Jay Blanchard
[snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very strange that I'm getting these sporad

[PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Pablo Gosse
Hi folks. I've written a CMS where I work, the publishing guts of which is executed through a php script called from my crontab every minute. Every so often (it's happened roughly 17 times since July 22) I get parse errors in my log file when the scripts run into errors while executing. This is

Re: [PHP] Strange errors

2001-04-25 Thread Joseph Blythe
Mark Maggelet wrote: > On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe > ([EMAIL PROTECTED]) wrote: > >> Chris Fry wrote: >> >>> Have a look at php.ini in /usr/local/lib >>> >>> It looks like your prepend file is browser.php - just comment that >>> line out. >> >> Those lines in the php.i

Re: [PHP] Strange errors

2001-04-25 Thread Mark Maggelet
On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: >Chris Fry wrote: > >> Have a look at php.ini in /usr/local/lib >> >> It looks like your prepend file is browser.php - just comment that >>line out. > >Those lines in the php.ini are blank > >; automatically add files bef

Re: [PHP] Strange errors

2001-04-25 Thread Joseph Blythe
Chris Fry wrote: > Have a look at php.ini in /usr/local/lib > > It looks like your prepend file is browser.php - just comment that line out. Those lines in the php.ini are blank ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file= Hm

Re: [PHP] Strange errors

2001-04-25 Thread Mark Maggelet
maybe it's something in auto_prepend_file or auto_append_file. do phpinfo() to check. On Thu, 26 Apr 2001 09:36:56 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: >Hey all, > >I keep getting this error message on a couple of pages from a site I >am >currently working on, the strange thing about

Re: [PHP] Strange errors

2001-04-25 Thread Chris Fry
Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Chris Fry Joseph Blythe wrote: > Hey all, > > I keep getting this error message on a couple of pages from a site I am > currently working on, the strange thing about this is th

[PHP] Strange errors

2001-04-25 Thread Joseph Blythe
Hey all, I keep getting this error message on a couple of pages from a site I am currently working on, the strange thing about this is there are no included files in 'browser.php' and I am certainly not including 'browser.php' anywhere. Warning: Failed opening '/home/binary/public_html/brows