timstring, it sounds like you need to try a little harder. I think bradgrafelman is, as usual, offering helpful suggestions. This, for instance, sounds a bit surly:
timstring wrote:You see the c:\folder . . . ? that's called a path. I need to figure out how to get to my folder on a Mac.
If you are so sure that this path exists, then perhaps you could try to first make sure that you have specified it correctly in your code by doing something like this:
// timstring, please note that this is a path to DIRECTORY, not a FILE
$tims_path = "/localhost/dispatchreports/callstodispatch/playagain/testing/";
if (is_dir($tims_path)) {
die( "timstring, you cannot use fopen on a directory path." );
}
// if the path is a directory and you want to put a new file there, you'll need to first check if it is writable:
if (!is_writable($tims_path)) {
die("timstring, your path is not writable so you will not be able to write anything to it");
}
// you might consider providing some example code of the file you are trying to write
$tims_file = $tims_path . "some_file_name.txt";
if (!file_exists($tims_file)) {
echo "timstring, your file does not exist. If you want to write a file using fopen and fwrite, you should probably use w, w+, a or a+ for your mode";
} elseif (!is_writable($tims_file)) {
die("timstring, you cannot write to " . $tims_file);
}
echo "I think you should be good to go here to write " . $tims_file;
You might also consider reading some documentation. It seems to work quite well for other people.