cPanel 2082 » cPanel Soru ve Cevaplar

php ile rar dosyası çıkarma

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkçe » WHM cPanel » cPanel 2082 » cPanel Soru ve Cevaplar
 
Firma tanıtımı!
Firmanızın reklamını hemen yapın!
Reklamlar
Reklam Alın!
Günlük 5k tekil ve üzeri sitelerinize reklam!
Fixreklam
Extreme yoksa Sayyac var!
Ücretsiz İstatistik Servisi
Sayyac.com

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 25.02.08, 14:37
victories's Avatar
Sempron
 
Join Date: Feb 2008
Location: kirsehir
Age: 27
Posts: 15
Rep Power: 0
victories is on a distinguished road
Exclamation php ile rar dosyası çıkarma

merhaba arkadaşlar,

bir tane reseller paketim bir tane vps hesabım var, ben bu hesaplarımda php ile rar dosyalarını extract edebilirmiyim. şöyle bir kod buldum ama çalıştırınca "internal server error" veriyor.

PHP Code:
  <?php

$rar_file 
rar_open('example.rar') or die("Can't open Rar archive");

$entries rar_list($rar_file);

foreach (
$entries as $entry) {
    echo 
'Filename: ' $entry->getName() . "\n";
    echo 
'Packed size: ' $entry->getPackedSize() . "\n";
    echo 
'Unpacked size: ' $entry->getUnpackedSize() . "\n";

    
$entry->extract('/dir/extract/to/');
}

rar_close($rar_file);

?>
bu hesaplarda rar dosyalarını açabilmem için kurmam gereken bir eklentimi var. PHP: Rar - Manual adresinde bilgi var ama pecl eklentisini kurarken "pecl -v install rar." komutu kullanın diye yazmışlar ama bu komutu hangi klasörde uygulamalıyım.
bu arada reseller paketimde "FEDORA 3 i686 on standard - WHM X v3.1.0" vps paketimde ise "CENTOS Enterprise 4.5 i686 on virtuozzo - WHM X v3.1.0" çalışıyor.

vpsde root yetkim var, reseller pakette yok. şimdiden teşekkür ederim.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 25.02.08, 16:11
misc's Avatar
WHM VIP Member
 
Join Date: Nov 2007
Location: Denizli
Posts: 283
Rep Power: 22
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
Send a message via MSN to misc
selam,

chmod 755 unrar.php

komutunu deneyip sonucu yazar mısınız buraya.
unrar.php sizin sunucudaki dosya ismi olacak tabi ki...

"pardon tam okumamışım unrar var mı sunucuda ?"
"/dir/extract/to/ ve burayıda değiştirmelisin."

Last edited by misc; 25.02.08 at 16:32.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 25.02.08, 16:34
victories's Avatar
Sempron
 
Join Date: Feb 2008
Location: kirsehir
Age: 27
Posts: 15
Rep Power: 0
victories is on a distinguished road
Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
maalesef gene aynı hatayı verdi. ftp de açmam gereken rarlı dosyalar var, toplamda 30 gb civarı, hepsini indirip açıp geri upload etmekten başka fikri olan varsa lütfen bekliyorum...

tam olarak yazdığım kod bu
PHP Code:
<?php

$rar_file 
rar_open('Alphaville_-_Big_in_Japan_.rar') or die("Can't open Rar archive");

$entries rar_list($rar_file);

foreach (
$entries as $entry) {
    echo 
'Filename: ' $entry->getName() . "\n";
    echo 
'Packed size: ' $entry->getPackedSize() . "\n";
    echo 
'Unpacked size: ' $entry->getUnpackedSize() . "\n";

    
$entry->extract('/home/xvid/public_html/files/');
}

rar_close($rar_file);

?>
ayrıca unrar varmı yokmu bilmiyorum, muhtemelen yok, nasıl kurabilirim. ilk mesajımda yazdığım adresten aldığım bilgilerle denedim ama beceremedim.

bu dosyaları açmanın herhangi bir başka yolu varsa php haricinde oda işimi görür

Last edited by victories; 25.02.08 at 16:55.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 25.02.08, 18:12
misc's Avatar
WHM VIP Member
 
Join Date: Nov 2007
Location: Denizli
Posts: 283
Rep Power: 22
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
Send a message via MSN to misc
which unrar komutunu yazıp bakabilir misin çıktısı ne diye

#####
wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
tar -zxvf rarlinux-3.6.0.tar.gz
cd rar
./unrar
cp rar unrar /bin
######
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 25.02.08, 19:23
victories's Avatar
Sempron
 
Join Date: Feb 2008
Location: kirsehir
Age: 27
Posts: 15
Rep Power: 0
victories is on a distinguished road
root olduğum vps servera kurabilmeyi başardım ama reseller paket için bir çözüm varmı? vps server bağlantısı çok yavaş, saniyede 50 Kb civarı o yüzden pek kullanışlı değil, diğer reseller pakette ise saniyede 3000 kb civarı yani kat kat daha hızlı
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 25.02.08, 19:31
misc's Avatar
WHM VIP Member
 
Join Date: Nov 2007
Location: Denizli
Posts: 283
Rep Power: 22
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
Send a message via MSN to misc
kurduğun vps deki reseller hesabında unrar x *.rar komutu çalışmıyor mu?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
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 On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Örnek SNMP Config Dosyası Ni-Osman Genel Makaleler 0 24.02.08 15:46
Vbullettin 3.7.4 Full Türkçe Dil Dosyası sakkan vBulletin Destek 5 27.01.08 00:48
SMF 1.1.2 Türkçe Dil Dosyası webmasterevi Tercüme 0 05.08.07 22:34


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü