php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34457 fcut - removes byte from a file
Submitted: 2005-09-10 17:39 UTC Modified: 2020-01-05 11:45 UTC
Votes:3
Avg. Score:2.0 ± 1.4
Reproduced:0 of 1 (0.0%)
From: shadowturtle at vype dot de Assigned:
Status: Suspended Package: Filesystem function related
PHP Version: 4.4.0 OS: windows xp home sp2
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: shadowturtle at vype dot de
New email:
PHP Version: OS:

 

 [2005-09-10 17:39 UTC] shadowturtle at vype dot de
Description:
------------
I want a function like fcut; Remove bytes from a file: Begin to Length.

fcut ( FileHandle, Begin, Length);

Sorry for my bad english. I comes from German (Europe).

Reproduce code:
---------------
<?PHP
  // Content "plee.txt":
  // abcdefghijklmnopqrstuvwxyz

  $myfile = fopen( "plee.txt", 'r+' );
    fcut( $myfile, 10, 5);
  fclose( $myfile );

  // New Content:
  // abcdefghijpqrstuvwxyz
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:05 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Filesystem function related
 [2020-01-05 11:45 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2020-01-05 11:45 UTC] cmb@php.net
Removing files from a byte is an expensive and rarely needed
operation, and can be implemented in userland.  If you want to
have this as built-in function, please pursue the RFC process[1].

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 15:01:27 2025 UTC