Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Sun, 22 Dec 2013 16:11:47 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: Include gives warning References: <1ntef0hrqukct$.1ps7dz7dar5gu$.dlg@40tude.net> In-Reply-To: <1ntef0hrqukct$.1ps7dz7dar5gu$.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 28 NNTP-Posting-Host: 2001:980:9089:1:fce8:d5df:abc0:5ade X-Trace: 1387725301 news.xs4all.nl 2830 [2001:980:9089:1:fce8:d5df:abc0:5ade]:38537 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:12348 On 21-12-2013 16:36, richard wrote: > I am attempting to make this work on the home page but the warnings keep > coming. > Anything that is echoed returns nothing or zero. > Because $year is NOT being acquired properly. > So how do I make it work right? > you should have told what warning you get. But visiting your page revealed it: Warning: include(http://mroldies.net/artists/artists.php) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home2/richbull/public_html/mroldies.net/artists/index.php on line 16 Googling for '404 Warning: include [function.include]: failed to open stream: HTTP request failed! ' found other pages with same error here: http://lcmstarget.tjc.edu/Student/StudentHandbook.php But this site works: http://www.tjc.edu/Student/StudentHandbook.php Some working examples, and the documentation can be found here: http://www.php.net/manual/en/function.include.php But you will get a 404 when the page is not found.....