Jump to content


This topic is now archived and is closed to further replies.


PHP/Apache Vs. PHP/Windows IIS

Recommended Posts

Hi, is there any difference between calling pages contents between PHP on Apcahe versus PHP on IIS? My problem is under PHP/Apache I used include command to call in pages contents (index.php?page=2) but under PHP/Windows platform, it cannot pass the page contents or page title and it only calls the page=0 contents.

As I said, my codes works under PHP/Apache and I have no problem calling in the contents of each page using switch statement ...

Any ideas how to solve this problem?

Here is a sample of my codes:

include "contents.php";

include "pages/$content";
switch ($page)
case 0:
$content = "main.php";
$title = "Main";

case 1:
$content = "page2.php";
$title = "Page two";

MOD EDIT : Topic double-posted. Closing

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.