Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 15th, 2005, 1:24 AM   #1
scorpiosage
Programmer
 
scorpiosage's Avatar
 
Join Date: Aug 2004
Location: Austin, Tx
Posts: 55
Rep Power: 5 scorpiosage is on a distinguished road
Send a message via AIM to scorpiosage Send a message via Yahoo to scorpiosage
extracting info from a remote site.

I haven't been on in a while, mostly due to some projects that have been way too time consuming, but, I am running across a problem.

I have 2 websites. One is a real estate site.
I have my listings on the RE site, in such a way that it's one page that just loads depending on the MLS number. so it would be details.php?mls=12345

Now, on my other website, I want to be able to extract information from the RE details page.

I can not connect to the database, from the remote site.

and I don't want to use frames.

I do not want to use a database to store the information on the second site from the RE site, I just would like to show the information that is available on the mls pages.

There is a page on the RE site that lists the ml numbers, so I may have to extract the ml numbers from the first page and then loop them through?

Not sure, does anyone know how to do this?
Thanks
Mike
__________________
Here's my latest project still in the works, and I need to get rid of this "frame" situation for real. www.prideofaustin.com
scorpiosage is offline   Reply With Quote
Old Jul 8th, 2005, 4:41 AM   #2
M.Hirsch
Newbie
 
Join Date: Jun 2005
Posts: 26
Rep Power: 0 M.Hirsch is on a distinguished road
PHP supports transparent remote files access via http.

i.e. you can fopen("http://your-domain/file", "r") and read from it.

The most simple way is:
$lines=file("http://your-domain/file");
which returns an array of the lines of the html code.

But file() can waste a lot of memory so use with care...

M.
__________________
Multilingual Content Management
M.Hirsch is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:25 PM.

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