(PHP 4 >= 4.2.0, PHP 5 < 5.1.0)
dio_truncate — 截断文件描述符 fd 为 offset 字节
dio_truncate() 将文件截断为最多 offset
字节的大小。
如果先前的文件大于此大小,则额外的数据将丢失。如果先前的文件较小,不确定是保持文件不变还是扩展文件。在后一种情况下,扩展部分读取为零字节。
注意: 此函数未在 Windows 平台下实现。
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant