On Jan 19, 2008 12:46 PM, Apple7777 <[EMAIL PROTECTED]> wrote:

> Nathan Nobbe <quickshiftin <at> gmail.com> writes:
>
> > if it works there, and not from the browser, id imagine its a
> permissions
> > issue
>
> Ok, I wrote simple script and run it from CLI.
>
> It works. Then I've tried to run simple script from browser, it works too.
>
> Then I thought it's some conflict of MySQL and Mencoder. I've tried to run
> original script once again, and IT WORKED.
>
> I feel like crazy, becuase I'm pretty sure I didn't modify anything in
> last
> 10-20 minutes. It never worked, now it works. I didn't change script, I
> didn't
> change permissions, I didn't reboot server etc.
>
> What does this happen? Maybe I do not understand something? I'm really
> afraid it
> will stop work at any moment


well good to hear its working at any rate.
you may want to split up your main script into a set of functions that
return boolean values.
then you will have a block of code that invokes the functions.
that way you can get some idea where things might be failing.
you should also consider logging these calls to a file, if youre going to
put this in production.
if you log the parameters of the calls and the return values of the calls,
this should help you
isolate what caused a problem when they arise.

-nathan

Reply via email to