Paul Furman wrote:>>
10
I'm befuddled.
What other code is in that page?
That was the whole page but it's being included from a template. When I made the test math file empty:
<?php
?>
I still got the funny characters but not with any other pages I include there.
Here it is: http://hills.ccsf.edu/~pfurma02/index.php?SCREEN=test.php
Other pages don't produce this: http://hills.ccsf.edu/~pfurma02/index.php?SCREEN=main.php
--------------------------------------
<?php
# index.php
$template = 'main.php'; # the template for the site
$default_screen = 'home.php'; # the default screen
define ('LIBDIR', 'C:/_Paul/web/phplib');
define ('PUB_DIR', 'C:/_Paul/web/public_html');
define ('SCREEN_DIR', LIBDIR . '/screen');
define ('UTIL_DIR', LIBDIR . '/utilities');
define ('CONFIG_DIR', LIBDIR . '/configuration');
define ('ACTION_DIR', LIBDIR . '/action');# check which SCREEN to display
if(isset($_REQUEST['SCREEN'])) {
if(is_file(SCREEN_DIR . "/" . basename($_REQUEST['SCREEN']))) {
$SCREEN = basename($_REQUEST['SCREEN']);
} else {
$SCREEN = $default_screen;
}
} else {
$SCREEN = $default_screen;
}
if($SCREEN == 'main.php') {
$SCREEN = 'home.php';
$_REQUEST['SCREEN'] = $SCREEN;
}include (SCREEN_DIR . "/$template");
?>
----------------------------------------- <?php #main.php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <meta name="Author" content="Paul Furman"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <TITLE>Paul Furman</TITLE>
<style type="text/css">
---snipped for brevity---
</style>
</HEAD><BODY BACKGROUND="http://www.edgehill.net/paul-background.jpg"
BGPROPERTIES="FIXED" TEXT="#444444" >
<center> <table cellSpacing=0 cellPadding=5 border=0> <tr> <td width="650" valign="top"> <p> <?php include (SCREEN_DIR . "/header.php"); ?>
</center>
<p>
<?php include (SCREEN_DIR . "/$SCREEN"); ?><center>
<p>
<?php include (SCREEN_DIR . "/footer.php"); ?></center>
</td>
</tr>
</table></body> </html>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

