TAILIEUCHUNG - Zend PHP Certification Study Guide- P10

Zend PHP Certification Study Guide- P10: Hãy thẳng thừng, Giả sử bạn đang thuê một ai đó để giám sát hệ thống và PHP của bạn có nó thu hẹp xuống để hai ứng cử viên. Một trong những ứng cử viên nói, "Oh yeah, tôi biết tất cả về PHP." Các ứng cử viên khác nói, "Oh yeah, tôi biết tất cả về PHP, tôi đã được thông qua kỳ thi chứng chỉ Zend." câu hỏi tiếp theo của bạn có thể sẽ là "Zend Chứng nhận là gì?" Và các ứng viên nói, "Một công ty chuyên về. | 164 Chapter 10 Stream and Network Programming whether the stream connection has timed out or not whether the stream has blocked or not whether all data has been read from the stream or not To get stream metadata use the stream_get_meta_data function. php Chapter 10 Stream and Network Programming Example 02 stream metdata example we will create a stream by opening this stream and then we ll dump the metadata out to see what s there echo Metadata for file . __FILE . n n fp fopen __FILE__ r var_dump stream_get_meta_data fp fclose fp Here is the output from running the code example array 6 wrapper_type string 9 plainfile stream_type string 5 STDIO unread_bytes int 0 timed_out bool false blocked bool true eof bool false php Chapter 10 Stream and Network Programming Example 03 stream metadata example - http file wrapper we will create a stream by opening a connection to the PHP Project s own web server and then dump the metadata to see what we have Introducing Streams 165 echo Metadata from a connection to http n n fp fopen http r stream_filter_append fp var_dump stream_get_meta_data fp fclose fp Pipelines Data in a stream flows along one of two pipelines Data sent down a stream from your PHP script to the destination file or network server flows down the write pipeline. Data retrieved from the file or network server flows up the read pipeline. Some streams will have both pipelines but some streams will only have a read pipeline or a write pipeline. What Is the Stream Transport At the far end of the pipeline the furthest away from your PHP script is the stream transport. The stream transport is a piece of code that enables the file wrapper to talk directly with whatever the stream is connected to. PHP comes with a number of built-in transports STDIO The STDIO transport is used to talk to normal files special resources such as stdin and stdout and any other types of file supported by your underlying operating system. socket The .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.