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 strange that I'm getting > these sporadic error messages. > > Can any one shed any light on this for me? > [/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 initially, but all code that is submitted to or extracted from the database is encoded using the translation table from get_html_translation_table plus an additional translation which I manually apply to replace ' with \'. Also, I'm reluctant to think that the problem lies here because once a page has been scheduled to be published, it is not removed from this schedule unless the owner of the page does so. Basically, if a page is scheduled to be published, and some data in the page caused the error, the error should show up indefinitely, or until the person has removed the scheduled publishing of the page, since the page will not be removed from the publishing schedule due to the error causing the script to stop executing. Also, if you take a look at the error below in particular, Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array("",31,29,31,30,31,30,31,31,30,31,30,31); You'll see that this is a portion of code that utilizes no external data whatsoever, and is actually in a file (adodb-time.inc.php) which is never called by my script, but is called internally by ADODB. In nearly four years of working with PHP, this is the first time I've ever been completely stumped. Any other ideas? Cheers and TIA, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php