- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
set_file_buffer() function in PHP
The set_file_buffer() function sets the buffer size of an open file. The function returns 0 on success, otherwise it returns EOF.
Syntax
set_file_buffer(file_pointer, buffer)
Parameters
file_pointer − The file pointer.
buffer − The buffer size in bytes.
Return
The set_file_buffer() function returns 0 on success, otherwise it returns EOF.
Example
<?php $file_pointer = fopen("new.txt","w"); $res = set_file_buffer($file_pointer,300); if($res) echo "buffer set"; else echo "buffer not set"; ?>
Output
buffer set
Advertisements