
如何使用Gatsby为WordPress生成静态网站
pclziputilrename ( $p_src, $p_dest )
pclziputilrename: 这个函数重命名一个文件或目录。它需要三个参数。$p_archive(对象)表示存档,$p_src(字符串)表示源路径,$p_dest(字符串)表示目标路径。
function PclZipUtilRename($p_src, $p_dest) { $v_result = 1; // ----- Try to rename the files if (!@rename($p_src, $p_dest)) { // ----- Try to copy & unlink the src if (!@copy($p_src, $p_dest)) { $v_result = 0; } else if (!@unlink($p_src)) { $v_result = 0; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilOptionText() // Description : // Translate option value in text. Mainly for debug purpose. // Parameters : // $p_option : the option value. // Return Values : // The option text value. // --------------------------------------------------------------------------------