Php internet explorer中rss源的问题

Php internet explorer中rss源的问题,php,laravel,internet-explorer,rss,Php,Laravel,Internet Explorer,Rss,宠儿 使用laravel框架和EclipseMars编写代码。我的rss提要有问题。它以前可以工作,但现在每当我尝试运行它时,我都会收到一个提要代码错误-Internet Explorer无法显示此提要-此提要包含代码错误。我做错了什么 app\Http\routes.php <?php |-------------------------------------------------------------------------- | Application Routes

宠儿

使用laravel框架和EclipseMars编写代码。我的rss提要有问题。它以前可以工作,但现在每当我尝试运行它时,我都会收到一个提要代码错误-Internet Explorer无法显示此提要-此提要包含代码错误。我做错了什么

app\Http\routes.php

<?php
|--------------------------------------------------------------------------
| Application Routes       
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

/*Route::get('/', function () {
    return view('welcome');
});*/
Route::get('/', 'WelcomeController@index');

Route::get('product', 'WelcomeController@product');
//Route::controller('WelcomeController');

Route::get("home", function(){return view('welcome');});
Route::get("products", 'ProductController@products');
Route::get("product/{id}", 'ProductController@product');
//Route::get('product/{id}', function ($id) {
//  return $id;
//});
Route::get("orders", 'OrderController@orders');
Route::get("order/{id}", 'OrderController@order');
Route::get("rssfeed", 'RssFeedController@rssfeed');

// Authentication routes...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');

// Registration routes...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');
”;
$rssfeed.='';
$rssfeed.='';
$rssfeed.=“我的RSS提要”;
$rssfeed.='http://localhost:8080/rsst/CloudRobotics/rsst/public/index';
$rssfeed.='这是CloudRobotics的RSS提要';
$rssfeed.='en us';
$rssfeed.='版权所有(C)2016http://localhost:8080/rsst/CloudRobotics/rsst/public/index';
$conn=sqlsrv_connect($serverName,$connectionInfo);
如果($conn){
回显“已建立连接。
”; }否则{ echo“无法建立连接。
”; 模具(打印错误(sqlsrv_errors(),true)); } $query=“按pID从产品订单中选择*”; $result=sqlsrv_query($conn,$query)或die(“无法执行查询”); while($row=sqlsrv\u fetch\u数组($result)){ 摘录(行); $rssfeed.=''; $rssfeed.=''.$pID'; $rssfeed.=''.$pName'; $rssfeed.=''; } $rssfeed.=''; $rssfeed.=''; echo$rssfeed; ?>

请提供您收到的错误我收到的错误是源代码错误-Internet Explorer无法显示此源。我甚至会发布一个屏幕截图请提供您得到的错误我得到的错误是一个源代码错误-Internet Explorer无法显示此源。我甚至会发布一个截图
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;

class RssFeedController extends Controller{

    public function __construct(){
        $this->middleware('guest');
    }

    public function rssfeed(){
        return view('rssfeed');
    }
}
?>
<?php 
    header("Content-Type: application/rss+xml; charset=ISO-8859-1");
    $serverName = "CMSCRSST.db.11959136.hostedresource.com";
    $connectionInfo = array( "Database"=>"CMSCRSST", "UID"=>"cmscrsst", "PWD"=>"RS#889st3");
    $rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>';
    $rssfeed .= '<rss version="2.0">';
    $rssfeed .= '<channel>';
    $rssfeed .= '<title>My RSS feed</title>';
    $rssfeed .= '<link>http://localhost:8080/rsst/CloudRobotics/rsst/public/index</link>';
    $rssfeed .= '<description>This is the RSS feed for CloudRobotics</description>';
    $rssfeed .= '<language>en-us</language>';
    $rssfeed .= '<copyright>Copyright (C) 2016 http://localhost:8080/rsst/CloudRobotics/rsst/public/index</copyright>';

    $conn = sqlsrv_connect( $serverName, $connectionInfo);

    if( $conn ) {
        echo "Connection established.<br />";
    }else{
        echo "Connection could not be established.<br />";
        die( print_r( sqlsrv_errors(), true));
    }

    $query = "SELECT * FROM Product ORDER BY pID";
    $result = sqlsrv_query($conn, $query) or die ("Could not execute query");

    while($row = sqlsrv_fetch_array($result)) {
        extract($row);

        $rssfeed .= '<item>';
        $rssfeed .= '<title>' . $pID . '</title>';
        $rssfeed .= '<description>' . $pName . '</description>';
        $rssfeed .= '</item>';
    }

    $rssfeed .= '</channel>';
    $rssfeed .= '</rss>';

    echo $rssfeed;
?>