|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Script for implementing parts of html into database
Hello there!
I'm kinda new to database building, and Im having a problem which I can't seem to figure out myself. I'm having several 100 html files (or basic text, if you like), which are similar in nature. Now, I'd like to implement parts of these files in one database. Say the files have the following layout: <html> blabla <title>here goes title</html> <description>the desc goes here</description> blabla <body> a block of text a block of text a block of text </body> bladibla So, the fields I want to have implemented are those parts which are in between the brackets of htmlcode (eg. "here goes title"). Moreover, some of the fields are not one-liners, but include several lines and paragraphs (say "a block of text, etc"). Now, the main problem is to find a decent program or script to do this in batch mode. Does anyone have a clue on how to approach this problem? A script might be the best solution, still i don't know whether it is possible for such a task. I favor working with a program, but I haven't found a suitable one. The eventual database will be SQLbased, however, any database is fine for now. I've been looking at php-scripts on this forum, and php sounds like a decent choice for this task. Still, the batch-issue and the multiple-line issue are a bit too hard for a beginner like me. Best regards, and thanks in advance for your insights on this issue. Rob |
|
#2
|
||||
|
||||
|
Welcome to Dev Shed.
So you're looking for a pre-built script that will extract all the text from several hundred HTML files and put it into a database? It also sounds like you want each HTML item to be a separate field? I don't think you'll find something that will give you exactly what you want, but maybe you can find an open source app that you can modify a bit. However, if the tasks you need done are outside your skill set, I doubt you'd be able to modify an open source app. You might try searching for a file indexer / search script type of thing. Your needs are along those lines.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Script for implementing parts of html into database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|