Re: Question: Is this possible?

From: Date: Tue, 14 Jan 2003 16:11:46 +0000
Subject: Re: Question: Is this possible?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3301@lists.php.net to get a copy of this message
On Tue, 2003-01-14 at 10:01, Ed Finkler wrote: > Stephen Torri wrote: > > I would like to have it such that the common PHP code for files lives in > > a certain directory. I am able to do that already with the use of > > "include_once file.php". What I would like to know if its possible to do > > the following? I want to be able to pass the template around so that I > > can add elements to it. When I am finished I want to show it. I am > > trying to minimize having to maintain multiple copies of code. > > At first glance, it seems like it would work, since you're passing by > reference. I agree that it seems like it should work but I am not seeing the behavior I want. Here is the result of running the above code: <html> <script language='Javascript1.2' src='menu.js' type='text/javascript'></script> <script language='Javascript1.2' type='text/javascript'> var linkset = new Array(); </script> <body> <!-- Note: Main table --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> </table> <!-- end Main table --> </body> </html> <html> <body> <!-- Note: Main table --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <div id='popmenu' class='menuskin' onMouseover='clearhidemenu();highlightmenu(event,'on')' onMouseout='highlightmenu(event,'off');dynamichide(event)'> </div> <a href='#' onMouseover='showmenu(event,linkset[0])' onMouseout='delayhidemenu()'></a> <a href='#' onMouseover='showmenu(event,linkset[1])' onMouseout='delayhidemenu()'></a> <a href='#' onMouseover='showmenu(event,linkset[2])' onMouseout='delayhidemenu()'></a> <a href='#' onMouseover='showmenu(event,linkset[3])' onMouseout='delayhidemenu()'></a> <a href='#' onMouseover='showmenu(event,linkset[4])' onMouseout='delayhidemenu()'></a> </table> <!-- end Main table --> </body> </html> Stephen -- Stephen Torri <storri@sbcglobal.net>

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.general (#3301) next »