There are 3 functions in php that works similar to #include:

include("filename.ext"): include filename.ext and parse it like a php file

require("filename.ext"); like include, but it's included only one time, if
the code contains two require with the same file that file will be included
only one time, instead of include that will include it twice

readfile("filename.ext"); read filename.ext and print it to the output,
don't parse it.

The most common form is include, even if there aren't php code inside the
included file.

---------------------
Federico
[EMAIL PROTECTED]
---------------------

Lrw <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> Hi all. PHP newbie here.
> There's a code that one can use in ASP that will print to the browser the
> contents of an ascii file:
>
> <!-- #include file = "filename.txt" -->
>
> Can anyone tell me what the PHP equivelant might be?
>
> Thanks!
> Liam
>
>



-- 
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: [EMAIL PROTECTED]

Reply via email to