I want to show this json url output in table over here which is producing error.
The line which the error is point is this
if ( isset($_GET['page'])=='home' &&
$_GET['page']=='home' )
include("http://midsweden.gofreeserve.com/proj/api.php?identifier=123&format=json");
The error produced is:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /www/zxq.net/a/c/r/acreo/htdocs/proj/index.php on line 65
Looks like you need to set
allow_url_fopen = Onin your php.ini file.Or at runtime, you can do
By default, PHP disables the ability to call remote files via URL with
fopen(),file_get_contents(), and the like.If you don’t have access to
ini_set()but have.htaccessyou can also try setting it in there. See http://davidwalsh.name/php-values-htaccess.