htgits
asked on
fopen and the working directory
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\inetsr v. 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
PAulC.
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\inetsr
Any help would be much appreciated
PAulC.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.