#38858 [NEW]: Feature Request: file_get_line (get a line from a file)
| From: | toasty2 at gmail dot com | Date: | Sat, 16 Sep 2006 23:31:29 +0000 |
| Subject: | #38858 [NEW]: Feature Request: file_get_line (get a line from a file) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-102291@lists.php.net to get a copy of this message | ||
From: toasty2 at gmail dot com
Operating system: N/A
PHP version: 5.2.0RC4
PHP Bug Type: Feature/Change Request
Bug description: Feature Request: file_get_line (get a line from a file)
Description:
------------
It would be very very very nice to have a function in php that will find a
line in a file and save it to a variable. A function with a name such as
"file_get_line" would be good.
Usage would be like:
$line = file_get_line(5);
5, being the line to retrieve. If there's any other arguments you think
would be necessary or useful, go ahead, as long as it is capable of doing
the basic feature I requested, it's good!
Thank you, hope you implement it!
Have a nice day.
--
Edit bug report at http://bugs.php.net/?id=38858&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38858&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38858&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38858&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38858&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38858&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38858&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38858&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38858&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38858&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38858&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38858&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38858&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38858&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38858&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38858&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38858&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38858&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38858&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38858&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38858&r=mysqlcfg