How to parse the uploaded .lua to the database?

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

How to parse the uploaded .lua to the database?

Postby Foxy » Tue Jan 09, 2007 5:15 am

I'm looking at porting a project of mine (Offline Auction House Price Check System) to WowRoster and starting another more advanced project...

For my old project and the new one I want to take advantage of using UniUploader or the manual upload via the site to parse the data... Can someone give me a very clear break down of how to go about parsing these huge files to a database? (mysql)
Foxy
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 111
Joined: Tue Aug 22, 2006 9:49 am

How to parse the uploaded .lua to the database?

Postby shan_aya » Thu Jul 26, 2007 9:26 am

+1

i need same thing
how to parse right lua file with UU ?
shan_aya
WR.net Journeyman
WR.net Journeyman
 
Posts: 132
Joined: Fri Aug 11, 2006 12:58 pm

How to parse the uploaded .lua to the database?

Postby PleegWat » Fri Jul 27, 2007 3:52 am

If you're building something separate from roster, you can take lib/luaparser.php (mind the license) which can read an uploaded lua file and returns it parsed as a php array.

If you are building a roster addon, you can take a look at what edits the various roster addons which use extra lua files need (in update.php), and duplicate those for your addons. Or you can wait for 1.8, which offers an API for this. In either of these cases you can access the parsed array in your addon's trigger file.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron