Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b] How to Return a value from TCL to PHP [/b]

Status
Not open for further replies.

happyIndian100

Programmer
Jul 20, 2003
66
US

How can i call a TCL script from PHP and return a value from TCL to php.

Please Help!!!
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top