|
Posted by Not here Not Now on 11/08/06 01:43
Steve wrote:
> | I was looking to keep it pretty simple
> |
> | mfg, year, engine, drive train, # doors
> |
> | I gave you a link to the vin patterns for chevy and some others from
> | another site, if this was any help.
> |
> | http://www.decodethis.com/patterns.aspx <-- this is a good source of vin
> | patterns
> |
> | oh well as zim would put it
> |
> | doom doom.....
>
> not so dooming. you can use that site to put into the code samples i created
> and you'll have all the flexibility to decode vins as that site does. the
> problem is, that site covers archived years/makes/models and doesn't
> accurately describe newer vehicles.
>
> the classes i included simply lay out a set of regular expressions as the
> key to an array of values - whether the values are body type, series, model,
> etc.. each expression is executed on the vin until a match is found. when
> found, the value of that array element is returned. it's pretty flexible but
> may get lengthy. keeping each manufacturer seperate (it's own class), helps
> lower the processing overhead while still maintaining a uniform interface.
>
> have you investigated the possibility of speaking directly with a couple of
> manufacturers to see if they'd provide you with a data file of their vin
> translation data? i got most of my info straight off the web (through a
> BUNCH of searches). anyway, i'm sure most would be willing to help at least
> in some way.
>
>
ok I have copied an pasted the code to three files, if you could point
me into implimenting the this code to get an idea. then I will move on
to the data base idea.
I just want to get some thing going so people will give me ideas.
look at www.classiccarmall.net I wrote most of the site and I have made
alot of PHP changes as well
I did not see any areas to have a person enter data
I can continue to add case statments to increases it scope of vehicular
data then impliment to a data base later.
I just need a simple example of how you impliment this in to the page
source and call it externaly.
either using a form statment or just embed the code in the page
Navigation:
[Reply to this message]
|