Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-30-2009, 03:39 PM   #1
HyperActive Warrior
War Room Member
 
Join Date: Oct 2005
Location: , , .
Posts: 199
Thanks: 9
Thanked 3 Times in 3 Posts
Default PHP = Nightmare

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);
?>

cotum is offline   Reply With Quote
Old 06-30-2009, 04:04 PM   #2
AT gmail DOT com
War Room Member
 
CDarklock's Avatar
 
Join Date: May 2009
Location: Kent, WA
Posts: 6,947
Blog Entries: 4
Thanks: 1,740
Thanked 5,486 Times in 2,510 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via ICQ to CDarklock Send a message via MSN to CDarklock Send a message via Skype™ to CDarklock
Default Re: PHP = Nightmare

Quote:
Originally Posted by cotum View Post
include ("http://rssfeedreader.com...
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.

Talk Marketing Now
Donate to the Darklock Liquor Fund
Hey; I got nothin' to do today but smile,
'n-da, 'n-da, doo-da, and here I am.
CDarklock is offline   Reply With Quote
Old 06-30-2009, 04:36 PM   #3
HyperActive Warrior
War Room Member
 
Join Date: Oct 2005
Location: , , .
Posts: 199
Thanks: 9
Thanked 3 Times in 3 Posts
Default Re: PHP = Nightmare

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.

cotum is offline   Reply With Quote
Old 06-30-2009, 05:02 PM   #4
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: PHP = Nightmare

Quote:
Originally Posted by CDarklock View Post
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.
Those "psycic powers" of yours seem to be batting 1000 these days!



Bill
mywebwork is offline   Reply With Quote
Old 06-30-2009, 10:53 PM   #5
AT gmail DOT com
War Room Member
 
CDarklock's Avatar
 
Join Date: May 2009
Location: Kent, WA
Posts: 6,947
Blog Entries: 4
Thanks: 1,740
Thanked 5,486 Times in 2,510 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via ICQ to CDarklock Send a message via MSN to CDarklock Send a message via Skype™ to CDarklock
Default Re: PHP = Nightmare

Quote:
Originally Posted by cotum View Post
they just tell me to hire somebody to fix it.
In the main web directory of your site, place a file named php.ini with these two lines:

Code:
allow_url_fopen = 1;
allow_url_include = 1;
You don't need the second line unless you're running PHP 5.2 or later.

Talk Marketing Now
Donate to the Darklock Liquor Fund
Hey; I got nothin' to do today but smile,
'n-da, 'n-da, doo-da, and here I am.
CDarklock is offline   Reply With Quote
Old 07-01-2009, 05:40 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: Oct 2005
Location: , , .
Posts: 199
Thanks: 9
Thanked 3 Times in 3 Posts
Default Re: PHP = Nightmare

The company fixed it for me, still doesn't work.

Created the PHP.INI file - still doesn't work.

Why me?

cotum is offline   Reply With Quote
Old 07-01-2009, 06:25 PM   #7
CoolRyan.com is Now Live!
War Room Member
 
ryanstreet's Avatar
 
Join Date: Nov 2007
Location: Dayton, OH, USA
Posts: 308
Thanks: 35
Thanked 191 Times in 22 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to ryanstreet Send a message via MSN to ryanstreet Send a message via Yahoo to ryanstreet Send a message via Skype™ to ryanstreet
Default Re: PHP = Nightmare

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.

ryanstreet is offline   Reply With Quote
Old 07-02-2009, 08:36 AM   #8
Active Warrior
 
Join Date: Jun 2009
Location: India
Posts: 61
Thanks: 3
Thanked 8 Times in 8 Posts
Contact Info
Send a message via AIM to CoderPundit Send a message via MSN to CoderPundit
Default Re: PHP = Nightmare

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.
CoderPundit is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
nightmare, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 05:11 PM.