$f = fopen("public/tour.txt", "r"); $testotour = ""; while (!feof($f)) { $testotour .= str_replace("&des=", "", fgets($f)).""; } fclose($f); ?>