อยากรู้เรื่อง URL แบบนี้ครับ

เริ่มโดย dekmv, 23 กันยายน 2012, 18:27:37

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

dekmv

url เดิม : http://peopleawesome.com/play.php?i=1374#player

แล้วทำไมมาเป็นแบบนี้ได้ครับ
http%3A%2F%2Fpeopleawesome.com%2Fplay.php%3Fi%3D1374

ต้องทำยังไง ใช้ Function อะไรหรอครับ ?

PHP ครับ

ttong

ลอง Function rawurlencode() หรือ urlencode() ดูครับ

http://php.net/manual/en/function.rawurlencode.php
http://php.net/manual/ru/function.urlencode.php

dekmv

อ้างถึงจาก: ttong ใน 23 กันยายน 2012, 18:58:56
ลอง Function rawurlencode() หรือ urlencode() ดูครับ

http://php.net/manual/en/function.rawurlencode.php
http://php.net/manual/ru/function.urlencode.php


ขอบคุณครับ ... ขอลองแปปครับ