P
P
Prosto_ya822017-01-30 22:33:14
PHP
Prosto_ya82, 2017-01-30 22:33:14

Can't unzip files on vps. Maybe I'm doing something wrong?

<?php

require_once('pclzip.lib.php');
$archive = new PclZip('11.zip');
if ($archive->extract() == 0) die("Error : ".$archive->errorInfo(true));
else echo('Ok!');

<?php
Gives error 500
PHP Warning: require_once(pclzip.lib.php): failed to open stream: No such file or directory in /home/admin/web/site.ru/public_html/1.php on line 3
PHP Fatal error: require_once(): Failed opening required 'pclzip.lib.php' (include_path='.:/usr/share/php') in /home/admin/web/site.ru/public_html/1.php on line 3
I don't understand what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Алексей С., 2017-01-30
@Prosto_ya82

вам же написало

require_once(pclzip.lib.php): failed to open stream: No such file or directory

нет такого файла

T
T_y_l_e_r, 2017-01-30
@T_y_l_e_r

Не может найти файл pclzip.lib.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question