zit1343 Posted April 2, 2010 Share Posted April 2, 2010 Hi I am fetching movie timings from yahoo showtimings. way yahoo has its code setup, I can fetch Movie name Movie Title Timings To fetch movie poster it is impossible I think to fetch from the same code from the same page, so I am using another site which allows me to fetch image result from their site, {google img ripper}, but thing is I must put image fetch code in same code as movie name, title, timings. output such as Movie name Movie Title Timings can only be printed on screen by echo command. so I was thinking of using like $image 'code to fetch image from tht site'; echo "$image"; Please help me, if you want I can explain you better if you didnt understood me Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/ Share on other sites More sharing options...
Or1g1naL Posted April 2, 2010 Share Posted April 2, 2010 Could you explain that a little better? I'm sure you know that $image 'code to fetch image from tht site'; should be... $image = 'code to fetch image from tht site'; right? Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1035744 Share on other sites More sharing options...
zit1343 Posted April 2, 2010 Author Share Posted April 2, 2010 sorry yes I did mean tht forgot =. I made this script which fetch movie shows times from yahoo showtimes, it fetches everything other than movie poster. so I decided to fetch poster from another site this is part of code http://dearcomputer.nl/gir/?q='.$number.'+poster&s=3&imgtype=any&nsfw=on $number = has code to fetch the movie name from yahoo showtimes, so I am using $number to search and fetch movie poster from tht site this is the test file for tht hxxp://xxx.amazingsanantonio[dot]com/extra/test.php currently this test file is searching for http://dearcomputer.nl/gir/?q='.$number.'+poster&s=3&imgtype=any&nsfw=on so thts why it is showing some random image. so I want to comeup with code like either include this test.php file into my movie fetch code and echo it. or write code to fetch within the file and echo tht. hope this make more sense. Thank you again Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1035755 Share on other sites More sharing options...
oni-kun Posted April 2, 2010 Share Posted April 2, 2010 What exactly is your problem? We're not going to write the solution for you, We can only help you on what you're having trouble coding. Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1035757 Share on other sites More sharing options...
zit1343 Posted April 2, 2010 Author Share Posted April 2, 2010 I know that, that's what I am waiting for your suggestions. If I include test.php in my main file, and try to echo it it would not work, it would output test.php instead of applying whats in the code file Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1035758 Share on other sites More sharing options...
oni-kun Posted April 2, 2010 Share Posted April 2, 2010 Your question and example code makes very little sense. Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1035760 Share on other sites More sharing options...
zit1343 Posted April 3, 2010 Author Share Posted April 3, 2010 any help from people who understood me Quote Link to comment https://forums.phpfreaks.com/topic/197326-please-help-me-with-fetch-content-from-2-sites-in-one-code/#findComment-1036276 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.