PclZipUtilRename

Definition:
function PclZipUtilRename($p_src, $p_dest)

Parameters

  • $p_src
  • $p_dest

Source code

  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;

  }

2497

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: