This commit is contained in:
parent
19649ea71d
commit
2c4b0cf6c4
@ -1,3 +1,19 @@
|
||||
<?php
|
||||
echo "hai :3"
|
||||
// todo: startup go program if not started. use low cpu priority.
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
$url = "http:/localhost";
|
||||
$unix = "/home/simponic/http.sock";
|
||||
|
||||
if (defined('CURLOPT_UNIX_SOCKET_PATH')) {
|
||||
curl_setopt($ch, CURLOPT_UNIX_SOCKET_PATH, $unix);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
$response = curl_exec($ch);
|
||||
echo $response;
|
||||
}
|
||||
|
||||
curl_close($ch);
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user