Jump to content

include problem


pouncer

Recommended Posts

i have this line in my forum.php
[code=php:0]
include '../includes/template_banner.html';
[/code]

(NOTE: forum.php is in the forum folder so to view its like like www.domain.com/myftp/forum/forum.php)

template_banner.html is simply this

[code=php:0]
<div align="center" class="style6">
        <div align="left"><span class="style14">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="192">
            <param name="movie" value="flash.swf">
            <param name="quality" value="high">
            <embed src="flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="192"></embed>
          </object>
        </span></div>
      </div>
[/code]

but it just doesnt put that flash banner on the forum.php for some reason. All I see is a white space. Works on other pages though which are outside the 'forum' folder
Link to comment
https://forums.phpfreaks.com/topic/27284-include-problem/
Share on other sites

[quote author=pouncer link=topic=115013.msg468152#msg468152 date=1163548572]
include '../includes/template_banner.html';
.........

.........but it just doesnt put that flash banner on the forum.php for some reason. All I see is a white space. [b]Works on other pages though which are outside the 'forum' folder[/b]
[/quote]

So you're saying that www.domain.com/myftp/forum/forum.php DOESN'T display the banner but www.domain.com/myftp/index.php WOULD dispaly the banner?

You're telling the server to "go from my current location UP one folder and look for template_banner.html".  So what folder is this file IN?

Link to comment
https://forums.phpfreaks.com/topic/27284-include-problem/#findComment-124781
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.