Hey guys
Was wondering if there are any PHP guru's on this site. I am writing a PHP widget to include on my charity website but am running into trouble with it. It seems to work perfectly as a standalone PHP file, as shown here. However, as soon as I put the PHP file within include tags on a page on my site, it throws the following errors (stating that the JSON feed cannot be found). The JSON is the incoming feed from JustGiving, feeding the data to my script.
Was wondering if there are any PHP guru's on this site. I am writing a PHP widget to include on my charity website but am running into trouble with it. It seems to work perfectly as a standalone PHP file, as shown here. However, as soon as I put the PHP file within include tags on a page on my site, it throws the following errors (stating that the JSON feed cannot be found). The JSON is the incoming feed from JustGiving, feeding the data to my script.
Warning: include(/lejogblog_widget/widget.php) [function.include]: failed to open stream: No such file or directory in /home/content/d/a/n/****/****/other_sites_hosted_here/****/****/execphp.php(37) : eval()'d code on line 1
Warning: include() [function.include]: Failed opening '/lejogblog_widget/widget.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/d/a/n/****/****/other_sites_hosted_here/****/****/execphp.php(37) : eval()'d code on line 1