Nam G VU
Nam G VU

Reputation: 35374

Is it possible to write a Windows console application using PHP?

I'm going to build a big library for my PHP website.

Upvotes: 0

Views: 1044

Answers (2)

JiminP
JiminP

Reputation: 2142

Yes.

Simple Example :

<?php
echo $argc."\n";
print_r($argv);
?>

Result :

enter image description here

Upvotes: 1

Arafangion
Arafangion

Reputation: 11910

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.

Upvotes: 1

Related Questions