find a way to 5001
This commit is contained in:
parent
6969e456c6
commit
42c5292f53
|
@ -15,19 +15,19 @@ print_r($TIMESTAMP);
|
||||||
$YOU=system("ps u -C ipfs | tail -n 1 | cut -f 1 -d ' '", $retval);
|
$YOU=system("ps u -C ipfs | tail -n 1 | cut -f 1 -d ' '", $retval);
|
||||||
print_r($YOU);
|
print_r($YOU);
|
||||||
|
|
||||||
$IPFSNODEID=system("cat"/home/".$YOU."/.zen/ipfs/.*/.ipfsnodeid", $retval);
|
//$IPFSNODEID=curl_exec("http://127.0.0.1:5001/ipns/");
|
||||||
print_r($IPFSNODEID);
|
//print_r($IPFSNODEID);
|
||||||
|
|
||||||
|
|
||||||
// WRITE MESSAGE LOCALY
|
// WRITE MESSAGE LOCALY
|
||||||
$myfile = fopen("/home/".$YOU."/astroport/www/newfile.txt", "w") or die("Unable to open file!");
|
$myfile = fopen("/home/".$YOU."/astroport/www/".$TIMESTAMP.".newfile.txt", "w") or die("Unable to open file!");
|
||||||
fwrite($myfile, $message);
|
fwrite($myfile, $message);
|
||||||
fclose($myfile);
|
fclose($myfile);
|
||||||
|
|
||||||
// WRITE MESSAGE TO IPFS
|
// WRITE MESSAGE TO IPFS
|
||||||
$myfile = fopen("/home/".$YOU."/.zen/ipfs/.$IPFSNODEID/astroport/www/newfile.txt", "w") or die("Unable to open file!");
|
//$myfile = fopen("/home/".$YOU."/.zen/ipfs/.$IPFSNODEID/astroport/www/newfile.txt", "w") or die("Unable to open file!");
|
||||||
fwrite($myfile, $message);
|
//fwrite($myfile, $message);
|
||||||
fclose($myfile);
|
//fclose($myfile);
|
||||||
|
|
||||||
error_log("SEND ". $phone ." message : ".$link );
|
error_log("SEND ". $phone ." message : ".$link );
|
||||||
mail($to, $subject, $message, $headers);
|
mail($to, $subject, $message, $headers);
|
||||||
|
|
Loading…
Reference in New Issue