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


Groups > comp.lang.php > #12348

Re: Include gives warning

Date 2013-12-22 16:11 +0100
From Luuk <luuk@invalid.lan>
Newsgroups comp.lang.php
Subject Re: Include gives warning
References <1ntef0hrqukct$.1ps7dz7dar5gu$.dlg@40tude.net>
Message-ID <j2cjoa-5rh.ln1@luuk.invalid.lan> (permalink)

Show all headers | 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