Results 1 to 10 of 10

Thread: RSS to PHP - error codes - experts required
      
   

  1. #1
    dons1 is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    Montroy, Valencia, Spain
    Posts
    48

    Question RSS to PHP - error codes - experts required

    Hi all!

    I want to add RSS updating news feeds but which are converted to php so that the SEs can read them.

    After following the RSSFeedReeder instruction exactly, I ran the test and the following error messages appeared on my trial page.

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/gqmphrw/public_html/rsssoccergossip.php on line 2

    Parse error: syntax error, unexpected T_STRING in /home/gqmphrw/public_html/rsssoccergossip.php on line 2

    This is the php code I uploaded to the above address:

    <?php
    $olderror_reporting =error_reporting(0);
    include ("http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnews%3F hl%3Den%26ned%3Dus%26ie%3DUTF-%26output%3Drss%26q%3Dsoccer&newpage=1&chead=&atl= &desc=1&owncss=&eleminate=&auth=1&dts=1&width=400& max=10&tlen=0&rnd=1&bt=1&bs=None&nmb=&ntb=&naf=&ns t=&nwd=600&nht=550&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=%23FFFFFF&spc=&ims=1&tc=0000 5E&ts=9&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>

    This is the code I copied into the trial page to bring up the news feed:

    <!--#include virtual="/rsssoccergossip.php" -->

    Now, I'm presuming that I followed the instructions correctly since the error message is about syntax and characters, rather than "could not find" or "could not process" etc.

    I also followed the instructions re. Apache handler. and .htm and .html parsing.

    Anybody any ideas?

    Many thanks

    John
    www.clanfootball.com "connecting fans around the world"

  2. #2
    dons1 is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    Montroy, Valencia, Spain
    Posts
    48

    Default Re: RSS to PHP - error codes - experts required

    I'll try again -- Can anybody help me?

    Thanks in anticipation

    John
    www.clanfootball.com "connecting fans around the world"

  3. #3
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: RSS to PHP - error codes - experts required

    I don't see anything in line 2 to cause the error or warning. Is that the exact script you have on the page you uploaded to your site?

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  4. #4
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: RSS to PHP - error codes - experts required

    Im wondering if all those % signs are supposed to be in there. Copy your code from whatever page source, then to notepad, the select and copy to your page. The web creates % to fill spaces when u copy from webpages, and that may be the issue.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  5. #5
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: RSS to PHP - error codes - experts required

    The &#37; are just encoded characters. It makes it safer to transmit information in a url, if the actual characters were used it would leave open vulnerabilities.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  6. #6
    dons1 is offline Staff Sergeant
    Join Date
    Aug 2007
    Location
    Montroy, Valencia, Spain
    Posts
    48

    Default Re: RSS to PHP - error codes - experts required

    Thanks Karen and Watdaflip,

    I'm really grateful for your replies.

    What I have up there is what I copied from the feed reader and pasted into Wordpad, where I saved as a .php file and uploaded.

    I've just noticed that there are some "spaces" in the code, e.g. .....reporting =error..... and .......include ("http://....., and also in the "string" itself.

    Could this be it?

    Again, many thanks

    John
    www.clanfootball.com "connecting fans around the world"

  7. #7
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: RSS to PHP - error codes - experts required

    The space in " $olderror_reporting =error_reporting(0);" doesn't make any different, and the space in the string won't cause an error, it might matter with how rssfeadreader.com handles how your feed is displayed, but even then I would hope they thought ahead enough to trim white spaces if they matter

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  8. #8
    fadikaouk is offline First Sergeant
    Join Date
    Sep 2007
    Location
    Montreal, Quebec
    Posts
    70

    Default Re: RSS to PHP - error codes - experts required

    I am having the same problem... in my case, I have NOTHING, not even an error :)

    I am using the codes from http://rssfeedreader.com

    The code that was provided is:
    <?php
    $olderror_reporting =error_reporting(0);
    includeed ("http://rssfeedreader.com/rss3/rss.php?url=&newpage=1&chead=1&atl=1&desc=1&owncss =&eleminate=&auth=1&dts=1&width=300&max=5&tlen=0 &r nd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=300&nh t=250&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=%23FF6600&spc=&ims=&tc=&ts =1 1&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
    error_reporting($olderror_reporting);
    ?>


    1. I have Defined the Apache Handlers to:
    .htm server-parsed
    .html server-parsed

    2. I saved this as rssfeed.php
    3. I have published it to: public_html/
    4. I have created a test page: www.kgcinternational.com/test.html
    5. I have included the following html code in that page: <!--#include virtual="/rssfeed.php" -->
    6. I saved and published this page online

    No FEEDS?

    Any expert on this matter?
    Fadi Kaouk

    http://www.kgcinternational.com - Recruitment Firm
    http://www.moneymachineguide.com - Make Money Online
    http://fadikaouk.blogspot.com - Make Money Blog
    http://www.pokerguideservice.com - Learn the game of Poker
    [B][COLOR=Lime][COLOR=Black]

  9. #9
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: RSS to PHP - error codes - experts required

    When you just visit the page in your browser does it show the feed (I don't mean on the page you are trying to use SSI with, but when you visit rssfeed.php itself)

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  10. #10
    fadikaouk is offline First Sergeant
    Join Date
    Sep 2007
    Location
    Montreal, Quebec
    Posts
    70

    Default Re: RSS to PHP - error codes - experts required

    No it does not. The file is simply a code provided by rssfeedreader.com

    When you go to kgcinternationa.com/reefeed.php nothing happens... is there anything that should happen?
    Fadi Kaouk

    http://www.kgcinternational.com - Recruitment Firm
    http://www.moneymachineguide.com - Make Money Online
    http://fadikaouk.blogspot.com - Make Money Blog
    http://www.pokerguideservice.com - Learn the game of Poker
    [B][COLOR=Lime][COLOR=Black]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49