I have these lines in a php script:
passthru("whoami");
$tims_path = "localhost/DispatchReports/DispatchReportsFolder";
if ( !file_exists($tims_path) ) {
mkdir ($tims_path, 0777);
}
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, " . $tims_path . " is not writable so you will not be able to write anything to it");
}
$FileName = $tims_path . $System . ' ' . $EndMO . '.csv';
$fh = fopen($FileName, "w");
No matter how I write tims_path, mkdir won't create the folder. if I create the folder in finder, if (!is_writable($tims_path)) returns that the folder is not writeable. I have tried many many many combinations of permissions on the target folder and nothing has worked.
HELP!!
tim