Jump to content

Best way to turn a php script into an executable?


devWhiz

Recommended Posts

I've tried to use this http://www.bambalam.se/bamcompile/ .. but I cant get curl to work using the option to set the extension.. I need it to be able to sign into myspace or facebook with curl when it is in an exe.. everything else works fine with bambalam, everything but curl and connecting to an mysql db, I dont need to have mysql support, only curl.. what would be the easiest way to make this happen?

 

btw the exe should just open a CLI and run the script, thanks

Link to comment
Share on other sites

actually, to make it modular:

 

run_php.bat

@echo off
set PATH=%PATH%;"C:\Path to PHP"
set runme=%1
start php -q %runme%

 

USAGE:

change the "C:\Path to PHP" to the path to your PHP install

then run it as such:

run_php.bat some_php_file.php

Link to comment
Share on other sites

Yes sir I sure have, the only I have had semi success with was the bambalam compiler, and it doesnt seem to want to work with cURL after its in .exe format... do you have anything in mind for me thorpe?

 

Thanks for the replies btw

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.