[SOLVED] loading external files into php/html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
blind487
Forum Newbie
Posts: 5
Joined: Sun Nov 23, 2003 9:26 am

[SOLVED] loading external files into php/html

Post 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?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

See include().

-Nay
blind487
Forum Newbie
Posts: 5
Joined: Sun Nov 23, 2003 9:26 am

Post 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
blind487
Forum Newbie
Posts: 5
Joined: Sun Nov 23, 2003 9:26 am

Post by blind487 »

feeling dumb. thank you so much for the help!!! works exactly as i intended.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Anytime dude,

Good luck with that script of yours,

-Nay
Post Reply