<p>header<br /> header -- 发送一个原始 HTTP 标头<br /> <br /> <!--p<br--> header(&quot;Location: http://www.example.com/&quot;); /* 重定向浏览器 */<br /> /* 确保重定向后,后续代码不会被执行 */<br /> exit;<br /> ?&gt; <br /> <br /> is_writable<br /> is_writable -- 判断给定的文件名是否可写<br /> 例子 1. is_writable() 例子<br /> <!--p<br--> $filename = 'test.txt';<br /> if (is_writable($filename)) {<br /> echo 'The file is writable';<br /> } else {<br /> echo 'The file is not writable';<br /> }<br /> ?&gt; <br /> <br /> realpath<br /> realpath -- 返回规范化的绝对路径名<br /> 例子 1. realpath() 例子<br /> <!--p<br--> $real_path = realpath(&quot;../../index.php&quot;);<br /> ?&gt;</p>
返回顶部 留言