Re: [PHP] storing functions

2007-04-04 Thread afan
> 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
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] storing functions

2007-04-04 Thread Satyam


- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Ross" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, April 04, 2007 3:29 PM
Subject: Re: [PHP] storing functions



Ross wrote:

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?


having an army of chinese type in the required files from memory
using altair 8000 interface for every request. only joking.



How I miss front panels in octal:

http://en.wikipedia.org/wiki/Image:Altair8800.jpg

This modern thing of having two hexadecimal digits that fit exactly on a 
byte boundary is child play.


Satyam

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] storing functions

2007-04-04 Thread Davi
Em Quarta 04 Abril 2007 10:19, Ross escreveu:
> 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?
>
> R.

For my projects, I'm using OOP... =]
But if your projects are just "contact forms", you don't need OOP.

I believe that just split your files is a good way! =]

[]s

-- 
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--

Agora com fortune:
"Fortune finishes the great quotations, #6

"But, soft!  What light through yonder window breaks?"
It's nothing, honey.  Go back to sleep."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] storing functions

2007-04-04 Thread Jochem Maas
Ross wrote:
> 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?

having an army of chinese type in the required files from memory
using altair 8000 interface for every request. only joking.

what you have is a basic 'include' strategy, as functions.php
grows you might consider splitting it into a number of files that group
similar functions together, e.g.

db.funcs.php
output.funcs.php
misc.func.php

other than that I'm not sure what you are really asking?

> 
> 
> 
> 
> R. 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] storing functions

2007-04-04 Thread Ross
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?




R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php