Re: How I can get one line from a file?

From: Date: Sat, 11 Jan 2003 14:47:23 +0000
Subject: Re: How I can get one line from a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131254@lists.php.net to get a copy of this message
You don't specify if you want to read a *particular* line from a file. If so, I think there really is no way short of scanning the file with fgets() or by perhaps using some external utility such as grep or sed. If you want to read the first line, then you can use fgets() directly on the file. Cheers, Marco -- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!

« previous php.general (#131254) next »