Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Management > Scripts and Software
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 09:56 PM
Member
 
Join Date: Jun 2008
Posts: 96
Default Hello friends

I have an issue regarding one of the concepts of web design.

Issue :
Let’s say you have a website where you have your database of mp3 songs. I have a similar site that doesn’t have a database but I want my site to have the same songs.
What I need are a few lines of PHP or Java script code which will allow me to link this site with the one that has database. In other words: I have a song called ABC.mp3, when the user clicks on that link, the song starts downloading into my webpage but the source will come from another site. That means I want to use another site’s resources. Is it called diverting or mirroring?
I need the script for it.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-05-2008, 12:27 AM
Junior Member
 
Join Date: Sep 2008
Location: India
Posts: 21
Default Fetching data

Michelle you can do this very easily, but you have to do some background homework for this.

Say for example you had a site name "siteA" and other site with songs database as "siteB", what exactly you have to do is manually go to siteB click on the link which u want to download and see in the url-bar of the browser what goes in it, i.e look for something like this : http://www.siteB.com/selected=?abc.mp3&page=2.

Now carefully parse this query what we get from this? after the domain name the string : selected=?abc.mp is one parameter and page=2 is another parameter the siteB is passing to fetch results from its DB. So now no need of doing all, u know the syntax of Search Query, by using smart parsing you will sure be able to mirror the entire siteB in siteA, because u know that when the user clicks on SiteA for abc.mp3 you exactly know what Query string u have to passed to site B to fetch the result.

Hope the answer for ur post fullfill ur requirment.

wahed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-30-2008, 08:19 AM
Member
 
Join Date: Jun 2008
Posts: 96
Default

quite useful to me, thanks Syed, I'm very appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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

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

All times are GMT -5. The time now is 08:30 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.