hello
I need to make a cd with php and mysql runing on cd
I found microweb to support this but it is not free
I found badblue but I must start and stop mysql because badblue doesn't do it
so I make a index.php :
<?php
$start= c:\badblue\start.bat;
echo "<pre>$start</pre>";
?>
and a start.bat :
e:\badblue\Pe\mysql\bin\mysqld --standalone --basedir=e:\badblue\pe\mysql --datadir=e:\badblue\pe\mysql\data --port=3000
exit
so it is ok for the start but the question now is how can I run a stop.bat when user close the window ?
stop.bat :
e:\badblue\Pe\mysql\bin\mysqladmin --user=root --port=3000 shutdown
exit
thank you for your help