1

リンクから情報を取得できるようにするこのコードがあります...今、ストリームを開くことができませんでした...コードは次のとおりです。

ありがとう!

$b = time ();
$date1 =date( "Y-m-d;h:i:s" , mktime(date("h")+6, date("i"), date("s"), date("m") , date("d"), date("Y")));
$str_time = "";
$str_msg = "";
$str_from = "";
$str_zip = "";

echo file_get_contents('href="http://testext.i-movo.com/api/receivesms.aspx?".$str_from."".$str_zip."".$phone."".$str_time."".$date1."".$str_msg.""');
}
4

2 に答える 2

2

これ:

echo file_get_contents('href="http://testext.i-movo.com/api/receivesms.aspx?".$str_from."".$str_zip."".$phone."".$str_time."".$date1."".$str_msg.""');

これでなければなりません:

echo file_get_contents("http://testext.i-movo.com/api/receivesms.aspx?".$str_from.$str_zip.$phone.$str_time.$date1.$str_msg);
于 2012-09-11T22:45:11.363 に答える
0

file_get_contentsのドキュメントをお読みください

例は言う

$homepage = file_get_contents('http://www.example.com/');
echo $homepage;

あなたが使用している

$homepage = file_get_contents('href="http://www.example.com/');

今何が悪い..

于 2012-09-11T22:44:23.220 に答える