« Previous Next »

Thread: IIS6 and PHP5 includes problem

Last post 10-10-2008 4:08 PM by murtaza_t. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 09-30-2008, 9:06 PM

    • SWD
    • Not Ranked
    • Joined on 08-20-2002, 11:52 AM
    • Posts 11

    IIS6 and PHP5 includes problem

    I have IIS setup using host headers. PHP pages that have includes such as include menu.php at randomn times will use a menu.php file from a different site on the server. I have php on Apache and this problem does not exist. Other than do not use php on IIS, is there a solution to resolve?

    Thank you.

     

  • 10-01-2008, 2:19 AM In reply to

    Re: IIS6 and PHP5 includes problem

    I am not sure I totally understand your description here... you are using include of a php file that does not exist on the same site... you are using include for a file that actually exists on a different website on the same server ... and that is not happening successfully ... ?? I am not sure of what you asked .... dont mind... :)

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 10-02-2008, 4:20 PM In reply to

    • SWD
    • Not Ranked
    • Joined on 08-20-2002, 11:52 AM
    • Posts 11

    Re: IIS6 and PHP5 includes problem

    include file does exist, hence the reason it dose work sometimes.

    Sometimes, IIS will include a file of the same name from a different website that is on the same server.

    It is as if all php files are cached and IIS chooses any one of those files at randomn, instead of the one that is part of the website.

    therefore, if the server has 5 websites that have the same file called menu.php and on any one of the sites you include menu.php IIS will serve up at randomn anyone off those 5 menu.php files.

    understand now?

     

     

     

  • 10-03-2008, 4:52 AM In reply to

    Re: IIS6 and PHP5 includes problem

     are you sure you are giving the right include path in your files...??

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 10-04-2008, 8:44 PM In reply to

    • SWD
    • Not Ranked
    • Joined on 08-20-2002, 11:52 AM
    • Posts 11

    Re: IIS6 and PHP5 includes problem

     yes, code is correct, otherwise it would never work.

     <?php include "menu.php" ?>


    should not include a file from a diferent website. That is for sure!

     

  • 10-10-2008, 4:08 PM In reply to

    Re: IIS6 and PHP5 includes problem

     This is strange problem, I suppose some thing is either misconfigured or misinterpreted. I would suggest you to enable parent paths in Home directory >> configuration of a website and change the code to

     <?php include "./menu.php" ?>

     and check if that helps to get some where close to the problem you are facing.

Page 1 of 1 (6 items)
Microsoft Communities