File Wrappers in PHP

Your rating: None Average: 4.5 (2 votes)

File wrappers are pieces of code that PHP uses to read from and write to different types of files. They are part of PHP’s Streams architecture.

File wrappers allow you to use PHP’s built-in filesystem functions on things that aren’t normal files.

When your PHP script needs to work with a file, you use one of the filesystem functions that PHP provides. These file
system functions hand the work off to the file wrappers. PHP chooses the correct file wrapper based on the name of the file. The file wrapper does the work and passes the
results back through PHP to your script.

PHP comes with a number of built-in file wrappers. Additionally, you can create file wrappers of your own using the PHP Streams API.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Cumulus Tag Cloud

Kiran Says

I love work environment which is:

Informal yet professional
Demanding yet rewarding
Challenging yet inspiring
Mediocrity is not an option
Having fun is serious business
Making mistakes is human
Forgiveness is Company Policy

Travelling Sucks