A PHP Problem. Help me fix it! (35)

24 Name: Albright!LC/IWhc3yc 04/12/14(Tue)19:08 ID:wXgvI+QC [Del]

>>23: Brilliance... except...

 $x=explode("\n",shell_exec("cd ".$dir.";ls -1 *.jpg *.jpeg *.png *.gif"));

ought to work better. ls -1 forces single-column output.

Also, this will break on Windows, but... who cares? Good thinking, my man.

Also, is sending a "Status" header really necessary?

This thread has been closed. You cannot post in this thread any longer.