Is it ok to use a custom php script with C5 5 in an iframe?

Permalink
I have a php script that I am using to pull events from facebook and display them on my website. the url is apoprecords.com/events

To do this in C5 I am using an iframe block and have entered the address of the php file in the iframe block.

Everything seems to be working fine, im just curious if there is a better method that I should be using to run the script.

 
JohntheFish replied on at Permalink Reply
JohntheFish
If it works .. go with it.

The disadvantage (and advantage) of your method is that the content of the iframe is isolated from everything else - by varying degree depending on common domains.

So if you need to mix data from your old php page with C5, it could prove to be a problem.

A more integrated method would be edit your php into a single page. That would also be easier to get into a common look/style/theme.

Many questions of this sort begin the other way round. Someone has tried to integrate a foreign script (such as an advert) into a block or page, found some conflicts, typically in javascript included, then moved it out to an iFrame!