PC Playground  

Go Back   PC Playground > Support > Hosting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2004, 01:00 AM
Junior Member
 
Join Date: Nov 2003
Posts: 21
Send a message via AIM to churnopol
Default php zip support

can zip support be enabled?
Reply With Quote
  #2 (permalink)  
Old 06-10-2004, 01:13 AM
Administrator
 
Join Date: Jan 2003
Posts: 1,346
Default Re: php zip support

Quote:
Originally Posted by churnopol
can zip support be enabled?
You may upload zip files.

If you are asking if you can unzip files on the server, this is not possible.
Reply With Quote
  #3 (permalink)  
Old 06-10-2004, 04:39 AM
Junior Member
 
Join Date: Nov 2003
Posts: 21
Send a message via AIM to churnopol
Default

nevermind i found script that'll unzip it for me.
so much more easier than uploading one file at a time
Reply With Quote
  #4 (permalink)  
Old 06-12-2004, 07:38 AM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

k i guess he figured it out himself. Now time for me to go get some OJ to drink.
Reply With Quote
  #5 (permalink)  
Old 06-14-2004, 10:50 PM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

could you send me the script you used please? thanks
Reply With Quote
  #6 (permalink)  
Old 06-14-2004, 10:59 PM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 199
Send a message via MSN to novastar Send a message via Yahoo to novastar
Default

for real, that would be a handy script to have, you should zip it up and put it up for download and post the link here, or just post the link to where you got it and the name of it.
Reply With Quote
  #7 (permalink)  
Old 06-15-2004, 03:29 AM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

yeah, i need some sort of unarchiving script and some sort of mass chmodding script (one that'd chmod files 666 and folders 777--- for phpnuke)
Reply With Quote
  #8 (permalink)  
Old 06-15-2004, 05:20 AM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

ok, Mr. Know Nothing About PHP just found something out

just do the same old Linux commands inside of a shell_exec() and bam!

here's an example:

Code:
<?php // This script will create a .tar.gz of whatever file or directory you choose // Be sure this script's directory has the proper permissions // // Set $name to the file or folder name you wish to compress, // the file or folder must be inside of the folder the script is located. $name = ""; shell_exec('tar -cvf ' .$name. '.tar ' .$name. '; gzip ' .$name. '.tar'); ?>
well, its really simple. It doesn't have any idiotproofing though, it doesnt tell you if theres any specific problem (except for the default generated error).

Also, take a look at [url=http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/getting-started-guide/s1-zip-tar.html:3dzfol6l]This Link[/url:3dzfol6l] for linux compression and decompression commands :-)

Worked for me!
Reply With Quote
  #9 (permalink)  
Old 06-16-2004, 10:44 PM
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 2,018
Send a message via AIM to zoid Send a message via MSN to zoid Send a message via Yahoo to zoid
Default

here's a note about what i posted:

it leaves permissions set to the actual php script that you ran, so you need to change permissions with these commands, i'm not 100% sure what you should do.
use:
umask
chgrp
chmod

it seems as though when i did a chmod -R 777 and a chgrp -R WWW that i was able to erase things, modify them, and chmod them like normal.

the normal chmod command only changes one single file or folder; it doesn't modify contents of a folder. the workaround for this is to use the -R tag, i did a shell_exec("chmod -R 777 Path/To/Dir"); since I don't know how i would do that with the normal php chmod command.

i've been working on this for a while now, I think I have more of an idea of how to do all of these. I've successfully been able to extract zip files and gzips (.tar.gz). do a google search for the unix versions of these commands as well as the php versions, it helped me a lot and it could help you too.
tell me if you know of any more.
Reply With Quote
  #10 (permalink)  
Old 06-21-2004, 07:43 PM
Junior Member
 
Join Date: Nov 2003
Posts: 21
Send a message via AIM to churnopol
Default

you can download php unzipper here
http://www.softlinks.ru/scripts/f738.php

sorry the download site is not in english but the owner of the script site is no longer up. i know nothing about php, but this script is so easy to install and use. the only thing u need to know is how to set file and folder permissions to 777
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:02 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.