# Php in iframe not working

**URL:** <https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119>\
**Category:** RapidWeaver Classic\
**Created:** [January 27, 2016, 12:20am UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119 "2016-01-27T00:20:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardLW](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RichardLW](https://forums.realmacsoftware.com/u/RichardLW)\
**Post date:** [January 27, 2016, 12:20am UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/1 "2016-01-27T00:20:35Z")

</div>

I have my visit counter in a little php which I had running in an iframe in the sidebar. It has stopped showing up, but in preview and published.

Did something change?

is there a better way to display it?

---

<div class="post-metadata">

**Author:** ![RichardLW](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RichardLW](https://forums.realmacsoftware.com/u/RichardLW)\
**Post date:** [January 28, 2016, 11:56pm UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/2 "2016-01-28T23:56:46Z")

</div>

Any suggestions as to how to get this to work?

Does it need to be in something other than an iframe?

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 29, 2016, 10:57am UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/3 "2016-01-29T10:57:05Z")

</div>

@RichardLW

A contact form (php page) works fine in a iframe page and in the sidebar too (included as code).

But why in a iframe? What happens when you put just the code in the sidebar?

---

<div class="post-metadata">

**Author:** ![RichardLW](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RichardLW](https://forums.realmacsoftware.com/u/RichardLW)\
**Post date:** [January 29, 2016, 12:25pm UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/4 "2016-01-29T12:25:14Z")

</div>

That is the way I once set it up and it has worked ever since (several years). Although I did put it on a Global page that is called into the sidebar a year or so ago. It still worked until recently.

I just tried pasting the code from the php file into an HTML stack and preview shows this where the counter goes. In other words it shows the counter but does not get the data.

![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/4/45b76e45a067402440b014d55b40cd73313660d2.jpg)

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 29, 2016, 2:26pm UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/5 "2016-01-29T14:26:30Z")

</div>

Which counter you have installed?

---

<div class="post-metadata">

**Author:** ![RichardLW](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RichardLW](https://forums.realmacsoftware.com/u/RichardLW)\
**Post date:** [January 30, 2016, 12:20am UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/6 "2016-01-30T00:20:18Z")

</div>

I’m using the Google analytics. The php file looks up the current number in Google and adds the historical value from the date I started using Google to give the actual total.

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 30, 2016, 6:51pm UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/7 "2016-01-30T18:51:33Z")

</div>

Sorry, no solution.  
No idea, why it no longer works.

---

<div class="post-metadata">

**Author:** ![RichardLW](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RichardLW](https://forums.realmacsoftware.com/u/RichardLW)\
**Post date:** [January 30, 2016, 7:31pm UTC](https://forums.realmacsoftware.com/t/php-in-iframe-not-working/5119/8 "2016-01-30T19:31:50Z")

</div>

thanks for trying. Hopefully someone else will chime in
