Perhaps you have a php-cli.ini and a php.ini file in your configuration
directory of php?

That is a pretty wellknown way to do it, have a cli config without session
and other irrelevant components for web, and then a main for web.

Try to - if possible - to execute this command on your command line:  

php -m     and check if session is loaded
php -i     and check if the is a different ini path 

/Jippi

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of haj
Sent: 16. september 2007 11:50
To: Cake PHP
Subject: CLI access hampered by session?


Hi,

I've been trying to call a controller via CLI. I basically followed
this Bakery tutorial:

http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron
-and-the-command-line

so, copied index.php and change it to take command line args. Then
upon calling an action via ssh, I get error like:


PHP Fatal error:  Call to undefined function: session_cache_limiter()
in /var/www/html/cake/libs/session.php on line 153

The session itself must be working since I'm using session to track
user login in regular (not CLI) web access pages.
This looks strange to me... Anyone think of reason of the error?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to