I want to create a log file. I'm using fopen in the following context:
$logfile = "L:\\somedir\\polled\\transaction_log_file.log";
$lf = fopen($logfile, "a") or die("Could not open the log file!");
Now, the catch is I want to write this file to a shared directory...in this case, the L: drive.
I'm on a windows box.
I keep getting the error message:
Warning: fopen(L:\somedir\polled\transaction_log_file.log): failed to open stream: No such file or directory in f:\inetpub\wwwroot\stuff\includes\global_vars.php on line 37
Could not open the log file!
I've looked at the open_basedir command, but in the manual it says "The default is to allow all files to be opened. "
Any ideas on why this won't work?
Thanks,
-J