我有一个php文件,要循环一个数组构造一个url数组。$keywords = keyword_split($res['keywords']);
$path='../ajax/search.php?key=';
foreach($keywords as $k){
$filename = $path.$k;
$content = 这里怎么调用这个php文件并返回内容???;
var_dump($content);
}
分享到:
------解决方案--------------------
引用:quote: 引用:
$content = file_get_contents($filename);试试这个不行。file_get_content不支持带参url
我想了下 带参数的话得带上http协议 http://.................
直接用本地的php文件并且带参数 我还没想到办法.
