PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

~ People Online:
~ Visitors: 9
~ Members: 0
~ Total: 9
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 17 May


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


This topic is locked: you cannot edit posts or make replies. Page 1 of 2
Goto page 1, 2  Next
file_get_contents to be replaced with cURL
Message Author
Reply with quote
Post Posted: Thursday 06 July, 2006 03:12

CMS Nuke Evo 2.0
PHP Version 4.4.2
allow_url_fopen off

Well what can I say Ive been trying to get this wonderful mod to work for a month now. My host has php a partial safe mode but they made cURL availible as a work around and they give many examples of this http://wiki.dreamhost.com/index.php/CURL ... But you know what, im not a programmer! lol I really really new some help before you see "crazy american goes postal at his host" across a news feed near you ^^... Its the file_get_content lines if they utilized cURL it would work good for me. I really love all the little details in this MOD that you have added and I hope I can get some help here, this is my last hope. If I can get your mod to work it would really tie my site together very nicely. If you need more info just ask

Thx

View user's profile Send private message
Reply with quote
Post Posted: Thursday 06 July, 2006 09:00

Open modules/Multiheadlines/functions.php file.
Search for this line:
Code:
if (($contents=file_get_contents($rss)) <> false) {

and replace with
Code:
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $rss);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 25);
$file_contents = curl_exec($ch);
curl_close($ch);
if (($file_contents=='') <> false) {


View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 25 September, 2006 14:37

I am using dreamhost as well, and it seems like when you add those lines in, it will not error out with a security error, but it will still not pull feeds.

I am pulling a feed manually, and it will give NO feeds when i try to pull, only a blank web page.

I am running php4, 2.05,

\\\\Thanks\\\

View user's profile Send private message
Reply with quote
Post Posted: Monday 25 September, 2006 17:12

What is the feed url?

Did you tried with many feed urls?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Tuesday 26 September, 2006 02:49

Its for all feeds..



is there a valid feed that you know of that i can test?

View user's profile Send private message
Reply with quote
Post Posted: Tuesday 26 September, 2006 10:01

yes, at least all from here

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Wednesday 27 September, 2006 07:30

nope.. none of the feeds come out Sad

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 27 September, 2006 11:29

The regular feed blocks from your php-nuke works?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Tuesday 14 November, 2006 02:20

I had the same "get_contents" issue and when I did the above mod, I did not get any more failures. The problem now is that isn't any news coming at all.

View user's profile Send private message
Reply with quote
Post Posted: Tuesday 14 November, 2006 13:45

The preview thing from admin panel shows some feeds?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Tuesday 14 November, 2006 19:06

Aikon wrote:
The preview thing from admin panel shows some feeds?


No, I'm afraid not. Shows nothing.

Sorry if this is confusing, I have two websites. The other one which runs 7.3 you have solved for me so thanks again.

This one with this problem is running Raven's Nuke 7.6 on a different server.

View user's profile Send private message
Reply with quote
Post Posted: Tuesday 14 November, 2006 23:43

Is allow_url_fopen directive set to ON into your php.ini.[If you don't know just ask your webhost].

This option must be ON if you want MH to work!

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Wednesday 15 November, 2006 02:39

Aikon wrote:
Is allow_url_fopen directive set to ON into your php.ini.[If you don't know just ask your webhost].

This option must be ON if you want MH to work!


Oh right. I'll email my host.

Thanks very much.

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 15 November, 2006 09:46

My hosting company says they won't do it because its a huge security risk.

They sent me this link :- http://bugs.php.net/bug.php?id=37874

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 15 November, 2006 13:33

Regular RSS Nuke blocks are working on your site?

View user's profile Send private message Visit poster's website
Display posts from previous:
This topic is locked: you cannot edit posts or make replies. Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.55 Seconds