ok, now I got a very similar problem, I will now post my entire code, and then report my problem:
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> - whateva - </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Stil1 {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
background-color: #000000;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #999999;
text-decoration: none;
}
a:active {
text-decoration: none;
}
.Stil2 {font-size: 12px}
.Stil3 {font-size: 10px}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="550" height="795" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td width="50" height="795" rowspan="8" background="images/index2_01.gif"> </td>
<td width="450" height="90" colspan="3" background="images/index2_02.gif"> </td>
<td width="50" height="795" rowspan="8" background="images/index2_03.gif"> </td>
</tr>
<tr>
<td width="450" height="144" colspan="3" background="images/love.gif"> </td>
</tr>
<tr>
<td width="450" height="25" colspan="3"<?
if($site==pics or $site==mixes or $site==videos)
{
echo "background=''";
}
else
{
echo "background='images/welcome.gif'";
}?>></td>
</tr>
<tr>
<td width="450" height="27" colspan="3"> </td>
</tr>
<tr>
<td width="450" height="29" colspan="3"> </td>
</tr>
<tr>
<td width="50" height="337"> </td>
<td width="350" height="337" valign="top"><? include "$site"."php" ; ?> </td>
<td width="50" height="337"> </td>
</tr>
<tr>
<td colspan="3"><table width="100%" height="45" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" height="45"><table width="100%" height="47" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="31%"> </td>
<td width="41%"><?
if($site==pics)
{
echo "<a href='index.php?site=pics'><img src='images/picsk.gif' border='0'></a>";
}
else
{
echo "<a href='index.php?site=pics'><img src='images/pics.gif' border='0'></a>";
}?></td>
<td width="28%"> </td>
</tr>
</table></td>
<td width="33%"><table width="100%" height="44" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="26%"> </td>
<td width="48%"><?
if($site==mixes)
{
echo "<a href='index.php?site=mixes'><img src='images/mixesk.gif' border='0'></a>";
}
else
{
echo "<a href='index.php?site=mixes'><img src='images/mixes.gif' border='0'></a>";
}?></td>
<td width="26%"> </td>
</tr>
</table></td>
<td width="34%"><table width="100%" height="46" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="23%"> </td>
<td width="52%"><?
if($site==videos)
{
echo "<a href='index.php?site=videos'><img src='images/videosk.gif' border='0'></a>";
}
else
{
echo "<a href='index.php?site=videos'><img src='images/videos.gif' border='0'></a>";
}?></td>
<td width="25%"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="450" height="92" colspan="3" background="images/index2_12.gif"> </td>
</tr>
</table>
</body>
</html>
ok, now when loading "http://localhost/folder/index.php?site=news"
i get the following error message:
- Code: Select all
Warning: include(php) [function.include]: failed to open stream: No such file or directory in D:\Programme\xampp\xampp\htdocs\folder\index.php on line 63
Warning: include() [function.include]: Failed opening 'php' for inclusion (include_path='.;D:\Programme\xampp\xampp\php\pear\') in D:\Programme\xampp\xampp\htdocs\folder\index.php on line 63
the funny thing is, that when i upload my page to the server of my brother and then look at it, everything works fine, but locally and on my server (hostfactory.ch) it dosn't seem to work, how can that be??
I think it must have to do something with the include path, but i just cant find out what, I tried several different settings in the .ini file, like adding ";xampp\folder\" to the include path and so on and I tried different include "versions", like include "$site.php" , include "$news.php" but the error is always the same.
also it doesn't show me different pictures when i'm on different sites (like for example on index.php?site=pics), but 1. I thnik i wrote that down that way and 2. it works on the server of my brother...
please help me, i have no idea what I shall do...
btw, I use the new xampp (1.5.4a) downloaded today (27.10.2006)
Thanks,
Geen