Page 1 of 1

[SOLVED] loading external files into php/html

Posted: Sun Nov 23, 2003 9:26 am
by blind487
here is my current page:
http://www.whathuhstudios.com/index2.php

All the code is created using php, and basically I am just writing the HTML using php statements. What I am trying to do, and I'm not even sure if its possible using php code, is load an external file into the blank space that is there. I can use iframes, but don't want the scroll bars or border. i tried a floating div layer, but can't use the 'src=....' tag in that, so it does me no good. I was hoping there was some sort of way to do this in php. i COULD load a file into a variable and just print that... but then the server won't process the php code. any ideas?

Posted: Sun Nov 23, 2003 9:28 am
by Nay
See include().

-Nay

Posted: Sun Nov 23, 2003 9:34 am
by blind487
wow is it really that easy... i was about ready to use CSS layers and DHTML and .... i spent 5 hours searching and trying code... i'll post in about 10 minutes if that works out. thank you

Posted: Sun Nov 23, 2003 9:36 am
by blind487
feeling dumb. thank you so much for the help!!! works exactly as i intended.

Posted: Sun Nov 23, 2003 9:55 am
by Nay
Anytime dude,

Good luck with that script of yours,

-Nay