Results 1 to 2 of 2

Thread: SSI Include Needs Changing To Php Include

  1. #1
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635

    SSI Include Needs Changing To Php Include

    I have just made several ssi text files however, i have now decided that rather than including these files using SSI into a .shtml page i would prefer to include the html contained within these files using an include into a PHP page.

    This is what i am using for the SSI..

    PHP Code:
    <!--#config timefmt="%w"--> 
    <!--#include virtual="/ssi/directoy/4/$DATE_LOCAL.txt"--> 
    I beleive this take the SSI file numbered for each day of the week and inserts it into tmy .shtml page depending on the actual day however...

    Im stumped as to what i can use as an include for php to make the same thing happan.. does anyone have the code i need to use to do this handy?

    As it stands i have a dir structure like this...

    /ssi/directory/1/
    /ssi/directory/2/
    /ssi/directory/3/
    /ssi/directory/4/

    As i want to incude 4 different files into the same page each day in different locations.

    Any help you guys can give will be appreciated.

    Regards,

    Lee


  2. #2
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Okay here is the answer for anyone that was wondering..

    PHP Code:
    <?include("directory/1/0".date("w").".php");?>
    And i also found out that if you have a global SSI directory setup on a server unless your host has specifically set permissions for php to be able to access that global/symbolic directory it wont work

    Thanks to Keith over at ARS for the answer and the huge amount of his time i took up with this

    Regards,

    Lee


Posting Permissions

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