You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 55 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - News module to grab content from other site, based on permis [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
rasputin
Sergeant
Sergeant


Joined: May 30, 2003
Posts: 88


PostPosted: Sun Jun 15, 2003 11:22 am Reply with quoteBack to top

Hi everyone,
I need assistance from somebody who understands PHP. I waisted all day trying to make it work but I don't know PHP and all my attempts failed. I need to pull a full webpage from a site ( they allow such a thing and even provide specific links to pages available for posting on your site, based on your needs). I'm trying to create simple index.php file that I could put in new module folder. Main function of this is to go to specific page, grab it and display in main frame. If anyone willing to help I would greatly appreciate it. Here is link to site I'm trying to grab: http://lenta.ru/r/illustrated.html. If someone whants to check my claim for it to begal here is link where site expalin their policy and provides choices: http://www.lenta.ru/info/export.htm_Printed.htm. If someone decides to help me either post code here or e-mail me : alex@russianeast.com

They do have *.rss and *.rdf files but they are unusable for me due to different formating.

Thanks.
Find all posts by rasputinView user's profileSend private messageVisit poster's website
rasputin
Sergeant
Sergeant


Joined: May 30, 2003
Posts: 88


PostPosted: Sun Jun 15, 2003 11:38 am Reply with quoteBack to top

Sorry for replying to myself but here is what I was trying to use and it failed:
Code:
*/



 if (!eregi("modules.php", $PHP_SELF)) {

   die ("You can't access this file directly...");

    }

   

/////////////////////////////////////////////////////////////////////////

//$index = 0; // right side off

$index = 1;

include("header.php");

/////////////////////////////////////////////////////////////////////////

$open = fopen("http://lenta.ru/r/illustrated.html", "r");
$read = fread($open, 45000);
fclose($open);
$content = $read;
$content = explode("·", $content);
echo "$content";

////////////////////////////////// 

 

    include("footer.php");

And my second attempt based on already working module but with link to different site:
Code:
if (!eregi("modules.php", $PHP_SELF)) {

   die ("You can't access this file directly...");

    }

   

/////////////////////////////////////////////////////////////////////////

//$index = 0; // right side off

$index = 1;

include("header.php");

/////////////////////////////////////////////////////////////////////////

$article_block = "

<!-- To be placed in HEAD -->

<script language=\"JavaScript\" src=\"http://lenta.ru/r/illustrated.html\" type=\"text/javascript\"></script>



<!-- To be placed in BODY -->

<script language=\"JavaScript\">

<!--

print_KRNews (10,'','','','','','_top','FFFFFF',1,1,'100%');

//-->

</script>



";

if ($opi != "ds") {



   echo "$article_block";

}

////////////////////////////////// 

 

    include("footer.php");
Find all posts by rasputinView user's profileSend private messageVisit poster's website
rasputin
Sergeant
Sergeant


Joined: May 30, 2003
Posts: 88


PostPosted: Mon Jun 16, 2003 12:46 pm Reply with quoteBack to top

Answer to my question: http://nukecops.com/article-228--0-0.html . If only I would read through all the pages on site Smile
Find all posts by rasputinView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.302 Seconds - 273 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::