php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7213 Read a file into a variable with one call
Submitted: 2000-10-14 17:57 UTC Modified: 2002-04-10 18:06 UTC
From: david at dailyrush dot dk Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at dailyrush dot dk
New email:
PHP Version: OS:

 

 [2000-10-14 17:57 UTC] david at dailyrush dot dk
It would be really nice if someone could make a function call for reading an entire file into one variable, so one would have to use implode("", file("file.txt")); for something as simple as that.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-12 15:17 UTC] sebastian@php.net
Duplicate of Bug #5008.

 [2002-04-10 18:06 UTC] sniper@php.net
Added in PHP 4.3.0 (current CVS HEAD):

http://www.php.net/manual/en/function.file-get-contents.php

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 25 20:00:01 2025 UTC