Frame for PHP code?

Discussion in 'PHP' started by bigu, Jun 7, 2012.

  1. #1
    Hello,

    I have this PHP code:

    <?php include("file.php"); ?>
    PHP:
    Now, how to put this to HTML iframe?

    Thanks.
     
    bigu, Jun 7, 2012 IP
  2. dulldave

    dulldave Guest

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you just use the iframe to link directly to the php file?
     
    dulldave, Jun 7, 2012 IP
  3. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #3
    These days iFrames aren't really needed. I bet you there are better ways.
     
    NetStar, Jun 8, 2012 IP
  4. ptristan88

    ptristan88 Member

    Messages:
    82
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    you can use an iframe tag, for more info check out w3schools
     
    ptristan88, Jun 8, 2012 IP
  5. igunz

    igunz Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what do you mean.
    you can put direct to the iframe without using include.
    <ifram src="file.php"></iframe>
     
    igunz, Jun 8, 2012 IP