I am working on the command line in PHP and I am having problems, my first problem is when I call mkdir() PHP, it gives me this error
Warning: mkdir(): No such file or directory in E:\Server\_ImageOptimize\OptimizeImage.php on line 196
Then I read in the PHP docs a user comment saying that the forward slash / does not work with this method on Windows, but on Unix.
So, I changed my code to change them to a backslash, but that didn’t change anything for me, I still got the same error on the same line.
Here is the code below can someone help me figure this out please
// I tried both of these below $tmp_path = '\tmp\e0bf7d6'; //$tmp_path = '/tmp/e0bf7d6'; echo $tmp_path; mkdir($tmp_path);
source share