Jump to content


PHP/Apache Vs. PHP/Windows IIS

  • This topic is locked This topic is locked
No replies to this topic

#1 mvosoughi

  • Members
  • PipPip
  • Member
  • 18 posts

Posted 07 March 2006 - 11:29 AM

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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users