Closed Thread
Results 1 to 6 of 6

Thread: Includes

  1. #1
    Senior Member megacool is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Cyberspace
    Posts
    152

    Question

    How to include a PHP script from another PHTML page. Further more can i include a PHP script using SSI? I need this info badly.
    The truth is out there? Does anyone know the URL?

  2. #2
    Pro Member razor is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    BFE, Pennsylvania
    Posts
    272
    use
    include("/path/to/full/dir/scriptname.phtml");
    religion is for people who haven't found drugs

  3. #3
    Moderator ashben is an unknown quantity at this point ashben's Avatar
    Join Date
    Oct 2000
    Posts
    746

    Question

    What if the file to be included is not in the web directory (www) but a level down in the root?
    Independent IT Professional
    Development, Integration, Designing
    www.ashben.com

  4. #4
    FWS Addict Koolguy is an unknown quantity at this point Koolguy's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    934
    <?include("http://www.whatever.com/blah/include.inc");?>
    koolplace\dot\com - an amazingly awesome, pointless site

  5. #5
    Senior Member megacool is an unknown quantity at this point
    Join Date
    Nov 2000
    Location
    Cyberspace
    Posts
    152

    Question Makes me wonder....

    can u include a file on some other domain/server..? naaah .. i guess not.. but tell me if i am wrong.
    The truth is out there? Does anyone know the URL?

  6. #6
    Pro Member razor is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    BFE, Pennsylvania
    Posts
    272
    probably, if u use the http:// stuff.
    religion is for people who haven't found drugs

Closed Thread

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