$fh = fopen($file,"r");
if($fh){
$line = fgets($fh);
fclose($fh);
if(strpos($line,"a")==0){
// mach was
}
}
Liest die erste Zeile einer Datei aus, prüft ob "a" das erste Zeichen ist (für case-insensitive stripos verwenden), und macht dann irgendwas.
MfG
bubble
--
If "god" had intended us to drink beer, he would have given us stomachs. - David Daye
If "god" had intended us to drink beer, he would have given us stomachs. - David Daye