Results 1 to 2 of 2

Thread: Non Relative Includes

  1. #1

    Thread Starter
    Hyperactive Member richy's Avatar
    Join Date
    Jan 1999
    Location
    Liverpool, England
    Posts
    353

    Non Relative Includes

    I want to include a file that isn't relative to my document.

    for example:

    PHP Code:
    <!--#include file="http://www.websiteaddress.com/showpage.asp"--> 
    which I know doesn't work using an address that isn't relative, but what other code can I use to do this?
    ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.

    Richard Whitehouse.
    Join the Footie Predictions League


    "Make it idiot proof and someone will make a better idiot."

  2. #2
    Addicted Member Phenix's Avatar
    Join Date
    Sep 2002
    Location
    Near A Cube
    Posts
    228

    Wink

    In Perl and PHP you would use the server path
    /var/www/html/include.file
    instead of the browser url
    http://www.websiteaddress.com/include.file

    It's probably the same for ASP.

Posting Permissions

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



Click Here to Expand Forum to Full Width