Level 29
if the content is valid sql you could just rename the file http://php.net/manual/en/function.rename.php. If not, load the content, parse it and rewrite as valid sql and then save file.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I want make php code convert .txt file to .sql file
.txt file content
36214597
32569874
32102547
Please or to participate in this conversation.