In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how PHP uses the fopen () function, which is very detailed and has a certain reference value. Friends who are interested must finish it!
Fopen ($filepath,$mode)
Resource fopen (string $filename, string $mode [, bool $use_include_path = false [, resource $context]]) / / fopen () binds the named resource specified by filename to a stream
Parameter: filename if filename is "scheme://..." Is treated as an URL,PHP will search for protocol handlers (also known as encapsulation protocols) to handle this pattern. If the protocol has not yet registered the encapsulation protocol, PHP will send a message to help check for potential problems in the script and continue to execute filename as a normal file name.
The list of possible values for mode in fopen () mode says'r'to open read-only and point the file pointer to the file header.' Open read-write and point the file pointer to the file header.' Open in write mode, point the file pointer to the file header and truncate the file size to zero. If the file does not exist, try to create it.' Open read-write, point the file pointer to the file header and truncate the file size to zero. If the file does not exist, try to create it.' Open a 'write mode and point the file pointer to the end of the file. If the file does not exist, try to create it.' Open in read-write mode and point the file pointer to the end of the file. If the file does not exist, try to create it.' X'is created and opened as a write, pointing the file pointer to the file header. If the file already exists, the fopen () call fails and returns FALSE with an error message at the E_WARNING level. If the file does not exist, try to create it. This is equivalent to assigning the O_EXCL | O_CREAT tag to the underlying open (2) system call.' Xwords'is created and opened as read and write, and the other behavior is the same as'x'. These are all the contents of the article "how PHP uses the fopen () function". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.