PHP脚本在本地MAMP服务器上工作,但不是IIS 8服务器
我有一个PHP脚本,显示在我build立在本地机器上的网站中embedded的Tweets。 当我将该网站上传到IIS 8.0服务器时,PHP脚本不再起作用,并且收到此错误消息: 警告:为第76行的C:\ inetpub \ wwwroot \ i360_new \ footer.php中的foreach()提供的无效参数 脚本是: <?php ini_set('display_errors', 1); require_once('TwitterAPIExchange.php'); /** Set access tokens here – see: https://dev.twitter.com/apps/ **/ $settings = array( 'oauth_access_token' => "xxxxx", 'oauth_access_token_secret' => "xxxxx", 'consumer_key' => "xxxxx", 'consumer_secret' => "xxxxx" ); /** Perform a GET request and echo the response **/ /** Note: Set the […]