Sunday, 15 February 2015

Execute Codeigniter PHP from TCL script -



Execute Codeigniter PHP from TCL script -

i need phone call php page within tcl scripting page.

how embed codeigniter php within tcl script page ? please help me.

try utilize this:

eval "exec php -q /path/to/your/codeigniter/index.php yourcontroller yourmethod"

maybe have create changes in index.php execute it... suggest create specific file cls... create re-create of index.php , set @ begging of file:

/* don't need limited by...normal limitations */ set_time_limit(0); ini_set('memory_limit', '256m'); /* create sure isn't beingness called web browser */ if (isset($_server['remote_addr'])) die('permission denied.'); /* set constants */ define('cmd', 1); /* manually set uri path based on command line arguments... */ unset($argv[0]); /* ...but not first 1 */ $_server['query_string'] = $_server['path_info'] = $_server['request_uri'] = '/' . implode('/', $argv) . '/';

and phone call file instead of index.php...

and dont know if work... start point....

php tcl

No comments:

Post a Comment