Results 1 to 2 of 2

Thread: Loading from another file script??

  1. #1
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading from another file script??

    I am looking for a script or code that will allow me to reduce the code on one page, and load it from another, so if I have a big page it can be less code

    For example
    http://stevetoms.com/airlines.htm
    Lets say I have a different html file for Airlines, then the second airlines text leads to another source file

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Look into using PHP.

    You can do this: <?php include('dir/file.php'); ?> and that will place the contents of dir/file.php into your source code at that point.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •