【发布时间】:2010-09-20 07:17:45
【问题描述】:
嘿,谁能帮帮我... 当我这样写时:
$file=file_get_contents('https://graph.facebook.com/me?access_token=1932993|twetrg|vsfgsewr');
代码也得到了很好的响应。
但是当我这样写时:
1. $tk='';
2. $tk='1932993|twetrg|vsfgsewr';//intialize the token value to variable
3. $file=file_get_contents('https://graph.facebook.com/me?access_token=$tk');
然后第 3 行显示警告为“未能打开流:HTTP 请求失败!”
请帮帮我
【问题讨论】:
标签: php variables string-substitution