Write binary file in PHP

前端 未结 1 390
独厮守ぢ
独厮守ぢ 2020-12-11 07:14

I have wrote a PHP file which will save a JPEG file in the server and part of the code is listed as follow:

    //create folder if folder not exist
if (!is_d         


        
相关标签:
1条回答
  • 2020-12-11 07:46

    I would try changing the creation of the folder to use the recursive flag:

    $flag = @mkdir($save_path . "/" . $file,0777,true);
    
    0 讨论(0)
提交回复
热议问题