Jump to content

PclTar - Can't create new tar


robembra

Recommended Posts

Hi,

 

I have found this class from http://www.phpconcept.net that create tars aswell as extracting them.

 

Extracting works great but i cant create a tar.

 

I am using the following code:

$p_tarname = "backup_new.tgz";
$p_list = array("/home/sites/me/public_html/forum");
$p_mode = "tgz";

$output = PclTarCreate($p_tarname, $p_list, $p_mode, $p_add_dir, $p_remove_dir);

print("<pre>".print_r($output,true)."</pre>");

 

With the error:

 

Warning: is_file() [function.is-file]: Stat failed for /home/sites/me/public_html/forum/docs/../docs/../docs/../docs/../../s7/. (errno=13 - Permission denied) in /home/sites/me/public_html/lib/pcltar.lib.php on line 1415

 

Warning: is_file() [function.is-file]: Stat failed for /home/sites/me/public_html/forum/docs/../docs/../docs/../docs/../../s7/test.tgz (errno=13 - Permission denied) in /home/sites/me/public_html/lib/pcltar.lib.php on line 1415

 

Warning: opendir(/home/sites/me/public_html/forum/docs/../docs/../docs/../docs/../../../..) [function.opendir]: failed to open dir: Permission denied in /home/sites/me/public_html/lib/pcltar.lib.php on line 1409

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/sites/me/public_html/lib/pcltar.lib.php on line 1410

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/sites/me/public_html/lib/pcltar.lib.php on line 1411

 

Warning: readdir(): supplied argument is not a valid Directory resource in /home/sites/me/public_html/lib/pcltar.lib.php on line 1412

 

The dir s7 it not even in th forum dir so im trully confused  :wtf:

 

Any help greatful thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.