PHP = Nightmare

by 7 replies
8
Why won't it work? I use Successfulhosting.com - in my settings it says PHP is turned ON.

I'm trying to add newsfeeds to thedailyfib.com

Successfulhosting says PHP is up and working fine, and going to thedailyfib.com/info.php shows that it is.

Here is the code:

<?php
$olderror_reporting =error_reporting(0);
include ("http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnwshp%3 Fhl%3Den%26tab%3Dwn%26q%3D%26output%3Drss&newpage= 1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=&dt s=1&width=300&max=10&tlen=0&rnd=1&bt=3&bs=Solid&nm b=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=250&lstyle=1&lc =Blue&bg=White&bc=%23FF0000&spc=1&ims=&tc=&ts=11&t font=Arial,+Helvetica,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
error_reporting($olderror_reporting);
?>
#programming #nightmare #php
  • My psychic powers tell me that allow_url_fopen is FALSE in your PHP configuration. You may be able to turn it on with a local php.ini; ask your hosting provider.
    • [2] replies
    • Thanks, I looked at thedailyfib.com/info.php and you are correct.

      The problem is, my hosting company won't help at all, they just tell me to hire somebody to fix it. I found some instructions on their site about creating 3 different files and uploading them and blah blah blah - it doesn't work, either.
      • [1] reply
    • Those "psycic powers" of yours seem to be batting 1000 these days!



      Bill
  • It may have nothing to do with your server at all. Did you copy and paste your url into a browser? After I replaced the HTTP_SERVER_VARS with appropriate variables, it shows this message:
    The URL you supplied is either not RSS or the site is down at this time. Please check the feed URL or refresh the page."); ?>

    It looks like it may be a problem with their system.

    Usually valid URL's, even dynamic ones will show an rss feed in your browser.

    Maybe it is their system. Just a thought. Sorry I couldn't be more of a help.
  • It is not recommended to include a remote page. You have no control over it and the remote host can display whatever or execute any code using that.

Next Topics on Trending Feed

  • 8

    Why won't it work? I use Successfulhosting.com - in my settings it says PHP is turned ON. I'm trying to add newsfeeds to thedailyfib.com