php not working well
Posted by: damcbc (---.fnsce7004.e.brasiltelecom.net.br)
Date: October 24, 2007 06:31PM

Hello everyone.
In my c:/wamp/www/ folder, I have other folders. Suppose:
c:/wamp/www/damcbc/
c:/wamp/www/project/
c:/wamp/www/vrfc/

in on of these folders the php is not woking well. In the others yes.
f. e.
require_once("class/config.php"winking smiley;
require_once("$absolute/class/classDAOSectionTyre.php"winking smiley;

$groep = ($_REQUEST['groep']?$_REQUEST['groep']:2);

$type = $_REQUEST['type'];
if (!$type) $error = $L->t("question_tyre_emptytyre_error"winking smiley;

if (isset($error)){ echo $error;exit;}

$dao = new classDAOSectionTyre();
$tyregeneral = $dao->getGeneralInfoTire($groep,$type);

$xml = "<".chr(077)."xml version='1.0' encoding='ISO-8859-1'".chr(077).">\n";
$xml .= "<vrfc>\n";
$xml .= "<section id=\"intro\">\n";
$xml .= "<text id=\"200\">".$L->t("question_tyre_backtotyreslist"winking smiley."</text>\n";
$xml .= "<text id=\"201\"><![CDATA[";
$xml .= "<p><font color=\"#ff0000\"><b>".$tyregeneral[0]->Bandtypetitel."</b></font></p>";
$xml .= $L->t("question_tyre_fixedtexttotyre"winking smiley;
$xml .= "]]></text>\n";
$xml .= "</section>\n";
$xml .= "<section id=\"general\">\n";
$xml .= "<text id=\"202\"><![CDATA[";
$xml .= $tyregeneral[0]->Bandtypeomschrijving;
$xml .= "]]></text>\n";
$xml .= "</section>\n";
$xml .= "<section id=\"features\">\n";

echo $xml;

But instead of showing the xml, it showes the source code of my hp file. What could be wrong?
Someone told me this is a problem with the httpd.conf . Do anyone know what I can do?

tks a lot
winking smiley

Options: ReplyQuote
Re: php not working well
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: October 26, 2007 05:00PM

make sure you use full php tags ( <?php ) not short tags ( <? ).



CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote


Sorry, only registered users may post in this forum.