tilde.club/html/public/index.php

20 lines
420 B
PHP
Raw Normal View History

2024-03-09 02:25:48 -05:00
<?php
2024-03-09 19:55:58 -05:00
// 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);
2024-03-09 02:25:48 -05:00
?>