warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
ใส่ “r” เข้าไปจะปลอดภัยกว่าสำหรับ “\”
แหะ ๆ พอดีไม่ค่อยได้ใช้ Windows อะครับ
ขอสอบถามหน่อยครับ ไอ้ตัว r เนี้ยะมันคือตัวบอกประเภทของการ encode ของภาษาเหมือนกับ ตัว u ไหมครับ แล้วมันจะปลอดภัยยังงัยครับ
r เราจะใช้กับการเขียน regular expression ครับ เพราะ regex ต้องใช้ “\” บ่อย ดังนั้นแทนที่เราจะต้อง escape “\” ด้วยการเขียน “\\” ใน string ปกติ ก็ใส่แค่ r”\” เท่านั้นก็พอ
ถ้าไม่ escape หรือใช้ r “\t” จะแปลว่า TAB “\n” จะแปลว่า New Line เ็ป็นต้น
ขอบคุณครับ
ขอบคุณครับ ทำได้ผลแล้ว