Re: newbie : how to access functions in seperate files???

From: Date: Mon, 03 Sep 2001 05:15:51 +0000
Subject: Re: newbie : how to access functions in seperate files???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-65698@lists.php.net to get a copy of this message
Its obviously not finding it... my question is why the includes don't work??? Thanks Aaron Moore "Don Read" <dread@texas.net> wrote in message news:XFMail.20010902233959.dread@texas.net... > 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 (#65698) next »