I found the solution myself. The requested css-file should not just be appended. Instead the 'somefile.php' should output the requested file itself with the following lines at the end:
readfile($_SERVER['SCRIPT_FILENAME']); // the requested file
exit(0);