WAP

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

WAPมือใหม่

WAP

โพสต์ที่ยังไม่ได้อ่าน โดย WAPมือใหม่ »

จะทำWAPครับจะต้องมีความรู้เกี่ยวกับอะไรบ้างครับ
หนังสือสื่อก็ยังไม่มีจะศึกษาอย่างไรดีครับช่วยแน่นนำทีครับ
4404

โพสต์ที่ยังไม่ได้อ่าน โดย 4404 »

สำหรับ php มีผล เกี่ยวกับการแสดง ภาษาไทย
ลองดูนี่ช่วย
PHP function สำหรับ WAP ข้อความภาษาไทย

อาจเป็นประโยชน์กับเพื่อนๆ ที่มีปัญหา ภาษาไทย ใน WAP ครับ

<?php
header("Content-type: text/vnd.wap.wml");
include("WapTools.class.php");
$wap = new WapTools();
?>
<wml>
<card id="card1" title="WAP Thai Demo">
<p>
<?php $wap->printthai("1. การคาดหวังของลูกค้าในงานบริการ"); ?><br/>
<?php $wap->printthai("2. ส่วนประสมทางการตลาด - ผลิตภัณฑ์ และราคา"); ?><br/>
<?php $wap->printthai("3. ส่วนประสมทางการตลาด - ช่องทางการจัดจำหน่ายและการ ส่งเสริมการตลาด"); ?><br/>
<?php $wap->printthai("4. ส่วนประสมทางการตลาดอื่น ๆ - บุคคล กระบวนการ และลักษณะทางกายภาพ"); ?><br/>
<?php $wap->printthai("5. กลยุทธ์ปกป้องตลาด, กลยุทธ์การเติบโต"); ?><br/>
</p>
</card>
</wml>


<?php

/**
WapTools.class.php

Copyright (C) 2005, Author : Nattapol Chittrichat
Email & MSN : [email protected]

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

**/

class WapTools {

function ascii2unicode($strin) {
$strlen = strlen($strin);
$strout = "";
for ($i=0;$i<$strlen;$i++) {
$char2convert = substr($strin,$i,1);
$ordValue = ord($char2convert);
if ($ordValue <= 159) {
$converted = $char2convert;
} elseif (($ordValue >= 161)&&($ordValue <= 319)) {
$converted = "&#x0".strtoupper(dechex(($ordValue + 3584) - 160)).";";
} else {
$converted = "";
}
$strout = $strout.$converted;
}
return $strout;
}

function printthai($strin) {
echo $this->ascii2unicode($strin);
}

} // End Class WapTools
?>
4404

โพสต์ที่ยังไม่ได้อ่าน โดย 4404 »

ไปหาซื้อมาแล้ว ครับ หาไม่เจอ ครับ มันาน แล้ว ตอนนี้ ผม ศึกษา hawhaw tool ครับ เป็น class php ให้ เรียกใช้ สะดวก ดี เหมือนกัน ต้อง config ไฟล์ บางตัว ซึ่ง มันจะ ทำการ ตรวจสอบ terminal ที่เรียก มา ว่า เป้น เทคโนโลยี อะไร แล้ว ทำการ gen ภาษาที่เหมาะ สม กับ terminal นั้น
ซึ่ง ไม่ ต้อง เขียน ไฟล์ หลาย ๆๆ ภาษา และ ยัง สามารถ เรียก ผ่านได้ หลากหลาย browser ทั้งจาก Pc และ Pocket และ มือถือ ทำงานได้ดี ครับ กับ emulator มือ ถือ โนเกีย รุ่น ต่าง ๆๆ ตั้ง แต่รุ่น 3315 จนถึงที่เป็น xhtml แต่ ตอนนี้ จะ ทำให้ มันเรียก ผ่านมือ ถือ ได้ จริง ๆๆ ไม่ เข้าใจเรื่อง การทำ server ว่า ต้อง ทำไร กะมันมั่ง ทำเป้นแต่ ที่ ต้อง ไป config ไฟล์ httpd ของ apxche ที่ให้รับ wml ได้ อ่ะ ครับ แล้วตัวwap gateway นี่ มันทำยัง ไง อ่ะครับ รบกวนขอคำแนะนำ จากพี่ ๆๆ ที่เคยศึกษา ช่วย แนะ นำ คือ ผม จะ เอามา ประขุคย์ ใช้ กับ งานโปรเจค อ่ะครับ
นี่ ลิ้ง tool ที่ผม ใช้ ครับ www.hawhaw.de
ตอบกลับโพส

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: Google Adsense [Bot] และบุคลทั่วไป 116