Re: storing functions
| From: | afan at afan dot net | Date: | Wed, 04 Apr 2007 14:28:00 +0000 |
| Subject: | Re: storing functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252046@lists.php.net to get a copy of this message | ||
> I am wondering how you store and recall your functions.
>
> I have an external file - functions.php, this includes all the functions
> for
> the site. It is included in the pages head and then I just use the
> functions
> when I need them.
>
> Does anyone have a better way to store/recall functions?
I have function.php in includes/functions folder with all functions I use
on EVERY PAGE (connect to db, query, print results on screen while
developing, buttons, etc.). And then the functions I use on some pages
have separated (show_order.php, show_product.php,
mysqlDate2friendlyDate.php, etc) and these wil be called/included when
needed.
-afan
>
>
>
>
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>