Hello masters

kindly let me know how to send parameters to a include files.

for example i'm having a code for printing the last modified date in an include file

i've to give the file name to the include file, for the file i've given the last modifed date should get displayed

kindly help me regarding this

or suggest methods to do this

waiting for the reply

GERALD

    <b>include()</b>d files are simply part of your code; any variables set in your code are already visible to the include file.

    IE: if "main.php" does...

    $fileName = "myFile.txt";

    include("theIncludeCode.inc");

    ...then "theIncludeCode.inc"...

    print $fileName;

    .. will print "myFile.txt"

    The rules for passing arguments and GLOBAL vars still apply, however.

    --HTH
    --Rich

      Write a Reply...