How to auto-generate alot of HTML files?

  • Tabble
  • Born
  • Born
  • Tabble
  • Posts: 4

Post 3+ Months Ago

I'm building a guitar tab website and I have about 20,000 individual tab files and I need to be able to create an HTML file for each tab file.

The tabs are located on my computer like this for example:


and on my server like this:

The thing that makes this a little difficult is that I need to be able to EXTRACT the file name of each tab (such as beatles-yesterday.txt) and add it to the title tag's and link structure of each html file...

So the end result for this example tab would look like this:

<title>My Sites Name -> Guitar Tabs -> Beatles -> Yesterday tab</title>

Notice how it took the file name and added it to the title tag.

Also, within the tab there would be links that say:

<a>Guitar tabs</a>
<a>Guitar tabs -> B</a>
<a>Guitar tabs -> B -> Beatles</a>

Then the tab itself would follow.

Does anyone know to go about doing this?

Never done anything like this before, and have no idea how to do it.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5735
  • Loc: Sub-level 28

Post 3+ Months Ago

The best thing to dowould be to write a PHP script to do this. Read in the .txt files, format 'em and output 'em :)
  • ccb056
  • Graduate
  • Graduate
  • User avatar
  • Posts: 189

Post 3+ Months Ago

I would recomending moving the data from txt files to a mysql database, data retrival via php should be faster that way

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.