|
 |
|
อัพไฟลแล้วมันขึ้นแบบนี้อ่ะคับ........404 - file or directory not found |
|
 |
|
|
 |
 |
|

Code (PHP)
<?php
include('include/config.php');
//if($_SESSION["u_id"]==""){ echo "<meta http-equiv='refresh' content='0; url=index.php' > "; }
//echo $_POST["start2"];
//echo $str_up."<br>";
$start1_data=explode("-",$todate);
$y1=$start1_data[0]+543;
$m1=$start1_data[1];
$d1=$start1_data[2];
$start1=$y1.$m1.$d1;
$start2_data=explode(":",$totime);
$y2=$start2_data[0];
$m2=$start2_data[1];
$d2=$start2_data[2];
$start2=$y2.$m2.$d2;
//echo "amount=".$_POST[amount]."<br>";
//echo "yy=".$_POST[yy]."<br>";
//echo "kk=".$_POST[kk];
$str_maker2="SELECT MAX(file_du_id) FROM work_du_file ";
$rs_maker2=mysql_query($str_maker2);
$arr_maker2=mysql_fetch_array($rs_maker2);
$file_id=$arr_maker2[0]+1;
if($_POST["tag_du_number"]!=""){
$file=$_FILES['pix'];
$place2place="myfile"; //ระบุตำแหน่งที่เก็บไฟล์
//echo "ชื่อของไฟล์ คือ ".$file[name]."<br>";
//echo "ขนาดของไฟล์ คือ ".$file[size]."<br>";
//echo "เนื้อหาของไฟล์ คือ ".$file[tmp_name]."<br>";
//echo "ชนิดของไฟล์ คือ ".$file[type]."<br><br>";
$names=$file[name];
$data=explode(".",$names);
$filesname=$data[1];
//echo "names=".$names."<br>";
//echo "ex0=".$data[0]."<br>";
//echo "ex1=".$data[1]."<br>";
//echo "ex2=".$data[2]."<br>";
$filename_ja=$file_du_id."_".$start1.$start2.".".$data[1];
//echo "filename".$filename."<br>";
if(@copy($file[tmp_name],"$place2place/".$filename_ja))
{
if(eregi("^image",$file[type]))
//echo "<a href=\"$place2place/$file[name]\">$filename_ja </a>";
echo "";
else
echo "";
//echo "<a href=\"$place2place/$file[name]\">$file[name] </a>";
}
else
echo "ไม่มีไฟล์ Upload";
//if(!copy($file_name,"files/$filename")){
//echo "ok";
//}
//if(move_uploaded_file($_FILES['filUpload']['$filename'],"files/".$_FILES['filUpload']['$file_name'])){
//echo "Copy/Upload Complete";
//}
if($data[1]!=""){
$str4="INSERT INTO work_du_file ( `file_du_id` ,`file_du_name` ,`file_du_detail` , `tag_du_id` , `last_update`) VALUES ('$file_du_id', '$filename_ja', '$_POST[yy]','$tag_du_id',now())";
$rs4=mysql_query ($str4);
// echo $str4;
}
}else{ echo "<meta http-equiv='refresh' content='0; url=tag_details_durable?tag_du_id=$_POST[tag_du_id]' > ";}
?>
ผมจะอัพไฟล์เข้าไปไว้ใน clound server คับแต่มันแจ้งเตือนแบบนี้อ่ะคับ ผมผิดพลาดตรงไหนรึเปล่าคับ
Tag : PHP, MySQL

|
|
 |
 |
 |
 |
Date :
2015-03-30 14:49:41 |
By :
stepartz |
View :
1768 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันบอกว่ามันหาไฟล์ที่คุณเรียกไม่เจอ เช็คดู URL ก็ได้ครับ ว่ามันมีไฟล์ที่เรียกจริงหรือไม่?
|
 |
 |
 |
 |
Date :
2015-03-30 15:01:47 |
By :
arm8957 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
.php หายไปไหรครับ
|
 |
 |
 |
 |
Date :
2015-03-30 17:34:33 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|