Click to See Complete Forum and Search --> : include file if not already included


esthera
03-13-2006, 07:46 AM
is there anyway that I can check if a file was included and if not include it --
basically it is possbile that the file was already included on include -- any way of checking?

JayM
03-13-2006, 10:22 AM
You can use the FileSystemObject to open the file, search for the included file (ex. header.asp), if it doesn't exist, use WriteLine to include it. Do you know how to do this? Let me know if you need help writing the script.