I then found it working faster and simple to read in JSON
And I tried to add this code $size = '*.mp3'; in order to execute the file sizes but I found not working
Please I have already marked your response as solution so help me some codes which I can add in the script to fetch the file size too.
I know about that but I don’t know which blocks should I use to call bytes and file names because as I understand I know that FTP is working with file upload and not file reading so don’t know why @Taifun mentioned that and why you too @Rogerio_Rios insisting it?