Hello, >There is nothing wrong with that solution at all. I >have a functions.php include as well, and so do most >professional BBS's on the market too.
Ok, I don't get it because it doesn't work for me. I tried something very simple, here is the code. By the way what is professional BBS? The only BBS I can remember were the Bulletin Board System a few years ago. main.php: //html code for a form. Just enter a number and then you'll get its sqrt. <?php include("myfunctions.php"); //the file where are stored all my functions $number=$_POST['number']; sqr($number); echo "The result of the function is : $number"; ?> Now, I have a file with some functions in it. In fact only one now as I'm just trying, but hopefuly more later. myfunctions.php: <?php function sqr($number) {$result=sqrt($number); return $result; } ?> But it doesn't work. Do I need to specify something so PHP can find the function in the file myfunctions.php? ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hrfjf20/M=362329.6886308.7839368.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123627055/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/