I inherited a website 6 months ago with bits of php code on most pages. I have been studying lynda.com, W3C and books and I am beginning to understand more, but at a advanced beginner level. I use Dreamweaver CS4 and have been able to work around any code I don't understand (mostly because it is still working!). Any time it gets in my way, I comment it out and do the same thing with html.
I would like to be able to take some of the more complex code and really understand what it is doing. I can pick out php terms and I understand them quite well, but sometimes putting it all together doesn't make it very clear. I can figure out the general idea of what is happening, but not the specifics. How long does this take someone who is self study to learn?
I have a php code script that basically looks at all the files in a directory, figures out how big they are, assigns them MB, KB etc using php math and then echoes all the file names, along with these file types and sizes (ex: This Is The File Name (PDF 47 KB)) on the page. I cannot understand how the php defines how files are ordered when placed on the page. I want more control over the alphabetical (or in order of date) display of these files. They just seem to go into the directory and pop up randomly in the list.
Is there somewhere on the internet where I can paste php code and have it partially interpreted step by step? Or is there somewhere where people post snippets of php code that do similar functions?
Thanks for your help