Re: Including a file with a custom function

From: Date: Wed, 29 Nov 2000 01:33:04 +0000
Subject: Re: Including a file with a custom function
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-27741@lists.php.net to get a copy of this message
:) On Tue, 28 Nov 2000, Miles Thompson wrote: > Date: Tue, 28 Nov 2000 21:19:42 -0400 > To: tyler.longren@midiowa.net > From: Miles Thompson <milesthompson@sprint.ca> > CC: PHP-General <php-general@lists.php.net> > Subject: Re: [PHP] Including a file with a custom function > > Let me guess:. <? ... ?> were missing in guestbook.inc? > Miles > > Tyler Longren wrote: > > > Nevermind my question...I just had moment of pure stupidity. :) > > > > Thanks, > > Tyler > > > > On Tue, 28 Nov 2000, Tyler Longren wrote: > > > Date: Tue, 28 Nov 2000 19:11:46 -0600 > > > To: "PHP-General" <php-general@lists.php.net> > > > From: Tyler Longren <tyler.longren@midiowa.net> > > > Reply-To: tyler.longren@midiowa.net > > > Subject: [PHP] Including a file with a custom function > > > > > > Hello, > > > > > > I've got the file named guestbook.inc. In this file, there is a > function > > > named show_guestbook() to show a guestbook. In books.php, I do the > > > following: > > > > > > <? > > > include("config.inc"); > > > include("guestbook.inc"); > > > show_guestbook(); > > > ?> > > > > > > When I load the page books.php, the code inside guestbook.inc is > > > displayed > > > on the screen. How do I get around this? > > > > > > Thanks, > > > Tyler Longren > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27741) next »