Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12348

Re: Include gives warning

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 <luuk@invalid.lan>
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 <j2cjoa-5rh.ln1@luuk.invalid.lan> (permalink)
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

Show key headers only | View raw


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.....

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Include gives warning richard <noreply@example.com> - 2013-12-21 10:36 -0500
  Re: Include gives warning richard <noreply@example.com> - 2013-12-21 11:03 -0500
  Re: Include gives warning Derek Turner <frderek@cesmail.net> - 2013-12-21 18:26 +0000
    Re: Include gives warning Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-12-21 14:02 -0500
    Re: Include gives warning Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-21 20:24 +0100
    Re: Include gives warning richard <noreply@example.com> - 2013-12-21 14:36 -0500
      Re: Include gives warning "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-12-21 22:09 +0000
      Re: Include gives warning Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-21 23:46 +0000
      Re: Include gives warning Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-12-21 19:42 -0800
  Re: Include gives warning Luuk <luuk@invalid.lan> - 2013-12-22 16:11 +0100

csiph-web