I'm trying to open a text file using the fopen("file name"", "r"), however I'm getting an error to the effect that the file can't be found.
On my local IIS server, where the fopen command works file, if I execute getcwd() it returns the current IIS directory. However, on my webserver thie returns c:\windows\system32\inetsrv. How can I force the PHP fopen to look in the same directory as the PHP script which is executing the fopen command?
Any help would be much appreciated