Coder Social home page Coder Social logo

xml_sql_converter's Introduction

A very simple application for importing XML structured data into a MySQL database.

First a custom report scan is made with Network Inventory Advisor. Afterwards the report is exported to a XML-file. The index.php page handles the action form for uploading the XML. Upload_xml.php uploads and stores the file by usage of the $_FILES function in PHP. Convert_XML.php loads the XML-file (with use of simplexml_load_file) and parses the lines into a single MySQL-query. The query is executed and the data is stored in the appropiate table.

Until so far this conclude the README for the XML_SQL_Converter.

xml_sql_converter's People

Contributors

cezdev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

xml_sql_converter's Issues

Uploading XML Results in `HTTP Error 413.1 - Request Enity Too Large`

I also changed the Default uploadReadAheadSize from 49152 to 2147483647. The XML File I try to parse has a size of 300 MB.

When I also change maxAllowedContentLength to 5000000000 the Page Results in:

PHP Warning: POST Content-Length of 258023685 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 4 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 10 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 11 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 12 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 14 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 20 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 21 PHP Notice: Undefined index: file in C:\xsc\upload_xml.php on line 22 

I could fix it by cahnging also in php.ini post_max_size = 8000M and upload_max_filesize = 20000M but now I get a Screen like this:

image

Ad when I click Convert.. then there is no Page:

image

How does it work ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.