You are here: Re: Rookie Question About Include « All PHP « IT news, forums, messages
Re: Rookie Question About Include

Posted by IchBin on 09/19/06 23:56

Henry wrote:
> On 18 Sep 2006 20:12:26 -0700, rhustin@gmail.com wrote...
>> Hi,
>>
>> I am extremely new in the web programming department and even more with
>> php.
>>
>> Here is the situation:
>>
>> I have a html frameset on the left and on top with the mainframe in
>> between that(which I plan on removing once I get more familiar with
>> php).
>> I also have a phpBB board which I would like to load inside my frame.
>>
>> Here is the TEST code I used in my forum.php file which is the source
>> of the mainframe:
>>
>> <table border="1" width="100%">
>> <tr>
>> <td>
>> <BASE HREF="http://forum.url/...">
>> <?php include 'http://my.phpBBfofum.net/index.php'; ?>
>> </td>
>> </tr>
>> </table>
>>
>> I used the baseref because otherwise the images wouldn't display.
>>
>> It works fine for the first page display and there is no horizontal
>> crossbar in the frame. The problem I have is that once a link is
>> clicked on the phpBB forum the table disapears and when I open a thread
>> an horizontal bar appears in the frame and I have sort of no control
>> over that. Just like if the thread page was bigger than the others or
>> if the frame was not taken care of by the thread page.
>>
>> What I am trying to figure out is if there is a possible way to prevent
>> that with php code? I would like the page to reload and still fit the
>> table/frame again.
>>
>> Hope it was clear... any help would be apreciated, thanks.
>>
>
> I've typically used include to define some global variables that I can access
> from one location, but I'm not familiar with using is to open a PHP page. I've
> used the PHPBB software before and remember it used quite a bit of templates and
> includes itself. It may be easier to create your own them by altering the
> default pages that come with it. As an example updating the header and footer
> templates that are usually used with all of its pages.
>
> Henry

Yes Henry, you nailed it. This is what I thought at first and it would
be the best/easiest way.

After looking at the UNION statement out on the internet, have not used
for a while, it seemed that I could only do a UNION of two tables. It
really did not make sense to me. I swear in my past years in programming
some where either in Oracle or Sybase..BlabBlabBlab I had done a UNION
on like six or seven tables. I thought that was apart of the SQL ansii.
Guess I figured I am getting old.

I just looked at the right place and you are, 100% right.

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация