PHP-cli standalone/portable on linux
I looking a way to get php5-cli portable on linux.
Any help? Please??
Have you had a look at http://www.magentocommerce.com/knowl...-a-php4-server?
Perfect! but still didn't help
I tried using the php5 included on that link. But that binary does not have option to run php code through command line using '-r' switch.
All I need is php-cli with mcrypt module support to run a very small php code through command line. This lil php code will be used as a command in a shell script as a part.
php -r 'phpinfo();'
php -r 'mcrypt_decrypt(<codehere>);'
I think I might have to manually compile PHP from source code to make a binary like that. Can anyone help in this regards please?
I made it!
Well, this way or another, I made what I wanted.
Used this link for help:
Used the following switches with php configure:
Though it still needs libmcrypt installed as dependency on system. But, good thing is it doesn't need to port any PHP module/extension with it. That I can live with.
I tried using Statifier to build a perfect portable PHP, but that gave segmentation fault.
Ermine trial did pretty well making the installed php to make a portable php, which does not need any dynamic linked dependencies on system. But, that's trial.
Anyway I'm happy that I got a bit of what I was looking for.
Thanks for any help provided here.
You know there's an "mcrypt" terminal command, yeah? But glad you got it sorted, anyway...
Unless you've got further questions/problems, please mark the thread as "SOLVED".
|All times are GMT -5. The time now is 03:43 PM.|