php script generates empty HTML file
| From: | Glen Davis | Date: | Thu, 22 Jun 2000 16:24:51 +0000 |
| Subject: | php script generates empty HTML file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2645@lists.php.net to get a copy of this message | ||
FYI: We're running PHP 4.0.0 on Apache 1.3.12 on Linux 2.2.14
I have several scripts that generate the following HTML,
=====BEGIN HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252"
http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
=====END HTML
one script that generates the file looks like this:
=====BEGIN PHP
<html>
<head><title>Our Photo Pool</title></head>
<body>
<?php
require("function.getDirArray.php3");
$Photos=getDirArray("./",".*jpg$","True"); // get files ending in jpg
from
the current directory & sort them
while (list(($key,$val) = each($Photos)))
?>
<img src="<?php echo $val?>"><hr>
<?php
}
?>
</body>
</html>
=====END PHP
I'm flummoxed. The HTML code generated looks like some sort
of default output, because it bears no resemblance to what my
script should generate.
I can't debug it if it won't process the script!
Help!
P.S. the problem is not in the required file--unless it is
the act of requiring a file that triggers this response.
============================================================
Glen Davis ô¿ô glen@smsu-xa.org
http://www.smsu-xa.org/
http://www.worldsalt.org/
http://www.chialpha.com/