ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader

Can I use loader in shell but from web accessing.

Author Message
jacky@taipei.mbatec.com.t
Guest





PostPosted: Mon Jan 17, 2005 9:50 am    Post subject: Can I use loader in shell but from web accessing. Reply with quote

Can I use loader in shell but from web accessing.
Back to top
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2788

PostPosted: Mon Jan 17, 2005 12:24 pm    Post subject: Reply with quote

Hi

You can use encoded files from shell scripts using php-cli or php-cgi. In this case, you can use the -c option to php to specify the location of a php.ini file, and so you can use either runtime loading or a php.ini install for the Loader. Scripts starting with #!/bin/php are not supported, but you can instead use the more preferable technique of a wrapper, such as

---

#!/bin/sh

here=`dirname $0`

exec php -c $here/php-ini-dir somefile.php

---

To make this a more generic wrapper, you might use scripts/$0.php instead of hardcoding the filename to be executed.

Then, in php-ini-dir you could have a php.ini file with, for example,

zend_extension = /your/account/ioncube/ioncube_loader_lin_4.3.so

I hope this helps, and please post again if you need further clarification or suggestions.

Nick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Loader All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum