⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 08c10-1.php

📁 介绍PHP5的给类型函数应用
💻 PHP
字号:
<?php// A script to cache the output of a graphic producing PHP script on//  another server: First try to open a connection to the remote file.//  If it fails then do nothing. That way if the remote server is down,//  we don't lose our local cached version:if ($remote = fopen('http://hubblesite.org/news/latest_big.php', 'r')) {    // Since we were able to open it, open our cache version to output to ..    //  again, if this fails, just exit and don't worry about it.    if ($local = fopen('hubble_news.jpg', 'w')) {        // We made it, copy all the data from the remote, to the local:        stream_copy_to_stream($remote, $local);        // Now close the files up        fclose($remote);        fclose($local);    }}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -