so how do i
set_time_limit(5000); //5 sec
for
$test = shell_exec("test.bat");
echo $test."</br>";
so far i tried this (and even more then this but failed) the script executes like forever keeps on loading loading....up to max execution timeout maybe it was 300 oh forget it
here what i did
<?php
set_time_limit(5000);
$test = shell_exec("test.bat");
echo $test."</br>";
echo "<font color='white'>i am a test";
?>
dont reply to this topic until you dont know about php (so i call out every php user to solve my mess out pls)
thanks,
*bump*
Well if you want quick support, stackoverflow is the best place since VCMP has less people who can PHP good.
Try running test.bat manually and seeing if it exits.
Quote from: EK.IceFlake on Aug 26, 2018, 01:41 PMTry running test.bat manually and seeing if it exits.
flake then y would i use shell_exec if i had to run it manually well what do u think if i try this will it work
Shell_exec("start test.bat");
?
Quote from: Xmair on Aug 26, 2018, 11:47 AMWell if you want quick support, stackoverflow is the best place since VCMP has less people who can PHP good.
then y would i ask help from vcmp php guyss well few of em which ik better, so umm stachoverflow was useless too...
Quote from: MEGAMIND on Aug 26, 2018, 02:39 PMQuote from: EK.IceFlake on Aug 26, 2018, 01:41 PMTry running test.bat manually and seeing if it exits.
flake then y would i use shell_exec if i had to run it manually well what do u think if i try this will it work
Shell_exec("start test.bat");
?
Quote from: Xmair on Aug 26, 2018, 11:47 AMWell if you want quick support, stackoverflow is the best place since VCMP has less people who can PHP good.
then y would i ask help from vcmp php guyss well few of em which ik better, so umm stachoverflow was useless too...
I mean try running test.bat and see if it exits at all. If it doesn't then there's the problem.
yea it does exits i found that shell_exec for windows has this problem but not for linux or ubuntu
did it can be shell.exec
Quote from: =RK=MarineForce on Sep 04, 2018, 06:52 PMdid it can be shell.exec
lel stay away from this , u dont have any idea what it does, btw locking topic as it was solved