$url = $config["base_url"]."/status.xml"; $xml_data = ""; /* open the file description to the URL */ if (($fp = fopen($url, "r"))) { $bgcolor = 'green'; /* read the XML input */ while (!feof($fp)) { $xml_data .= fread($fp, 200000); } fclose($fp);
Through the browser opens the URL > When you open a kannel-monitor I get an error > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client > 172.19.1.35:56951] PHP Warning: > fopen(http://localhost:13000/status.xml?password=): failed to open stream: > Permission denied in /var/www/html/kannel-monitor/index.php on line 91 > > What can be wrong& Message tells that the index.php cannot open something (file, socket or something else). Look at line 91 in index.php script and see what file it is trying to open and check the permissions of that file and who is the owner of it. Or, post your index.php script (just few lines around line 91) so someone could give you a hint.