Commit 26ec7090 authored by Anthony.Suerte's avatar Anthony.Suerte

Image Upload Tester [Directory Update]

parent 5ced539d
...@@ -3,10 +3,13 @@ function loadImageAds() { ...@@ -3,10 +3,13 @@ function loadImageAds() {
$path = "imgdir"; $path = "imgdir";
// 該当ディレクトリの確認 // 該当ディレクトリの確認
if(!file_exists($path)) if(!file_exists($path)){
mkdir($path, 0777); if(mkdir($path, 0777))
else echo "Directory Created <br/>";
chmod($path, 0777); }else{
if(chmod($path, 0777))
echo "Directory Permission Modified <br/>";
}
$saveName = basename($_FILES["img1"]["name"]); $saveName = basename($_FILES["img1"]["name"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment