shell_exec() works randomly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sandman

    shell_exec() works randomly

    In another post I told about PHP not being able to create dates earlier than
    1970, so until I can get PHP to do so, I am using a small perlscript to do it.
    It looks like this:

    // $in[date] is something like "1943-10-12";

    $unixtime = shell_exec("bin/converttime.pl $in[date]");

    Problem is, this fails once ever twenty times or so - shell_exec() doesn't
    return anything. This is true of another place where I use shell_exec() to run
    /usr/bin/cal so I don't think the problem is with the application I am trying
    to execute.

    Could it be a memory issue?

    --
    Sandman[.net]
Working...