FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Include gives warning
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Include gives warning [message #184306 is a reply to message #184303] Sat, 21 December 2013 19:36 Go to previous messageGo to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
On 21 Dec 2013 18:26:30 GMT, Derek Turner wrote:

> On Sat, 21 Dec 2013 10:36:29 -0500, 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?
>>
>> Now let us not dick around with bashing me over my past and current
>> faults.
>> Or PROBABLE errors such as the use of the iframe.
>> Bash me, don't expect a reply.
>>
>>
>>
>> <?php $year=$_GET['b'];
>> echo $year;
>> ?>
>> <div id="wrapper">
>>
>> <div id="acol" style="float:left; width:3in; height:8in; overflow:auto;
>> border:solid 2px #f00;">
>>
>> <?php include "http://mroldies.net/artists/".$year."artists.php";
>>
>> echo $art60[1][0];
>> echo "<br>";
>> $rows=count($art60);
>> echo $rows;
>> ?>
>>
>> </div>
>>
>> http://mroldies.net/artists/
>
> RTFM on the correct way to use include. HINT it has to be the true path to
> a file on your server.

I have experimented with this.
On MY server, as long as the include page is in the same directory, then
include "filename.php" works.
While an absolute path MUST be used if the called file is not in the same
directory.

Nice to see you got bashed for being so intelligent.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: when incuding a page
Next Topic: php double form submit prevent
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 10:51:56 GMT 2024

Total time taken to generate the page: 0.03954 seconds