Notifications
Clear all

Using a php page within an advanced iFrame

4 Posts
2 Users
0 Reactions
37 Views
Posts: 2
Topic starter
(@tonzo)
New Member
Joined: 1 week ago

Hello, Can you advise if Advanced iframe can be used to add a php based page into an iframe?

I have tried it but I can't see a way to get it to work. Are there any specific instructions regards this? Can it be dependent on the version of php which is bein used? Its for a wordpress site.

 

Thanks for any helpful advice.

Topic Tags
3 Replies
TinyWebGallery
Posts: 909
Admin
(@admin)
Prominent Member
Joined: 16 years ago

I do not get your problem. Millions of web pages are php based. you simply include the url you have in the browser to the iframe.

Or do I miss something here?

Best regards, Michael

Reply
Posts: 2
Topic starter
(@tonzo)
New Member
Joined: 1 week ago

Hello Michael, Thanks for taking the time to respond. I thought as you and have of course used iFrames on many sites over the years to incorporate other content into site pages. Thats why I was a bit perplexed when I couldn't see why it wasn't working for me now. The page is a test one:

https://thegorbals.co.uk/wordpresstest/present/the-gorbals-calendar/

There are two instances on this page where I have inserted a php page: https://thegorbals.co.uk/thegorbalscalendar/month.php

Its a lot of work to try to insert the header including the menu into the actual calendar code, plus I would need to update it separately from the main site. So my preference was to incorporate the calendar page in to the site using the iFrame.

Hope that this helps clarify where I am with this issue. I am unsure if its a php issue.

Please get back to me with any suggestions.

Reply
TinyWebGallery
Posts: 909
Admin
(@admin)
Prominent Member
Joined: 16 years ago

Hi,

can you please share your shortcode. What I see for now is that you enable auto resize but you have not used
https://thegorbals.co.uk/thegorbalscalendar like you wrote but https://www.thegorbals.co.uk/thegorbalscalendar/

one is with and one without www

If you use with then this is a different domain for the browser and no auto height is possible. Therefore you get an error. See the browser console for details -> F12

Best regards, Michael

Reply