|
 |
|
อัพ เว็บขึ้น host แล้ว ภาษาไม่แสดง ครับ อยู่ในเครื่องตัวเองสบายดี |
|
 |
|
|
 |
 |
|
อัพ เว็บขึ้น host แล้ว ภาษาไม่แสดง ครับ อยู่ในเครื่องตัวเองสบายดี
connect.php
Code (PHP)
<?php
$hostname = "localhost";
$user = "";
$password = "";
$dbname = "";
$conn = mysql_connect($hostname, $user, $password) or die("ติดต่อฐานข้อมูลไม่ได้");
mysql_query("SET NAMES tis620");
?>
phpUploadResizeToMySQL2.php
Code (PHP)
<?php
include('connect.php');
if(trim($_FILES["fileUpload"]["tmp_name"]) != "")
{
$images = $_FILES["fileUpload"]["tmp_name"];
$new_images = "Thumbnails_".$_FILES["fileUpload"]["name"];
copy($_FILES["fileUpload"]["tmp_name"],"MyResize/".$_FILES["fileUpload"]["name"]);
$width=100; //*** Fix Width & Heigh (Autu caculate) ***//
$size=GetimageSize($images);
$height=round($width*$size[1]/$size[0]);
$images_orig = ImageCreateFromJPEG($images);
$photoX = ImagesX($images_orig);
$photoY = ImagesY($images_orig);
$images_fin = ImageCreateTrueColor($width, $height);
ImageCopyResampled($images_fin, $images_orig, 0, 0, 0, 0, $width+1, $height+1, $photoX, $photoY);
ImageJPEG($images_fin,"MyResize/".$new_images);
ImageDestroy($images_orig);
ImageDestroy($images_fin);
echo "Resize Successful.<br>";
//*** Insert Record ***//
$objDB = mysql_select_db($dbname,$conn);
$strSQL = "INSERT INTO files ";
$strSQL .="(Thumbnails,FilesName,price,names,dtail,tel) VALUES ('".$new_images."','".$_FILES["fileUpload"]["name"]."','$price','$names','$dtail','$tel')";
$objQuery = mysql_query($strSQL);
}
?>
<a href="phpUploadResizeToMySQL3.php">View files</a>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-10-10 23:13:29 |
By :
javasu |
View :
1250 |
Reply :
8 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใส่แล้วนะครับ ยังมะได้
|
 |
 |
 |
 |
Date :
2009-10-11 00:20:56 |
By :
javasu |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
mysql_query("SET NAMES utf8");
|
 |
 |
 |
 |
Date :
2009-10-11 00:30:22 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มะได้เหมือนกันครับ 
|
 |
 |
 |
 |
Date :
2009-10-11 14:27:32 |
By :
javasu |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
หมายถึงอัำพไฟล์ที่เป็นภาษาไทยหรือป่าวคับ
ถ้าอัพไฟล์ที่เป็นภาษาไทยในส่วนที่เป็นการ upload ให้ rename ชื่อเป็นอย่างอื่นดีกว่าไหมครับ
เช่นเป็นวันเวลาที่ upload ขึ้นไป
|
 |
 |
 |
 |
Date :
2009-10-12 11:28:14 |
By :
pokultra |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าขนาดนี้ไม่ได้ผมแนะนำ เปลี่ยนโฮ้สเลยดีมั้ยครับ
|
 |
 |
 |
 |
Date :
2009-10-12 11:48:53 |
By :
killnight |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าจะเปลี่ยน host ผมแนะนำของเพ่วินเลยก๊าบ จำเว็บไม่ได้ต้องรอให้พี่วินมาละกัน อิอิอิ
|
 |
 |
 |
 |
Date :
2009-10-12 12:00:25 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คุณ phpbasic ใช้ Host ของพี่วินหรอครับ
|
 |
 |
 |
 |
Date :
2009-10-12 13:06:05 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|