SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2002
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    advantage of php include over iframe?

    what is the advantage of using php includes over iframes?

  2. #2
    SitePoint Guru
    Join Date
    Jul 2004
    Location
    Netherlands
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search engine can index the content... You can bookmark it. a frame is btw something very different then an include since you can also include functions, classes etc....

    But for including content with an include it does not have that much use i think.. since you could just throw it in a div and if you want the scrollbar you can set the overflow in css.

    What can be usefull if you make an index for example and have the layout there, and then have a php file which retrieves the articles most likely from a database and include those in the index then you have seperated the content from the layout of the site. Or unleast that is the theory usually you end up with small parts of html still in the php or you would need to use some sort of templating system.
    Go visit my site :-D you know you want to ;-)
    www.mech7.net


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •