Is it possible to put all of my functions in a text file and just call it
and use the functions in it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
on 1/13/02 10:06 AM, Cory at [EMAIL PROTECTED] wrote:
Is it possible to put all of my functions in a text file and just call it
and use the functions in it?
http://www.php.net/manual/en/function.require-once.php
http://www.php.net/manual/en/function.include-once.php
-- mike cullerton
Is there anyway that I can have a file (ex: functions.txt) that has all of
my functions in it. And I can call that file and use the functions that are
in it. If it is possible, than that would save me a load of time, thanks
Cory
--
PHP General Mailing List (http://www.php.net/)
To
On Monday 14 January 2002 07:19, Cory wrote:
Is there anyway that I can have a file (ex: functions.txt) that has all of
my functions in it. And I can call that file and use the functions that
are in it. If it is possible, than that would save me a load of time,
thanks
Cory
As Jason said, include() is what you should look for and, as Mike said, you
should also take a look at include_once() and require_once(). Obviously,
require() is another option.
However, you should be aware that txt files are displayed as plain text when
accessed, so if any sensitive data is in
5 matches
Mail list logo