I added the rtrim and strlen to avoid empty lines, but a real program should have much more robust input validation.
<?php
$filename="import.txt";
$myfile=fopen($filename,"r");
while(!(feof($myfile))) {
$words = fgets($myfile,225);
$words = rtrim($words);
if (strlen($words) > 5) {
list($p1, $p2, $p3,$p4, $p5, $p6) = split (";", $words, 6);
echo $p1 . "<br>";
}
}
fclose($myfile);
?>