/    Sign up×
Community /Pin to ProfileBookmark

cant get rss working and getting really vexed!

HI.

Bascially i signed up with [url]http://rssfeedreader.com[/url]

I copied the generated php code into a php file and upoaded it to my server.
devonwebsitedesign.com/rss.php

Nothing happens. I have tested php on my server using the hello world script. and all works ok.

Now, i have contacted both my hosting provider and the rsssfeedreader support staff but neither can come up with a solution even after accessing my ftp account.

The first sugguestion was that the “%” signs in the feed url were triggering mod security. My hosting provider provided me with an alternative script, replacing the “%” signs and still no luck.

I have checked that the allow_call_time_pass_reference, allow_url_fopen, allow_url_include are turned on.

I really dont know much about php but im sure this cant be that complecated to figure out.

The code for the rss.php file is…

[CODE]
<?php
$olderror_reporting =error_reporting(0);
include

(‘http://rssfeedreader.com/rss3/rss.php?url=http://rss.news.yahoo.com/rss/internet&newpage=1&chead=1&atl=1&desc=1&owncss=1&eleminate=
auth=&dts=&width=300&max=1&tlen=0&rnd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=200&lstyle=-1&lc=Blue&bg=White&bc=none&spc=&ims=&tc=&ts=11&tfont=Verdana,+Arial,+Sans-serif
rf=devonwebsitedesign/rss.php&phpout=1’);
error_reporting($olderror_reporting);
?>
[/CODE]

So im assuming it has to be something in the url which is causing issues. If anyone has any sugguestions i would greatly appreciated it.

Thanks.

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 10.2008 — Try changing the first line to:
[code=php]
<?php
ini_set('display_errors', 1); // add this to make sure errors are displayed
$olderror_reporting =error_reporting(E_ALL); // note change to E_ALL

// rest of code...
?>
[/code]

This way you can find out if PHP is trying to tell you anything interesting, such as if allow_url_fopen or allow_url_include option is turned off.

Not knowing what the URL does, note that including from a remote host can be very dangerous, as any PHP code it returns will be executed by your script. Depending on what it does, you may just be able to use readfile() instead if allow_url_include has been turned off.
Copy linkTweet thisAlerts:
@ssbeatsauthorNov 10.2008 — hi.

i altered the code as you sugguested. yet still nothing.

Im suprised how complecated this real SIMPLE syndicate is turning out to be.

Is there any other way of getting hold of a php rss feed?

My hosting provider is blaming the rssfeedreader code and rssfeedreader support staff are sugguesting it is a security issue with the hosting provider.

All i want is an rss feed on my site in order to display dynamic content to the search engines!

Thanks again.
Copy linkTweet thisAlerts:
@chazzyNov 10.2008 — hi.

i altered the code as you sugguested. yet still nothing.

Im suprised how complecated this real SIMPLE syndicate is turning out to be.

Is there any other way of getting hold of a php rss feed?

My hosting provider is blaming the rssfeedreader code and rssfeedreader support staff are sugguesting it is a security issue with the hosting provider.

All i want is an rss feed on my site in order to display dynamic content to the search engines!

Thanks again.[/QUOTE]


this is what i was thinking just by looking at the title and first line of your post. its very likely that your host doesnt allow remote connections. you can try to do a a file_get_contents on a popular url like webdeveloper.com and if it fails this would be the answer as to why.
Copy linkTweet thisAlerts:
@bokehNov 10.2008 — What does "nothing happens" mean? What response is the server giving? Try to be more descriptive.
Copy linkTweet thisAlerts:
@NogDogNov 10.2008 — I'd guess that your host is not allowing URL wrappers for file functions (or at least not for includes) for the above-mentioned security reasons. You may need to use the [url=http://www.php.net/curl]cURL functions[/url] to retrieve the desired RSS feed directly, then use any of the plethora of RSS parser functions/classes out there to read it and display the result as desired. (Or for that matter, I'm sure there's some all-in-one PHP class/script out there that includes using cURL to retrieve the feed's XML.)

Or, if you don't mind the security risk of executing PHP code from the site you are trying to use, you could retrieve the output from it via cURL and then [url=http://php.net/eval]eval[/url]() it in your script.
Copy linkTweet thisAlerts:
@bokehNov 10.2008 — I'd guess that your host is not allowing URL wrappers for file functions (or at least not for includes) for the above-mentioned security reasons.[/QUOTE]If that were the case E_ALL should raise an error.
Copy linkTweet thisAlerts:
@NogDogNov 10.2008 — If that were the case E_ALL should raise an error.[/QUOTE]

I agree, assuming the error settings were implemented correctly and there is not some parse error killing the script before those settings ever get invoked in the first place.
Copy linkTweet thisAlerts:
@ssbeatsauthorNov 10.2008 — Ok thanks for your help guys.

im a bit lost in all of this so i think ill start looking for an alternative method.

The last email from my hosting provider bascially confirmed this as well.

So does anyone know of any alternative non-javascript methods for adding rss?

p.s when i said nothing happens i meant there were no results. simply a blank page.

Thanks again.
×

Success!

Help @ssbeats spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...