|
 |
|
วิธีupload รูปอ่ะ... ผมอยากได้โค้ด เกี่ยวกับการ upload รูปจากเครื่อง ไคเคน ขี้น เซฟเวอร์ อ่ะครับ ซึ่งสามารถ.. |
|
 |
|
|
 |
 |
|
|
 |
 |
 |
 |
Date :
2009-04-02 21:10:19 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พี่ win ครับ แล้ว รูปที่เราอัฟโหลดไปยังเครื่อง เซฟเวอร์จะอยู่ในไหนอ่ะครับ
|
 |
 |
 |
 |
Date :
2009-04-02 21:19:06 |
By :
sanits |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อยู่ในโฟเดอร์ที่เรากำหนดครับ ตามตัวอย่างครับ
|
 |
 |
 |
 |
Date :
2009-04-02 21:33:36 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?
$dir = "c: /appserv/www/uploadfile";
if ($UploadedFile != none)
{
$link = mysql_connect ("localhost","root","root");
Print "Upload File name $UploadedFile_name <br>\n";
if (copy($UploadFile, "$dir/$UploadedFile_name"))
{
print "Upload successfull !! <br>";
mysql_select_db('pointin_webagent',$link);
$sql = "insert into test_img (file_pic)
values ('$file_pic')";
if (! mysql_query($sql, $link))
{
print "Error adding data into Mysql";
}
else
{
print "$UploadedFile_name has been added into Mysql <br>";
}
}
else
{
echo "<script>alert('?????????????????? ');</script>";
}
//unlink ($UploadedFile);
}
else
{
print "Error .. no file.<br>";
}
?>
|
 |
 |
 |
 |
Date :
2009-04-03 09:46:32 |
By :
cmdping |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|