Command-line exe

Discussion about the open-source Phalanger [?] project.

Command-line exe

Postby MaitreDede » June 11th, 2012, 9:28 am

Hi,

I have not seen a php.exe command-line tool... I think it would be not so hard to code, to have basic usage : php -f script.php

This would be usefull for PEAR packages, shell scripting...

Thanks
MaitreDede
 
Posts: 29
Joined: May 22nd, 2012, 7:17 am

Re: Command-line exe

Postby Jakub Misek » June 11th, 2012, 2:08 pm

you are right, there isn't direct alternative to php.exe.

But you can make following script
Code: Select all
phpc.exe /target:exe /out:%1.exe %1
"%1.exe"


Where the first line can be executed only if the there %1.exe does not exists yet (or have an older time stamp).
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 24 guests

cron

User Control Panel

Login

Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 24 guests