54 users online (1 members and 53 guests)  

Thread: IFrame in PHP?


  Results 1 to 2 of 2

Related

  1. iframe    Forum: HTML Forum
    Replies: 4
  2. Php and Iframe    Forum: PHP Forum
    Replies: 3
  3. iframe    Forum: HTML Forum
    Replies: 2
  4. Iframe help    Forum: HTML Forum
    Replies: 2
  5. IFRAME    Forum: HTML Forum
    Replies: 14
  1. #1
    ton7io69's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    1

    Question IFrame in PHP?

    I am currently using iframe to boost my youtube video views, EXAMPLE:

    <IFRAME SRC='hxxp://youtube.com/VIDEO' SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no'></IFRAME>

    I would like to know how to do the same thing in PHP?
    Can someone please send me an example of an almost invisible iframe as above but only in PHP.

    Sorry for bad English &
    Thank you.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: IFrame in PHP?

    PHP is a server-side scripting language. To "change" the code you gave to PHP, all you do is enclose it in either an echo or print statement.

    PHP Code:
    echo "<IFRAME SRC='hxxp://youtube.com/VIDEO' SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no'></IFRAME>"
    Basically, figure out how you want it in HTML, and use PHP to output the appropriate HTML string(s).



Tags for this Thread