$def ) { if ( !in_array( $moduleName, $blacklist ) ) { $query[] = $moduleName; } } $url = $loadUrl . '?only=styles&skin=vector&modules=' . implode( '|', $query ); echo $url; $css = file_get_contents( $url ); file_put_contents( $outputFile, $css );