|
 |
|
ช่วยดูอีกทีนะคะ เกือบได้แล้ว search ตอนนี้อัพโหลดไฟล์ txt เข้าไปได้แล้ว แล้วก้อลองค้นหาไปพร้อมๆกัน แต่ปัญหา คือ ไฟล์ txt ชื่อมันเป็นภาษาไทย |
|
 |
|
|
 |
 |
|
ตอนอัปก็เปลี่ยนชื่อ file ครับ แล้วก็ มีช่องให้ใส่รายระเอียดของแต่ละ file ง่ายสุดแหละ
|
 |
 |
 |
 |
Date :
2009-04-24 16:52:45 |
By :
teez1232002 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
server มันไม่ซัพพอทไฟล์ ภาษาไทยหรือป่าวครับ
|
 |
 |
 |
 |
Date :
2009-04-24 16:52:57 |
By :
xboy |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือปัญหาหลักๆในตอนนี้คือ คำที่ต้องการค้นหาที่กำหนดในโคดอ่าคะมานหาไม่เจอ ต้องเปนคำภาษาอังกฤษเท่านั้น คือไฟล์ด้านในเปนไฟล์ภาษาไทยอ่าคะ
เปนบทคัดย่อ ซึ่งมีคำกำหนดคือ หัวข้อโครงงาน ,ชื่อผู้จัดทำ , อาจารย์ที่ปรึกษา อ่าคะ คือมานกำหนดในโคดเป็นภาษาไทยมะได้อ่าคะ ทำยังไงดีคะกำหนดไห้ แล้วพอเราลองกำหนดเป็นภาษา อังกฤษ ชื่อผู้จัดทำ มานมี 2 บรรทัด มานดานออกมาคนเดียว T_T ช่วยหน่อยนะคะ ส่งวานอังคารแล้วคะ ฮือๆๆCode (PHP)
<html>
<head>
<title>ThaiCreate.Com Tutorial</title>
<meta http-equiv=?Content-Type? content=?text/html; charset=utf-8>
</head>
<body>
<?
if(copy($_FILES["filUpload"]["tmp_name"],"myfile/".$_FILES["filUpload"]["name"]))
{
echo "ผลลัพธ์การค้นหา";"<br>";
}
?>
<?php
$strFileName = "myfile/thaicreate.txt";
$objFopen = fopen($strFileName,"r");
while(!feof($objFopen))
{
$Buffer = fgets($objFopen,4096);
if(strstr(strtolower($Buffer),'หัวข้อโครงงาน'))
{
echo $Buffer."<br>";
}
if(strstr(strtolower($Buffer),'ชื่อผู้จัดทำ'))
{
echo $Buffer."<br>";
}
if(strstr(strtolower($Buffer),'อาจารย์ที่ปรึกษา'))
{
echo $Buffer."<br>";
}
}
fclose ($objFopen);
?>
</body>
</html>
|
 |
 |
 |
 |
Date :
2009-04-25 11:17:44 |
By :
fasiok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
,มะมีไครมาช่วยหรอคะ T_T
ช่วยหน่อยนะคะ ฮือๆๆ
|
 |
 |
 |
 |
Date :
2009-04-25 22:39:16 |
By :
fasiok |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองไม่ใช้ strtolower ดูซิว่าจะได้ไหม
|
 |
 |
 |
 |
Date :
2009-04-25 23:09:32 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2009-05-01 10:18:33 |
By :
dreaming |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|