PHP - > Upload process and create a new csv file
PHP - > Upload process and create a new csv file
(OP)
Hello, i have an csv document with 2 columns that have the following example data:-
REF OEM
987392405 DSB52402402404240 / LR2401240574 / SOB52402402404240 / SOB524024024042
987246240 1240240196240 / 1H240615423A / 1H240615423B / 1H240615423D / 1H240615423DX / 6K240615423B / 1G240615423 / 7M240615423
etc...
In a php page, i want to select a csv file, process it and then create a new csv file which has been processed to look like the following?
REF OEM
987392405 DSB52402402404240
987392405 LR2401240574
987392405 SOB52402402404240
987392405 SOB524024024042
Please can anyone show me how to do it?
many thanks
BF
REF OEM
987392405 DSB52402402404240 / LR2401240574 / SOB52402402404240 / SOB524024024042
987246240 1240240196240 / 1H240615423A / 1H240615423B / 1H240615423D / 1H240615423DX / 6K240615423B / 1G240615423 / 7M240615423
etc...
In a php page, i want to select a csv file, process it and then create a new csv file which has been processed to look like the following?
REF OEM
987392405 DSB52402402404240
987392405 LR2401240574
987392405 SOB52402402404240
987392405 SOB524024024042
Please can anyone show me how to do it?
many thanks
BF
RE: PHP - > Upload process and create a new csv file
Personally I would do it like this :
CODE --> command line
If need help adapting it to your context, let us know. ( And please post preformatted text between [pre] and [/pre] TGL tags. )
Feherke.
feherke.github.io