| Server IP : 64.202.187.69 / Your IP : 216.73.216.17 Web Server : Apache System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64 User : transmarket ( 1001) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/transmarket/testtranslator/ |
Upload File : |
<?php //executeode
// app.js
/*const http = require('http');
// Create an instance of the http server to handle HTTP requests
let app = http.createServer((req, res) => {
// Set a response type of plain text for the response
res.writeHead(200, {'Content-Type': 'text/plain'});
// Send back a response and end the connection
res.end('Hello World!\n');
});
// Start the server on port 3000
app.listen(3000, '127.0.0.1');
console.log('Node server running on port 3000');
*/
$ch = curl_init();
echo " goginto mint ".$tmnnumber = 20;
echo "<br /> To user address ".$useraddress = 'NWLMCAmqBQ3mv6Z61ndi3btM8op52y3KYT';
echo "API response below";
echo "<hr />";
curl_setopt($ch, CURLOPT_URL,"https://api.translateme.market/api");
////curl_setopt($ch, CURLOPT_URL,"http://localhost:8001/api");
curl_setopt($ch, CURLOPT_POST, 1);
//curl_setopt($ch, CURLOPT_POSTFIELDS,
// json_encode(['1'=>'one',"2"=>"two"]));
echo "in API 2 ";
// In real life you should use something like:
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query(array('useraddress' => $useraddress,'tmntomint'=>$tmnnumber)));
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close ($ch);
print_r($server_output);
// Further processing ...
//echo "in php file";
//exec("node /Users/sudhirpuranik/translateme_smallcontract/scripts/first.js", $output);
//echo "after node execution ";
//print_r( $output );
//echo implode("\n", $output);
?>