rahuul Posted April 22, 2010 Share Posted April 22, 2010 hi friends, i have a batch file to revoke crt files. i want to know how i can run that file using php. command is: revoke-full username I tried exec, system but it doesn't works pls help........ <? $a = system("C:\\Program Files\\OpenVPN\\easy-rsa\\revoke-full.bat Sarad",$b)or die("error"); print $a; print $b; ?> every time it gives prints error, and if i remove 'die' part it prints 1 Link to comment https://forums.phpfreaks.com/topic/199371-run-batch-file-in-php-openssl/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.