我制作一个简单的博士方案
<?php
echo $_GET[ ID ];
?>
然后我打电话给
http://localhost/testGetID/?ID=%E6%AD%A4%E5%8E%9F%E7%90%86%E6%98%AF%E5%9C%A8
This is what I got: æ¤åŽŸç†æ˜¯åœ¨
我该怎么做呢?我展示的是中国人的实际人物?顺便说一句,中国人人物将是我的数据库的识别号。
我制作一个简单的博士方案
<?php
echo $_GET[ ID ];
?>
然后我打电话给
http://localhost/testGetID/?ID=%E6%AD%A4%E5%8E%9F%E7%90%86%E6%98%AF%E5%9C%A8
This is what I got: æ¤åŽŸç†æ˜¯åœ¨
我该怎么做呢?我展示的是中国人的实际人物?顺便说一句,中国人人物将是我的数据库的识别号。
将此行添加到您的
使用 urldecode ()
或 mb_convert_encoding ()
函数
将 ID 编码为 base64_encode ()
,然后将其解码为 base64_decode ()
你能试试这个吗?
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Test page</title>
</head>
Your php code/chinese characters go here.
<body>
</body>
</html>
I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...
<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...
I found this script online that creates a thumbnail out of a image but the thumbnail image is created with poor quality how can I improve the quality of the image. And is there a better way to create ...
如何确认来自正确来源的数字。
Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...
I wonder there is a way to post a message to a facebook business page with cURL? thanks
I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...
How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...