TCombs Posted October 8, 2011 Share Posted October 8, 2011 I have a supplement store that we'll call SiteA . On the homepage there is a list of featured and best selling products with images. I have a separate blog that we'll call SiteB. I want to get the images and the url they link to (for the product page) from SiteA and display them on SiteB. So that when a user is browsing SiteB and they click on one of the product images, it takes them to the correct product page. I have a script where I can manually accomplish this. However, since the content on the homepage of SiteA is always changing, I'd like to automate this process. For example: If you do a google search for "php", then click on "images" at the top, you will see a list of images relevant to PHP. If you click on any one of them, it takes you to that images page. That is what I want to essentially accomplish. Any suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/248701-get-images-from-sitea-and-display-on-siteb/ Share on other sites More sharing options...
awjudd Posted October 8, 2011 Share Posted October 8, 2011 Figure out how the images are being stored on site a (i.e. the filenames and locations) and then use that on site b to generate the links? ~juddster Quote Link to comment https://forums.phpfreaks.com/topic/248701-get-images-from-sitea-and-display-on-siteb/#findComment-1277272 Share on other sites More sharing options...
TCombs Posted October 8, 2011 Author Share Posted October 8, 2011 Thanks for a quick response. Not sure I know what you mean though. It sounds like what you're suggesting will display the image on SiteB, then link to where the image is stored in the directory vs. the product page. If that's not what you mean, can you give me an example or elaborate your explanation a little more for me? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/248701-get-images-from-sitea-and-display-on-siteb/#findComment-1277273 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.