Bill, it might be possible to use PHP to include the source of the iframe
as an include from a datafile on the server.  The person wanting to modify
the original page's iframe could use a different page that changes the
contents of the datafile.  See:
http://php.net/manual/en/function.file-put-contents.php

I have not tried this, but am just speculating that it might work.  It
would not refresh an open page -- only deliver different content the next
time it is accessed.

Jim Fuqua

615 822-4400
[email protected]
NOTICE: This message (including attachments) is covered by the Electronic
Communication Privacy Act, 18 U.S.C. sections 2510-2521, is CONFIDENTIAL
and may also be protected by ATTORNEY/CLIENT PRIVILEGE. If you believe
 that this has been sent to you in error, destroy it.
If you are not the intended recipient, any retention, dissemination,
distribution, or copying of this communication is strictly prohibited.
Please reply to the sender that you have received the message in error,
then delete it.


On Sun, May 26, 2013 at 7:10 PM, <[email protected]> wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/nlug-talk/topics
>
>    - Question/Help with PHP <#13ee352e04ae67af_group_thread_0> [3 Updates]
>
>   Question/Help with 
> PHP<http://groups.google.com/group/nlug-talk/t/2c3987bd595b1cde>
>
>    Bill Petersen <[email protected]> May 26 11:14AM -0500
>
>    I have a question that I can't seem to figure out. I am not sure where
>    to
>    go, so on the advice of a NLUG member I am asking the mailing group.
>
>    First let me state that I know very little about jscript and even less
>    about PHP although I think PHP is what I need to complete my task. I
>    now
>    CSS and HTML very well though.
>
>    What I want to be able to do is This:
>
>    I have a website that basically embeds another website into an iFrame.
>    My
>    site is ran by wordpress displays sponsor logos and event logos in
>    small
>    iFrames on the bottom and left sides of the page. The main area of the
>    page
>    is an iFrame that displays real time content powered by a SQL database
>    from
>    someone else. I do not control the SQL site or real time content. I
>    only
>    control the WordPress site with logo's etc.
>
>    I can go into the individual pages and paste the URL into the iframe
>    manually and make it work. This method is much more complex then my
>    administrative user base can be expected to do.
>
>    What I want to be able to do is populate the iFrame that shows the real
>    time content by typing in the link for the real time content website
>    into a
>    form field on another html page of my WordPress site within the same
>    domain. This method would allow my user base to actually be able to
>    administrate which real time content stream that they want to display.
>
>    I have been able to create a java script to do this within the same
>    html
>    page, but I can't seem to figure out how to carry the variable from the
>    form to a different page. I believe that this is a limitation of the
>    client
>    side language (please correct me if I am wrong), hence why I think
>    this may
>    need to be done in PHP. I know this is possible as it is done so much
>    throughout WordPress; however, I can not find the answer or direction I
>    need to go to make this work.
>
>    I would love just to have the answer, but a thrown bone in the right
>    direction would be equally as valued.
>
>    Thanks
>
>    --
>    Bill Petersen
>
>
>
>
>    "Toth, Csaba" <[email protected]> May 26 06:36PM
>
>    This is a little blurry for me. So the site is basically just a
>    WordPress skeleton, it's a mash-up of other sources? Does the WordPress
>    itself contains any real content?
>    I'm very curious about the site address.
>
>    Anyhow, whatever you end up doing be extremely cautious:
>    1. About SQL injection attacks
>    2. XSS (Cross Site Scripting) attacks
>    3. Other attacks
>    The user will type in something, and that supposed to be an address,
>    or direct indicator of an address. Sanitize the input very well, use best
>    practices and control everything.
>
>    My other advice: (Let me tell in advance that I'm mainly an
>    application developer and I wouldn't define myself as web developer) when I
>    tried to do similar thing, more specifically: pull-in contents from other
>    sources using JavaScript asynchronous/AJAX requests, I ran into the "same
>    origin" limitation. Google that, it supposed to prevent XSS, but that maybe
>    the thing which block your efforts also.
>
>    
> http://stackoverflow.com/questions/4686497/same-origin-policy-javascript-jquery-ajax-and-retrieving-an-rss-xml-feed
>
>    Finally: consider reaching out to the Nashville PHP user group (yes
>    there is one!) or Ruby on Rails UG or other web development related UG.
>    There are some developers here on NLUG, but I'm sure that the PHP UG folks
>    has much more knowledge about this topic than me.
>
>    Csaba
>
>    ________________________________
>    From: [email protected] [[email protected]] on
>    behalf of Bill Petersen [[email protected]]
>    Sent: Sunday, May 26, 2013 9:14 AM
>    To: [email protected]
>    Subject: [nlug] Question/Help with PHP
>
>    I have a question that I can't seem to figure out. I am not sure where
>    to go, so on the advice of a NLUG member I am asking the mailing group.
>
>    First let me state that I know very little about jscript and even less
>    about PHP although I think PHP is what I need to complete my task. I now
>    CSS and HTML very well though.
>
>    What I want to be able to do is This:
>
>    I have a website that basically embeds another website into an iFrame.
>    My site is ran by wordpress displays sponsor logos and event logos in small
>    iFrames on the bottom and left sides of the page. The main area of the page
>    is an iFrame that displays real time content powered by a SQL database from
>    someone else. I do not control the SQL site or real time content. I only
>    control the WordPress site with logo's etc.
>
>    I can go into the individual pages and paste the URL into the iframe
>    manually and make it work. This method is much more complex then my
>    administrative user base can be expected to do.
>
>    What I want to be able to do is populate the iFrame that shows the
>    real time content by typing in the link for the real time content website
>    into a form field on another html page of my WordPress site within the same
>    domain. This method would allow my user base to actually be able to
>    administrate which real time content stream that they want to display.
>
>    I have been able to create a java script to do this within the same
>    html page, but I can't seem to figure out how to carry the variable from
>    the form to a different page. I believe that this is a limitation of the
>    client side language (please correct me if I am wrong), hence why I think
>    this may need to be done in PHP. I know this is possible as it is done so
>    much throughout WordPress; however, I can not find the answer or direction
>    I need to go to make this work.
>
>    I would love just to have the answer, but a thrown bone in the right
>    direction would be equally as valued.
>
>    Thanks
>
>    --
>    Bill Petersen
>
>
>    --
>    --
>    You received this message because you are subscribed to the Google
>    Groups "NLUG" group.
>    To post to this group, send email to [email protected]
>    To unsubscribe from this group, send email to
>    [email protected]
>    For more options, visit this group at
>    http://groups.google.com/group/nlug-talk?hl=en
>
>    ---
>    You received this message because you are subscribed to the Google
>    Groups "NLUG" group.
>    To unsubscribe from this group and stop receiving emails from it, send
>    an email to [email protected].
>    For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>    Bill Petersen <[email protected]> May 26 06:54PM -0500
>
>    Thanks for the Tips. I'm not extremely worried about the attacks, as
>    this
>    is an event based website and all of the SQL stuff is done elsewhere.
>
>    The WordPress site actually is a multisite WordPress so the base domain
>    does have quite a bit of content however the the sub domain's do not. A
>    subdomain is what I am attempting to change using Iframes. I will
>    certainly
>    look at the Nashville PHP group. I appreciate the time of telling me
>    about
>    it, and I will head there with my question.
>
>    Thanks again
>
>
>
>    --
>    Bill Petersen
>    <img src="http://tnshotgun.com/wp-content/uploads/2013/04/NSSF.jpg";>
>
>
>
>  You received this message because you are subscribed to the Google Group
> nlug-talk.
> You can post via email <[email protected]>.
> To unsubscribe from this group, 
> send<[email protected]>an empty message.
> For more options, visit <http://groups.google.com/group/nlug-talk/topics>this 
> group.
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to