Re: [PHP] Test if File Exist, if not, use default file name

2001-03-06 Thread Alan Ward
Try this: if (file_exists("filename")) { echo "Error"; } -AL > > What I would like to have the script do is to check if a variable was > passed, and to check if the file name passed actually exist. If either > case is false then I would like to have it check if the file testQA > exist and if s

[PHP] Test if File Exist, if not, use default file name

2001-03-06 Thread Andrew V. Romero
Lately I have been working on a script and my plan is to have the URL pass an initial variable to the script. So for example, the URL would be http://WhereEverServer.com?questionFileName=testQA. This variable called questionFileName is the name of a file (without the extension) that the script