Browse Source

fixed getting cgi bin path

master
sose 2 months ago
parent
commit
917928af75
  1. 11
      news.php

11
news.php

@ -1,18 +1,11 @@
#!/usr/bin/php
<?php
$abs_path = "gemini://" . getenv("SERVER_NAME") . getenv("SCRIPT_NAME");
$READER_LINK = dirname($abs_path) . "/reader";
$READER_LINK = dirname(__PATH__) . "/reader";
# ^^^^^^^ uri path to an instance of reader.php
# the default is relative, and assumes you have one in the same directory as
# this script
$abs_path = "gemini://"
. getenv("SERVER_NAME")
. getenv("SCRIPT_NAME");
$topics = array("WORLD",
"BUSINESS",
"TECHNOLOGY",
@ -156,4 +149,4 @@ while ($feed->read()) {
}
}
$feed->close();
$feed->close();
Loading…
Cancel
Save