hello, i have a .rar file that i want to extract but i can't, the extract popup shows up and just stays there, what can i do extract it? I wanna ask before i involve my host....
By default its not possible if unrar is installed on the server i think u can do it through php or ssh commands.. Shared hosting i doubt its possible atleast rite now
If u can ask ur host tell them too do this http://in2.php.net/rar then rar will work with php Once its done u can use codes like <?php $rar_file = rar_open('example.rar') or die("Failed to open Rar archive"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Failed to find such entry"); $entry->extract('/dir/to'); // create /dir/to/Dir/file.txt $entry->extract(false, '/dir/to/new_name.txt'); // create /dir/to/new_name.txt ?> Code (markup):
thanks for your help, i will see if they will do it, but i doubt that they will, but thanks anyway it's good to know these things, rep added.
I think it is not possible to extract the .rar file in c panel. But, if you have ssh access means from there you extract the .rar file.
If your shared hosting provider won't unrar the file, you can convert it to .tar.gz with 7zip. Also its a pretty useful free tool for archives of all kinds.
If you need to upload or download files from your web hosting, one of the best programs out there is called: FileZilla. You need to login using your FTP details (the IP of your shared server, cPanel username, cPanel password), and it immediately gives you access to your web files. The program displays 2 screens: one of your computer, and one of your web server. This gives you an easy overview and functionality of being able to upload and/or download files. You can extract your .rar file inside a map on your computer and upload those files directly to your web server.
upload .zip file not .rar in to the file manager (public_html) then extract it. it will extract. proven method. i have done many times. after extract you can move folder's files to any other folder. if you don't know how to convert folder to .zip then install winrar .. right click on folder -> add to archive -> select .zip format. its done. thanks