LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Wayne Simes <wayne.simes@netwide.org>
  To  : <linuxsa@linuxsa.org.au>
  Date: 8 Jan 2003 18:10:00 +0930

Apache 2 & PHP #2

Hi again,

Sorry for such a short posting before, I thought there may have been a generic
problem between apache 2 and php 4.

More details are as follows;

I installed Redhat 8 onto a box using the supplied versions of Apache 2.0.40
and PHP 4.2.2

There are no errors in the apache logs or messages log file.

The script that I am trying to execute begins like shown below...

---------------------------

<?
include("./TemplatePower.php");
include("./config.php");

$ws = new TemplatePower("./templates/index.tpl");

$ws->assignInclude("header", "./templates/header.tpl");
$ws->assignInclude("footer", "./templates/footer.tpl");

$ws->prepare();

include("./header.php");
include("./footer.php");

<snipped>

----------------------------

And when I preview this in the browser I get the following result......
It's almost like it doesn't understand  $ws->  and begins to print text from
then onwards.

----------------------------

assignInclude("header", "./templates/header.tpl"); $ws->assignInclude("footer",
"./templates/footer.tpl"); $ws->prepare(); include("./header.php"); include(".
/footer.php"); // handling the category listing $query="SELECT id, name FROM
portal_categories WHERE parent='$cat' AND visible='1' ORDER BY name";
<snipped>
<continued>
$ws->assign("LINKTEXT", opmaak($lrow[2])); } $ws->printToScreen(); ?>

--------------------------

Notice the  ?>  denoting the end of the script.

I am running other PHP software which seems to going ok.

Any suggestions/things to check would be great.


Thanks

Wayne




-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page