why don't you just do this?

***
<?php
if(file_exists("setup.txt")){
  $lines=file("setup.txt");
  echo stripslashes($lines[0]);
}
else echo "Error opening \"setup.txt\"";
?>
***

file() returns the file in an array, each line as new value, so line nr.
1 is $line[0], line nr. 2 is $line[1] etc...
I added stripslashes() on the output so that you won't get "John\'s X
Log"


Sævar - ICELAND


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to