Skip to end of metadata
Go to start of metadata

$port = lbwebserverport();

 Returns the Apache2 webserver port.Background:

Scripts and daemons do not need authentication if the request local plugin web resources, including htmlauth. To use this "locally no auth" function you have to use the http://localhost URI. As the Apache port is configurable with LoxBerry, a port 80 connection may fail. Therefore, use the lbwebserverport() function to aquire the current port.


require_once "loxberry_system.php";
$port = lbwebserverport();
$response = file_get_contents("http://localhost:$port/");
  • No labels