How to upload multiple XML files to MySQL

0

I need your guidance for the following: In my web server I have a directory where invoices are saved in XML format, a file is generated for each invoice issued so I only know the file extension. The information of each XML I need to store it in a MySQL DB, until now I have only found the way to do it with a single file and knowing the name and extension. Could you please guide me about some function in PHP that may be useful to me. Thank you in advance for your help and I apologize if it is not the right way to ask for help, I am a novice in this. Greetings

    
asked by Felipe 05.04.2018 в 22:40
source

1 answer

0

You could use the scandir function ( link ), it would give you all the files in a directory and you would use what you already know the name of the file

    
answered by 11.04.2018 в 17:56