Is it possible to write a Windows console application using PHP?
I'm 开发者_开发百科going to build a big library for my PHP website.
Yes.
Simple Example :
<?php
echo $argc."\n";
print_r($argv);
?>
Result :
Of course, yes, it is possible to write a windows console application using PHP. Or any other language, for that matter.
However, if you want to "build a big library", I suggest instead writing a useful set of libraries. In that case, I would consider the "windows console application" as a test runner, to execute your tests that ensure that your "big library" works as intended.
精彩评论