| Author |
import external php file
|
|
| Pedro Amaral Couto 2004-07-31, 3:55 pm |
| Hi;
Is it possible to import an external php file
( something like C++ "#include" or Java "import" ) ?
Regards!
| |
| Sebastian Lauwers 2004-07-31, 3:55 pm |
| Pedro Amaral Couto wrote:
> Hi;
Hi
[...]
> ( something like C++ "#include" or Java "import" ) ?
include();
http://fr2.php.net/function.include
Best regards,
Sebastian
| |
|
|
| Colin McKinnon 2004-07-31, 8:55 pm |
| steve spilled the following:
> "Sebastian Lauwers" wrote:
>
> Just be careful that include’ing a file is relative to the top calling
> script, not relative to the immediate calling script!
Only if you have '.' in your include path.
There are actually four functions which handle this directly:
include()
include_once()
require()
require_once()
In most cases it's the last one you really want.
C.
|
|
|
|