Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   PHP Nuke Module-- (http://www.programmingforums.org/showthread.php?t=11566)

Jinx Oct 13th, 2006 4:03 AM

PHP Nuke Module--
 
I am trying to add something to my site www.umichclubsoccer.com that would automatically check the league standing for our team which are in an embarassing geocities website and download the text and display it nicely on my website...

the pages it needs to get are
http://www.geocities.com/mwalliance/...rtherndivision

and
http://www.geocities.com/mwalliance/2005standings

and
http://www.mwalliance.com/PR-web-10-3-06.htm


Any ideas on how I could do this???

or where I could get some code to... I have very little php background (virtually none)

stevengs Oct 13th, 2006 6:38 AM

Perhaps with wget.

Jinx Oct 13th, 2006 2:48 PM

Quote:

Originally Posted by stevengs (Post 116395)
Perhaps with wget.

How would I use wget and then how would I be able to clean up what it gets automatically?

DaWei Oct 13th, 2006 2:57 PM

http://www.daweidesigns.com/images/wget.jpg
Then ask specific questions relating to usage, problems, etc.

Pizentios Oct 13th, 2006 3:54 PM

wget grabs the files from the remote server. Then you can parse them however you want. there are many ways to do this. You could use regular expresions to grab only the data that you want, or you could just load the page that wget grabs into a iframe or something like that.

Jinx Oct 13th, 2006 7:57 PM

It sounds like it needs some sort of command line to run it from... is there a site that would have a very basic tutorial on how to use it in a website just to grab text from another page. All the stuff I read about it suggests running stuff from some sort of command window

Pizentios Oct 16th, 2006 10:46 AM

Quote:

Originally Posted by Jinx (Post 116457)
It sounds like it needs some sort of command line to run it from... is there a site that would have a very basic tutorial on how to use it in a website just to grab text from another page. All the stuff I read about it suggests running stuff from some sort of command window


you can use system commands from within PHP. You can do this by using the system command. See This Page for more information on how to use the system call under php.


Another thing i was thinking about for your problem, if you got them to make an RSS feed it would make your life much easier. Something to think about.

Jinx Oct 16th, 2006 2:12 PM

Quote:

Originally Posted by Pizentios (Post 116630)
you can use system commands from within PHP. You can do this by using the system command. See This Page for more information on how to use the system call under php.


Another thing i was thinking about for your problem, if you got them to make an RSS feed it would make your life much easier. Something to think about.


I am thinking that if a person is making their website with geocities, that they might not know how to set up an RSS feed, although I could be mistaken. thanks for the link though

Pizentios Oct 16th, 2006 3:16 PM

Quote:

Originally Posted by Jinx (Post 116652)
I am thinking that if a person is making their website with geocities, that they might not know how to set up an RSS feed, although I could be mistaken. thanks for the link though

Hey, don't knock places like geocities to hard, i started learning how to do web releated stuff by using a service like that.:cool: I am sure many people around the net also learned that way :)

Also, it never hurts to ask (in reguards to the RSS feed).


All times are GMT -5. The time now is 1:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC