I want to use two whiles at once
while( $file = readdir($folder) ) {
and
while( $file1 = readdir($folder1) ) {
I am using the following
while( $file = readdir($folder)) && ($file1 = readdir($folder1) ) {
but its giving me error:
PHP Parse error: syntax error, unexpected T_BOOLEAN_AND
Notice the parenthesis and the fact you are using a single
=instead of==: