|  | Posted by Jerry Stuckle on 06/13/76 12:00 
warth33@hotmail.com wrote:> Oh well. In the C# newsgroup no one could help me. They dont seem to
 > have any idea o nwhat is going on. I tryed to explain the problem as
 > detailed as possible, but nothing..
 > Today I tryed something quite basic. It sounded as it was a good
 > solution, so bad that I hadnt tried it before. Setting time limit. The
 > thing was that the time limit in php ini is set to 0 on the server.
 >
 > So I put this in a test script:
 >
 > set_time_limit(10);
 > try{
 > echo 'before exec';
 > log('before exec');
 > $ret = exec('path_to_exx_file.exe');
 > echo 'exec returned ' . $ret;
 > log('exec returned ' . $ret);
 > }
 > catch(Exception $e){
 > echo 'failed due to: ' . $e;
 > log('failed due to: ' . $e);
 > }
 >
 > Note that this script was calling a simple Hello world c# program.
 >
 > But neither this helped me. The script will run for ever.
 >
 > Is there really not anyone that can help me out, just give me some
 > good hint of what the problem can be? Arent they any gurus there out??
 >
 >
 
 PHP can only time out when it is in control.  Once it passes control off
 to the C# program, PHP can't time out until control is returned.
 
 And there are PHP gurus here.  But this isn't a PHP problem - PHP isn't
 even involved after the call to exec().
 
 But I also sympathize with you.  These things aren't easy to find.
 
 Maybe start a little more basic.  What happens if you just have a C#
 program which does nothing but return?  What if you don't have any
 output from the C# program?
 
 BTW - posting your C# code here won't help.  Most of us won't understand
 it, anyway.
 
 --
 ==================
 Remove the "x" from my email address
 Jerry Stuckle
 JDS Computer Training Corp.
 jstucklex@attglobal.net
 ==================
  Navigation: [Reply to this message] |