PDA

View Full Version : Ignore query failures


XTF
10-15-2007, 05:54 PM
Hi,

Is there way to run queries in a mod/product and don't cause vB to abort the script if MySQL returns an error?

Edit:
Yes, there is: $vbulletin->db->hide_errors();

Now I'm wondering if it's possible to use $vbulletin if you start a cron job from the shell?

Eikinskjaldi
10-15-2007, 10:45 PM
Hi,

Is there way to run queries in a mod/product and don't cause vB to abort the script if MySQL returns an error?

Edit:
Yes, there is: $vbulletin->db->hide_errors();

Now I'm wondering if it's possible to use $vbulletin if you start a cron job from the shell?

Just import global.php, although quite why you would have a shell script running php is a but of a mystery.

Use the vb cron system instead.

XTF
11-07-2007, 12:44 PM
To avoid limits on memory- and time when ran via the webserver.
Or does the vbcron system have no such limits?