Richard Leclair wrote:
Hi Norbert, Thanks for your reply. Yeah, you were almost there - it wasn't quite what I had in mind. I probably should have elaborated on this one. I'm looking at building up a library of handy functions that can be included in a current script. Only problem is: (let's just say for clarity that lib.php <==> A.php; same).. If I declare the functions in lib.php, then B.php can include lib.php but cannot execute any functions within B.php (that were declared in lib.php). it keeps coming up as "function undeclared". Any more ideas/thoughts? Or have I not gone about this correctly?
Maybe post your lib.php and B.php, but from your description I have no idea what might cause this problem.
For testing maybe change your lib.php to sth like this ---lib.php-------------------- <code>included lib.php</code> <?php echo('lib.php works'); //let your code follow here ?> Norbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php