Sep 21, 2006 #1 happyIndian100 Programmer Joined Jul 20, 2003 Messages 66 Location US How can i call a TCL script from PHP and return a value from TCL to php. Please Help!!!
Sep 22, 2006 #2 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US I don't personally know anything about PHP but this might help: http://mini.net/tcl/12130 _________________ Bob Rashkin Upvote 0 Downvote
I don't personally know anything about PHP but this might help: http://mini.net/tcl/12130 _________________ Bob Rashkin
Sep 22, 2006 #3 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Code: [blue]master #[/blue] cat blabla.php <?php echo "2 + 3 = ".exec( "tclsh blabla.tcl 2 3" )."\n"; ?> [blue]master #[/blue] cat blabla.tcl puts [expr [lindex $argv 0]+[lindex $argv 1]] [blue]master #[/blue] php blabla.php 2 + 3 = 5 Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Code: [blue]master #[/blue] cat blabla.php <?php echo "2 + 3 = ".exec( "tclsh blabla.tcl 2 3" )."\n"; ?> [blue]master #[/blue] cat blabla.tcl puts [expr [lindex $argv 0]+[lindex $argv 1]] [blue]master #[/blue] php blabla.php 2 + 3 = 5 Feherke. http://rootshell.be/~feherke/