Looking for a solution to include external pages in my CMS

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
User avatar
Zewt
Forum Newbie
Posts: 2
Joined: Fri May 23, 2003 12:34 am

Looking for a solution to include external pages in my CMS

Post by Zewt »

I want to give users the ability to submit a link to their html pages, which could then be included in my Content Management System. The idea is to have their content show up as html inside the master page, same as an include would work.

I tried using Include(); but cannot seem to get it to work properly, and am not sure of it's security.

Does anyone have any tips on how to go about something like this?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

You could try to set an <iframe> to show the user's page content. Then dynamically set the source:

Code: Select all

<iframe src="<?=$userData["webPageUrl"];?>" width="250" height="250"></iframe>
Hope it helps. Regards,
Scorphus.
User avatar
Zewt
Forum Newbie
Posts: 2
Joined: Fri May 23, 2003 12:34 am

Excellent!

Post by Zewt »

Thats works perfect Scorphus.

Thanks mucho.

I am sure I can work around the dimension issues. :D
Post Reply