RE: [PHP] newbie : how to access functions in seperate files???

From: Date: Mon, 03 Sep 2001 04:39:59 +0000
Subject: RE: [PHP] newbie : how to access functions in seperate files???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65697@lists.php.net to get a copy of this message
On 03-Sep-2001 Aaron Moore wrote: > ok i have this at the top of my page: > > include("/www/data/vi2/root/layout/functions.php"); > include("/www/data/vi2/root/layout/config.php"); > require("/www/data/vi2/root/layout/init.php"); > > but when I call one of the functions included in functions.php i get a > message saying : > > Fatal error: Call to undefined function: get_total() in > /www/data//root/test.php on line 7 > > > how do i get it to know that the function exists? > if (function_exists('get_total')) echo 'got'; } else { echo 'not'; } Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#65697) next »