[eluser]bhogsett[/eluser]
I am trying to run a command line call to a codeigniter method.
It works perfectly on my Mac (OSX) and does not work on the server (HostMonster) on the internet.
The problem is the same whether I run the codeigniter from a command line on the server or use a cron call. In both cases the default codeigniter page is displayed rather than running the method.
Oh, if I call the method from a browser on the server it works perfectly.
Here are the various incarnations:
php index.php scores create (Work in OSX and not on server)
path/index.php/scores/create (Works on OSX and on server)
And to be complete here is the cron .sh script that I ulitmately want to run:
#!/bin/bash
cd path
ls
/ramdisk/bin/php5 index.php scores create
The ls is obviously just for testing and the cron run displays a directory listinbg and then the default page on the server and works perfectly on OSX.
Any suggestions?
Maybe there is some server configuration that is required for the command line call to work in codeigniter?
Thanks.
Bill