Jump to content

include file.php does not show on server


tida19

Recommended Posts

my code look like this

	<ul id="navigation">
<li> <a href="index.php?page=profile.php">Profile</a></li>
<li > <a href="index.php?page=product.php">Products</a></li>
<li ><a href="index.php?page=service.php">Service</a></li>
<li ><a href="index.php?page=promotion.php">Promotion</a></li>
<li ><a href="index.php?page=contact.php">Contact us</a></li>
</ul>
.
.
.

<div class="content">  
<?php 

if(empty($page) or $page=="index"){
include ("profile.php");
}
else { include ($_GET["page"]);}

?>
</div>

 

It works well on appserv, but when i uploaded to server ... it's not working.. what to do?  :-\

Link to comment
Share on other sites

Archived

This topic is now archived and is 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.