CentOS 5 :: Ability To Unzip Files Using PHP?
Apr 13, 2010
Using PHP 5.2.10 on CentOS 5.4. I need to run a PHP call that will extract all the files from a .zip file. Is there a function to do this or something in PHP I need to enable or install?
View 1 Replies
ADVERTISEMENT
Jul 11, 2010
Problem is what unzip command, finish before all unzip is done.
Code:
#!/bin/dash
cd /home/ftpuser/www_base/
[code]....
View 3 Replies
View Related
Sep 8, 2011
edit unzip binary file to fix a security issue with cpanel?i tried hex editior but i canot understand the file codes!iam a basic php scripter and pwn but i canot understand this its just numbers and strange characters!......................45..................5......@#........ like this
View 1 Replies
View Related
May 5, 2010
How to unzip the zip files to local directory in linux?
View 5 Replies
View Related
Jun 22, 2009
I'm trying to find all zip files timestamped from the past 7 days, then unzip them into a different director.I tried the following, but it only unzipped one of three files that meet the 7 day criteria. What am I missing?Code:find /home/user/public_html/zip_files/ -iname "*.zip" -mtime -7 -print0 | xargs -n10 unzip -LL -o -d /home/user/public_html/another_directory/
View 1 Replies
View Related
Nov 4, 2010
There are few hundred tar.gz files each having several sub dirs in them (ex: ftp_server1_logs, mail_server2_logs). However the main tar.gz files (ex: 20101001.tar.gz) does not contain all sub dirs every time (ex: 20101001.tar.gz may only contain some ftp server log dirs etc..)
what i have to do is find the tar.gz files that contain a specific type of log type (ex: ftp logs) and extract all logs to a single folder (ex: ftp logs)
View 1 Replies
View Related
Jun 26, 2010
I have downloaded an update of mozilla firefox but don't know how to unzip it. Do I download it to disc(hard drive) or do I download to xarchiver? Then how do I unzip it.Do I have to unzip all files the same way?
View 7 Replies
View Related
Mar 4, 2011
Will unzipping always append files if the directories already exist? What about tar?
I unzipped an archive the archive had 3 folders and dozens of subfolders within those. app, skin, js
The folder I unzipped it to also already had those 3 folders as well as many child folders etc.
My website is still working so I'm just wondering. Is this safe or is there anything I should worry about. The other option was to manually upload each file manually that is in those 3 folders and the dozens of sub folders.
View 1 Replies
View Related
Jun 11, 2010
Is it possible to copy zipped (my.zip) files from Windows systems to Linux systems and unzip them without any corruption.
I know the command unzip is available, but I want to know if this copying from WIndows to Linux could lead to file corruption.
View 7 Replies
View Related
Aug 31, 2011
What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own.
/etc/sysconfig/network-scripts/ifcfg-wlan0
/etc/sysconfig/networking/devices/ifcfg-wlan0
/etc/sysconfig/networking/profiles/default/ifcfg-wlan0
View 5 Replies
View Related
Dec 21, 2010
Some time yesterday, I lost the ability to ssh my remote server, or even visit any webpages it hosts.
I've explored hosts.deny, /var/log/secure and even turned iptables off to see if it would fix anything. To no avail. Here's what my ssh login attempt looks like:
Quote:
localhost ~ $ ssh -vv x.x.x.x
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
[Code]....
View 5 Replies
View Related
Aug 27, 2009
difference between using "jar xvf" and "unzip" to unzip the zip-file?
View 4 Replies
View Related
May 27, 2011
I have a folder structure filled with zip files. I am trying to unzip them and keep them in their original location
This is what I am using
find . -iname "*.zip" -exec unzip {} ;
Now this command just unzips fine but the thing is that it unzips them where I fire this command(root folder of the zipped files). How can I recursively unzip files but keep them in place ?
View 1 Replies
View Related
Sep 15, 2010
I have this file with a z7 extension. The question is simple, how do we unzip this ?
View 2 Replies
View Related
Jul 13, 2011
I am using RHEL 5.4 Currently versions of Zip and Unzip are 2.31 and 5.52 respectively. I need to be on 3.0 for Zip and 6.0 for Unzip. Should I upgrade it? Should I install them anew? For your information I have to download the source from Info-ZIP Home Page.
View 3 Replies
View Related
Apr 2, 2010
I wanted to assign ownership of my choice to my zip file while unzipping so I am using the command:
unzip yourfile.zip|awk -F": " '{print $2}' | xargs chown user.group
I also want to give 705 permissions to all directories and 777 to all files on unzipping?
View 3 Replies
View Related
Sep 17, 2010
I've downloaded about 40 zipped files from NASA, SRTM files, unzip *.hgt.zip does not work, unzipping individual files does. is the a util that can do a multiple unzip, or a short script.
View 7 Replies
View Related
Jun 24, 2010
i wanna transfer files from my windows pc to linux server.
suppose i have a file structure like this:
img /
logo.gif
css /
style.css
index.php
i tar.gz the directory, then upload, and then tar-xvzf the uploaded file. but the result is 3 file in root like this:
imglogo.gif
cssstyle.css
index.php
when i use zip instead of tar.gz it breaks the structure. i.e. it unzip some directories as empty files. fr examples it makes an empty file named img.
what's the reliable solution to transfer files between windows and linux?
View 1 Replies
View Related
Nov 20, 2010
I am trying to set up a dedicated gaming server, but I can't seem to get the unzip software to install
Code:
sudo apt-get install unzip E: Package 'unzip' has no installation candidate I have scoured Google for an answer to this, but nothing seems to work. Did something change between 9.10 and 10.10? Or are things done very differently between the Server and Desktop versions of Ubuntu?
View 4 Replies
View Related
Mar 7, 2010
My efforts to install the new Firefox3.6: are going nowhere (literally, it seems)! After entereing: $ tar xvjf firefox-3.6.tar.bz2 on my linux box: [GCC 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)] on linux2 the end result comes to nothing. What I should (why would it be different from any other install?) end up with is a new directory "firefox3.6" or something very similar. I don't. I get nothing. Nadda. Once I hit the "tar xvjf..." button, I get the usual 'print (to screen)' flurry of activity. A sample:
firefox/modules/SpatialNavigation.js
firefox/modules/FileUtils.jsm
firefox/README.txt
firefox/libplc4.so
firefox/application.ini
firefox/searchplugins/
firefox/searchplugins/answers.xml
firefox/searchplugins/google.xml
But, I'll be darned if I can find all of this afterward. There certainly was not (as I've noted) a new directory created:
[Code]....
The "firefox/" directory that is part of the above listing? Notice the <Jan 15> date. Obviously an effort from another time. The listing [above] was generated with "ls -t", so the most recent activity is at the top. I simply can't find all the unpacked stuff that was generated with tar. I've looked in /home/.mozilla, tried "locate", all to no avail. "Google" can't seem to understand the problem I'm encountering. Who'd care to tackle this on this beautiful (snow free!!) Sunday morning?
View 4 Replies
View Related
May 6, 2010
trying to unzip only 1 directory in my .zip file, the reason is that i don't have enough space to unzip all the contents of .zip file. and i am trying to do it with unzip command.
View 4 Replies
View Related
Feb 25, 2010
I have a problem where I have certain foo.tgz files that are to big to gunzip in a directory, the box that it is on has limited space in /var/tmp for all intents and purposes. I did the standard gunzip -l to see how big the file was.
How can I look in the .tgz to see what files are there and pull out only the ones that I need. tar -t foo.tgz doesn't seem to work or am I doing something wrong?
Once I do find the file how do I only extract the one file from the .tgz, remember I can't uncompress the entire foo.tgz
View 14 Replies
View Related
Nov 29, 2010
Below is my code to create *.bz2 file.
<?php
//Moving file to temporary directory for compression
move_uploaded_file($_FILES["file"]["tmp_name"],"c:/" . $_FILES["file"]["name"]);
$url="c:/".$_FILES["file"]["name"];
//File compression
[Code]....
Anyone know, how to unzip the file ? I've tried the above code to unzip it but it creates only 1kb of file for any files.
View 3 Replies
View Related
Oct 19, 2010
I have loaded ubuntu 8.2 on to pc. All went fine and I downloaded kaffeine, i think, in a zip form. How do I unzip it then install it to program file. I also need a translator from windows xp to ubuntu as all the terms are new and different.
View 3 Replies
View Related
May 6, 2011
So I have a script that simply unzips a file with a line:
unzip /path/to/file.zip
which unzips and puts the unzipped directory in the same directory as my script. The issue is, I want the unzipped directory to be in the same directory as the original zipped file.
I googled and found the -d flag which would let me specify what directory to put it in but the script asks the user to define the directory so I don't see how I could use that (because the user specifies the path all the way to the zipped file, not just the directory where the zipped file is)
View 2 Replies
View Related
Jan 26, 2010
I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
This is unacceptable for a script.I need an option to force unzip to overwrite the files.I did not find in the man page nor with Google.
View 1 Replies
View Related
Aug 7, 2010
Ubuntu 10.04 LTS - the Lucid Lynx
Dual Boot with Windwos Vista
Level - beginner (started today 07/0810)
I have just given Linux a try for the first time and so far its not proving to be a good experience. I have so far just tried to install a couple of basic programs I am familiar with and ones suggested by Lifehacker.I wanted to install Tweetdeck, which meant installing Adobe Air. I duly downloaded Adobe Air but it then says I need to choose an application to open it. Assuming that the bin file was a zip file I looked in the software centre and found 7zip. Told it to load that but then couldn't find where it was. Its not listed in the Applications drop down (top right) so I found 'search for a file' and entered *7zip* to be shown 5 files. All but one appear to be a form of image file the other (7zip.desktop) isn't an exe either. Double clicking on it just gets me the following in something called gedit.
Name=7zip
Comment=7zip compression/uncompression tool
Terminal=false
Type=Application
[code].....
I then gave up and used google to find the program and download it, but just came across the same problem. Why oh why is there not some default program already loaded for unzipping files? How can I find 7Zip (I have already looked in the bin folder on the system drive but nothing there) and run it to tell it to make itself the default for unzipping files?
View 6 Replies
View Related
Apr 11, 2010
I encountered a problem when i tried to unzip a large .zip file ( about 7.8G). Below is the error message i got from shell. Could any guy help to look into this problem? How can i fix it
Code:
unzip VMImageV6.zip
Archive: VMImageV6.zip
[code]....
View 2 Replies
View Related
Feb 8, 2011
I have an epub book that is mostly text. I realize that with some effort I can unzip the epub file and view the content in lynx. Is there a better way to read a text-centric epub at the console?
View 2 Replies
View Related
Dec 5, 2010
I was wondering, being a former Ubuntu user I was able to do cloud computing using Ubuntu One. Is there anything similar in OpenSUSE?
View 9 Replies
View Related