cPanel 2082 » Soru ve Cevaplar

php ile rar dosyası çıkarma

Geri git   WHM cPanel Destek Platformu » WHM cPanel » cPanel 2082 » Soru ve Cevaplar
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et
 

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 25.02.08, 01:37 PM
victories - ait Kullanıcı Resmi (Avatar)
Sempron
 
Üyelik tarihi: Feb 2008
Nerden: kirsehir
Yaş: 27
Mesajlar: 10
Tecrübe Puanı: 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- Kodu:
  <?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!
Alıntı ile Cevapla
  #2 (permalink)  
Alt 25.02.08, 03:11 PM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 282
Tecrübe Puanı: 21
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
misc - MSN üzeri Mesaj gönder
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."

Konu misc tarafından (25.02.08 Saat 03:32 PM ) değiştirilmiştir..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #3 (permalink)  
Alt 25.02.08, 03:34 PM
victories - ait Kullanıcı Resmi (Avatar)
Sempron
 
Üyelik tarihi: Feb 2008
Nerden: kirsehir
Yaş: 27
Mesajlar: 10
Tecrübe Puanı: 0
victories is on a distinguished road
Alıntı:
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- Kodu:
<?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

Konu victories tarafından (25.02.08 Saat 03:55 PM ) değiştirilmiştir..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #4 (permalink)  
Alt 25.02.08, 05:12 PM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 282
Tecrübe Puanı: 21
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
misc - MSN üzeri Mesaj gönder
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!
Alıntı ile Cevapla
  #5 (permalink)  
Alt 25.02.08, 06:23 PM
victories - ait Kullanıcı Resmi (Avatar)
Sempron
 
Üyelik tarihi: Feb 2008
Nerden: kirsehir
Yaş: 27
Mesajlar: 10
Tecrübe Puanı: 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!
Alıntı ile Cevapla
  #6 (permalink)  
Alt 25.02.08, 06:31 PM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 282
Tecrübe Puanı: 21
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
misc - MSN üzeri Mesaj gönder
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!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Örnek SNMP Config Dosyası Ni-Osman Makaleler 0 24.02.08 02:46 PM
Vbullettin 3.7.4 Full Türkçe Dil Dosyası sakkan vBulletin Destek 5 26.01.08 11:48 PM
SMF 1.1.2 Türkçe Dil Dosyası webmasterevi Tercüme 0 05.08.07 09:34 PM