Jump to content

run batch file in php, openssl


rahuul

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.