Random code snippets

From: Date: Tue, 22 Apr 2003 14:55:02 +0000
Subject: Random code snippets
Groups: php.general 
Request: Send a blank email to php-general+get-144831@lists.php.net to get a copy of this message
I was wondering if anyone has seen this behavior before. I'm using php to update some webpages. There is an index page with a side menu on the left a place for text on the right. When a user clicks on a menu item I'm calling the page with a page id something like this index.php?pid=2 based on the pid I then include the corresponding html text page. I'm testing on my office computer using php 4.06. This method looks good. But when I transfer to the web server redhat 7.2 php 4.2.2 I get random code snippets inserted into the page. Here is the url for the test pages: http://www.tamut.edu/techde2/services/index.pgp?pid=1. Here is some of my code: <td width="30" bgcolor="#ffffe8">&nbsp;</td> <td width="480" valign="top" bgcolor="#ffffe8"><br><br> <?php $newpid = "s".$pid; switch ($newpid) { case "s1": require("s1.html"); break; case "s2": require("s2.html"); break; case "s3": require("s3.html"); break; case "s4": require("s4.html"); break; case "s5": require("s5.html"); break; case "s6": require("s6.html"); break; case "s7": require("s7.html"); break; case "s8": require("s8.html"); break; case "s9": require("s9.html"); break; case "s10": require("s10.html"); break; case "s11": require("s11.html"); break; case "s12": require("s12.html"); break; default: break; } ?> </td> <td width="20" bgcolor="#ffffe8">&nbsp;</td> </tr> <tr> <td width="240" valign="top">&nbsp;</td> <td width="39" bgcolor="#ffffe8">&nbsp;</td> <td width="480" valign="top" bgcolor="#ffffe8"> <span class="footerLinks"><br><a href="../staff/index.php" class="footerLinks">Tech/De Staff</a> <?php require("../includes/footer.html"); ?> </td> <td width="20" bgcolor="#ffffe8">&nbsp;</td> </tr> </table> </div> </body> </html> Any help would be appreciated. TIA. Frank Frank Miller Computer Specialist and Webmaster Texas A&M University-Texarkana 2600 N. Robison Rd Texarkana, Texas 75501 Office 165 Phone (903)223-3156 (2*2*61*37017349) Fax (903)223-3139

Attachment: [application/x-pkcs7-signature] smime.p7s
« previous php.general (#144831) next »