General Category > General Discussion

PHP generator?

(1/1)

kronicade:
Hi All,

I haven't browsed through the forum too much so this may already be out there.  Has anyone made a simple php script that grabs mysql values to populate a beerxml file?

I've been developing a project of my own called SmartBrewer.com.  I could help with this if there's anyone out there interested.

Just curious, I'd like to have a "beermap.xml" similar to my "sitemap.xml" available for a users recipe, but probably not for the whole site.

Thanks,
Andy

LaughingOtter:
Oh, hey! There's a good idea!
I just did something similar for a pinball design site whose search engine was completely out of it.
So you're saying we slurp the data via repeated URL calls (perl works a lot better for that, by the way) analyze a couple of resultant HTML files, figure out where the relevant data starts, only publish sub-files from that line onwards (you need to run scripts like that the same day you find that out), analyze the sub-files and publish our own MySQL table based on the info stripped out of those file fragments? (PHP is a lot better for that, by the way)

I think we could do that. Where do we start?

bperetto:
I already did that years ago. Feel free to borrow code:

www.brewthology.com

jean-luc:

--- Quote from: bperetto on October 23, 2009, 10:31:03 AM ---I already did that years ago. Feel free to borrow code:

www.brewthology.com

--- End quote ---

+1 for bperetto.

I'm actually working on a recipes management for www.brassageamateur.com inspired by Brewthology
and highly recommended by the Doc from AussieHomebrewer.com but had to almost completely rewrite it
to include the app in the phpBB environment.

May be the point is not just about a php script linked to one sql structure (like bperetto did for Brewthology) but a class like xml2array but would be array2xml, in this case, the array would have to respect the BeerXML structure to help xml file being generated without error (i.e. : $recipes[0][hops][0]... of $recipes[recipe][0][hops][hop][0]...)

I'll surely have to work on this soon and will keep u posted

hereafter:
That is somehow similar to what I'm doing for our thesis and I'm currently working on it now. If you are interested to learn as well as to help, you can just send me a message here.

Navigation

[0] Message Index

Go to full version