SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: SSI Problems

Hybrid View

  1. #1
    SitePoint Member radiantrock's Avatar
    Join Date
    Mar 2003
    Location
    NC
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SSI Problems

    I am having problems setting up SSI in Apache for Windows XP. I have made a .htaccess file with this inside:

    Code:
    XBitHack on
    The php page in the directory with the SSI doesnt work. The php page loads fine, but it doesnt include the file like it should. Any ideas on why not? Am i doing something wrong?
    Josh Jarmin
    Fuego Designs
    fuego.radiantrock.com
    radiantrock@earthlink.net

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you pust here the php code you used ?
    If you are using php you don't have to use SSI.


    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  3. #3
    SitePoint Member radiantrock's Avatar
    Join Date
    Mar 2003
    Location
    NC
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I put this line in an .htaccess file in the same directory as the php file.

    Code:
    XBitHack on
    What do you mean i dont have to use SSI with php? How else can you do it?
    Josh Jarmin
    Fuego Designs
    fuego.radiantrock.com
    radiantrock@earthlink.net

  4. #4
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The ``XBitHack on'' means:
    Any file that has the user-execute bit set will be treated as a server-parsed html document ( shtml ).
    It means that you will have to change the file permissions ( under unix the command is chmod ) for that file.

    But because your file is a .php file if you are going to include something you have to use:

    pippo.php
    Code:
    <?php
    ...
    #include "file_name.txt"
    ...
    ?>

    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


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
  •