Including a file with a custom function

From: Date: Wed, 29 Nov 2000 01:11:46 +0000
Subject: Including a file with a custom function
Groups: php.general 
Request: Send a blank email to php-general+get-27732@lists.php.net to get a copy of this message
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

« previous php.general (#27732) next »