I need a script that deals with the following:
- file upload (only txt files)
- Takes the uploaded file, and converts it to a tree
-- the uploaded file has about 100K+ lines, each line indented so example (where the + are tabs):
++ File 1
+++ Sub Cat
++++ File 4
++++ File 5
++ File 2
+ Category 2
++ SubCategory 1
+++ File 1
++ SubCategory 2
I need to be able to take each line, in the order it's given, and insert it into the database with the following schema: tree (`parent_id`, `position`, `left`, `right`, `level`, `title`, `type` ) (where the table is the jsTree table). So when it's inserted into the table and jsTree renders it on the site, the file that was uploaded is exactly what looks like on the site.
I also attached an example text file.
14 freelance font une offre moyenne de $302 pour ce travail
Hi We are US consultancy Services, a consultancy wing of Isaviour It Solutions Pvt. Ltd which is web design and Development Company specializing in creative design and e-commerce & Wordpress solutions. Details of Plus
Dear Sir, I have overall 15+ years experience in computer programming. I will take just one day to accomplish this project. I have experience with creating trees in many ways. Thanks & regards Md. Nura Azom L Plus
I have completed a project like this on my own web site. I guarantee on time delivery or no payment is required.
<b><i>Removed by Admin</i></b> - Custom software development - skpye: <b><i>Removed by Admin</i></b>
Hi Hybride I'm eager to start my first project in Freelancer, be confident that will be delivered on time. Thank you, Alejandro.