7
Enocra
7y

There was a problem in my enterprise last week that I couldn't repair because it was my school time. So, for a week, the person in charge of deliveries couldn't import directly the adresses because the csv generated by the site had an error. I came back this morning and managed to correct the error.
In fact, the whole csv was generated in PHP, with code like:
$txt .= $code.";";
But for an unknown reason at the generation, the csv decides to crop 5 characters at the end of the documents, so the last semicolon and the country code were absent. So I had to add a string at the end of the document ("dgdgdgdgd") so it crops useless characters.
I really hate when I don't understand.

Comments
  • 5
    That's for sure a future dev's rant on devRant. 😂
  • 5
    @shittywebdev then I should add a line:
    <!-- Sorry future employee, I couldn't find another way. Hate me as much as you want, I am already in hell for sure. -->
Add Comment