Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.1

Bug #2510 run my index.php without rhyme or reason
Submitted: 2004-10-12 01:16 UTC
From: donyad at 126 dot com Assigned:
Status: Bogus Package: HTML_Template_PHPLIB
PHP Version: 4.3.8 OS: WindowsXP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 + 43 = ?

 
 [2004-10-12 01:16 UTC] donyad at 126 dot com
Description: ------------ index1.php modifyed from example's block.php if index1.php use tpl1.ihtml and original block.ihtml it work well but if i change block.ihtml to my block.ihtml's content it will run my index.php in the same directory ! you can see that in index1.php i write "abc" into a "test.txt" and in index.php i write "index" into "test.txt" before that i use PEAR::ITX , it didnot have this problem Reproduce code: --------------- my block.ihtml <table width="778" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="200" height="80"><img name="logo" src="" width="200" height="60" alt="logo"></td> <td> </td> </tr> <tr> <td colspan="2" bgcolor="#f5f5f5"><img src="" width="1" height="3" alt=""></td> </tr> </table> Expected result: ---------------- my index1.php include_once '../PHPLIB.php'; $fp = fopen("test.txt", "a"); fputs($fp, "abc\r\n"); fclose($fp); $t = & new Template_PHPLIB(); $t->setFile(array( "main" => "tpl1.ihtml", "block" => "block.ihtml" )); $t->parse("CONTENT", "block"); $t->pparse("out", array("main")); Actual result: -------------- my index.php $fp = fopen("test.txt", "a"); fputs($fp, "index\r\n"); fclose($fp); echo "wakaka";

Comments

 [2005-10-27 02:41 UTC] donyad at 126 dot com
this problem arises from my <img src=""> tag in html when require this page, IE will access this document and my root document, e.g. index1.php - index.php and Firefox will access this document twice.
 [2006-12-23 20:06 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!