lo guys.
i run a gaming server (winxp).sometimes a game server will crash so i created a batch file to retart it and got a php file to run the bat file so members can use the php scirpt instead of giving them access to the actual box.
the question is:can i run a php scipt on my game server FROM a remote web site and still get the origanal script to start the bat file?i can include the script on the remote site but it dosent run the bat file.
id prefer not having people usin the site on the game server and keep them on the remote site.
basics of the script:
<?php
set_time_limit(0);
if(isset($_POST['submit40']))
{
echo exec('.\CVS\pb\7777pistols.bat');
echo "";
} else {
?>
<?php
}
?>
<form action="" method="post">
<div align="left">
<p align="center">
<input type="submit" name="submit40" value=" Re-Start Pistols">
</p>
</div>
</form>
thers more to the script but thats basicly what the important part is.im not worryed about the script unless i have to change it but i thought id give people an idea of what it is.
in a nutshell.
the above scipt is on site A : (script runs a bat file)
i want to be able to use the script on A from site B
hope this makes sense as i confused myself writting it.
thx for any help.