Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
Attention Visitor:
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > Discutii Generale

Discutii Generale Discutii generale despre PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 24.02.2007   #1
WEB_2
32-Bit Member
 
WEB_2's Avatar
 
Data înregistrării: 06.02.2007
Mesaje: 85
Rep Power: 6
WEB_2 is on a distinguished road
Trimite un mesaj prin Yahoo pentru WEB_2
Implicit Eroare la dezarhivare si arhivare

Cod PHP:
<?php
$zip 
= new ZipArchive;
if (
$zip->open('test.zip') === TRUE) {
   
$zip->addFile('/down/index.txt''newname.txt');
   
$zip->close();
   echo 
'ok';
} else {
   echo 
'failed';
}
?>
imi apare eroare

Fatal error: Cannot instantiate non-existent class: ziparchive in /home/promd/domains/rozip.com/public_html/down/arhiva.php on line 2


2.

Cod PHP:
<?php
$zip 
= new ZipArchive;
if (
$zip->open('test.zip') === TRUE) {
   
$zip->extractTo('/my/destination/dir/');
   
$zip->close();
   echo 
'ok';
} else {
   echo 
'failed';
}
?>
iar la dezarhivare primesc aceiasi eroare
WEB_2 is offline   Reply With Quote
Sponsored Links
Vechi 24.02.2007   #2
BETng4U
64-Bit member
 
BETng4U's Avatar
 
Data înregistrării: 21.02.2006
Locație: 127.0.0.1 - barlad
Vârsta: 23
Mesaje: 334
Rep Power: 7
BETng4U is on a distinguished road
Trimite un mesaj prin Yahoo pentru BETng4U
Implicit

probabil nu ai instalata extensia zip.. poti afla asta apeland functia phpinfo('INFO_ALL');

daca nu ai extensia citeste aici
http://www.php.net/zip

succes
BETng4U is offline   Reply With Quote
Vechi 24.02.2007   #3
WEB_2
32-Bit Member
 
WEB_2's Avatar
 
Data înregistrării: 06.02.2007
Mesaje: 85
Rep Power: 6
WEB_2 is on a distinguished road
Trimite un mesaj prin Yahoo pentru WEB_2
Implicit

e activat Suportul pentru Zip
__________________
int getRandomNumber()
{
return 4; //chosen by fair dice roll.
//guaranted to be random.
}
WEB_2 is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Pornit



Ora este GMT +3. Ora este acum 01:04:13.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design