I have developed a bunch of php scripts and I would like to execute them in a shell without having to go through apache. I can execute most scripts with:
php script.php and it works quite well, however scripts that use curl don't work, even though I have curl installed and php4-curl as well (i am using a debian system). phpinfo will show curl enabled when I run it from a browser through apache but it wont show curl when I run it from a shell.
I would highly appreciate some tips.
Andre
In the shell run the command $ php -m I suspect that the php cli is different to the apache php.
Yup. You are right. The php.ini was indeed different. Thanks
And if you want to use the same .ini, you can specify it via the -c argument.
Does that resolve your issue? If so, don't forget to mark this thread resolved.
yeah it does. thanks again. i will mark the thread.