Data Feed Help

User 292322 Photo


Registered User
22 posts


trying to get the steps to complete a data feed. specifaclly with Dominion Dealer Solution. My ultimate goal is to create a rotating banner with 3 vehicles and make/model. If there is a simple coding script or software, that would be my ultimate goal.
a car inventory has been provided on a server and has a text file (VEHICLES.TXT) that has the new uploaded inventory and looks a little like:
"DealerID","VIN","StockNumber","Status","VehicleType","Year",
"225516","WDBNG70J1YA048744","12-50","A","1","2000",

The image of the vehicle is located in a different area using the dealer id and they gave a link example like:

http://cdn.getauto.com/photos/8/2255...A020849-1c.jpg

Any ideas on how to approach. I am looking for a basic way to pull it into a website homepage or a place to get more help. Tried Webhostingtalk and got nothing.

User 187934 Photo


Senior Advisor
20,267 posts

Looks to be a comma delimited file.

<?php

$handle = fopen("file.txt", "rb");
$delimiter = ",";
while (!feof($handle) ) {
$line = fgets($handle);
$data = explode($delimiter, $line);
foreach($data as $v) {
echo $v;
}
}
fclose($handle);

?>

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 464893 Photo


Ambassador
1,611 posts

Try Hotscripts I think there are some there that can help. You may have to join their forum. What Eric has shown is how to list the data. you will need the accompanying link to get the photo.

It is a matter of getting the data and photo to include in your slide show, Now if you want to update that data over time then a timed script will be needed to get the next bits of data for display. Quite doable if the source is consistent. The variables in the slide show would have to be manipulated whether JavaScript or php is used.
The Guy from OZ



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.