作者lovyu (BigBig)
站内PHP
标题[请益] URL
时间Mon Oct 31 20:58:20 2005
请问一下板上各位大大
我想要设计一个URL 可以让使用者在打入 url 并且可以输入参数
并且server 回传一个值给使用者
首先
我有在 tw.php.net 有查询到 http_build_query 这样的一个函数
http://tw2.php.net/manual/en/function.http-build-query.php
而且在 data handing 里有查到 arg_separator.output
http://tw2.php.net/manual/en/ini.core.php#ini.arg-separator.output
而我有查了一下 我的 php.ini里头
有将 arg_separator.input = ";&"
我用了一下网站的范例 档名为test.php
<?php
$data = array('foo'=>'bar',
'baz'=>'boom',
'cow'=>'milk',
'php'=>'hypertext processor');
http_build_query($data);
?>
而我输入
http://localhost/test.php;&foo 是显示 Not Found
是否是我要设计 回传值就行了呢 ??
这样的设计 url 参数 是否对呢 ??
很抱歉 初学php 什麽都不懂
麻烦解答一下搂..~thx.
--
╔═╗ ○ ╦╩╦ ╬═╬
╦║╬║ ╬═╦ ═ ╩═╩ ╔╦╦╗
╔══╯ ╯║□║ ╯ ○ ╬═╦ ╔═╗ ╠╩╩╣
╚═╝ ╯ ○ ∕ ║╬║ ╔╣
║□╝ ╯╣
╰╯
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.118.155.116