<ifram is there any thing eles ?

Discussion in 'PHP' started by matrex722, Nov 9, 2010.

  1. #1
    hi

    i heard that ifram is not good for the site

    is that true ?

    and is there any thing eles to use it instead of ifram ?

    but it must do the same without puting the code of the file in the source of the page

    is that possible ?
     
    matrex722, Nov 9, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    Yes, but on some occassion it will just be fine.

    iframes are like another window, imagine in your webpage you have 2 or more tabs inside. technically, if each window / tabs connects to your database for example, so you will have 3 connections open.

    this is possible, its the ajax.
     
    bartolay13, Nov 9, 2010 IP
  3. matrex722

    matrex722 Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    thanks for your help

    but what if i used it to open file in my server

    like http://www.7elm3aber.com

    look at the 2 blocks at left

    its work with ifram

    so whene i heard that its not good for sites i decided to replace it

    so how can i do the same with any thing eles ?

    i mean <iframe = ????

    i tried fopen it works but the code from source file appear in the page soruce

    ifram didnt do this
     
    matrex722, Nov 10, 2010 IP
  4. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #4
    You can't just "replace" it, but you can do a lot with php's include() function or AJAX. You do need to change your code though as you go from multiple pages in one to one page.
     
    SedNaX, Nov 13, 2010 IP