Dear all,
- I need an example about Thrift as follow:
//
------------------------------------------------------------------------------------------------------------
1. One class in Java (Searcher.java):
public class Searcher {
public String getSearchResult() {
return "Content result";
}
}
//
------------------------------------------------------------------------------------------------------------
2. Install a thrift file (MyThrift.thrift):
namespace php javaandphp.generated
typedef string String
service TSearcher {
String getSearchResult()
}
//
------------------------------------------------------------------------------------------------------------
3. I am generated to php:
trongt...@marine:/home/trongtran/practise/thrift$ thrift -php
MyThrift.thrift
//
------------------------------------------------------------------------------------------------------------
4. Run Demo.php by LAMPP (installed):
......................
include and declare it:
// New it
$tSearch = new TSearcherClient();
function printRow() {
# Using method in java
echo( $tSearch->getSearchResult() );
}
.......................
// ==========================================
5. PROBLEM:
- I don't known the workflow between java and PHP?
- How can I install my code to install
Please help me!
Thanks!