0

I'm stuck in a very big problem.

Inside my website I call this function, for execute this file called "sched.php"

function write()

    passthru('php /var/www/html/sched.php',$err);
    return $err;
}

But nothing is done. It's my output:

<output of sched.php>

1 

I'don't understand, where's my mistake?

Phil
  • 11
  • 1
  • 5

1 Answers1

1

Try this:

 include "sched.php";  //plus the path, if needed
 return $err;
pguetschow
  • 5,176
  • 6
  • 32
  • 45
  • same thing, Error. Nothin is changed. Maybe something is wrong with my apache configuation? Where can I check ? – Phil Nov 27 '15 at 16:10