Forum Moderators: coopster

Message Too Old, No Replies

exec zipping

         

MrGecko

11:19 pm on Feb 12, 2008 (gmt 0)

10+ Year Member



Hello I'm trying to zip a file with php and exec anc I'm having no luck This command works in the command line but on php
exec(escapeshellcmd("ditto -ck --sequesterRsrc --keepParent file file.zip"));

When I do the command to unzip it works just fine it is just the command to zip
It makes the zip file but there is no data in it. it is just 0KB

[edited by: MrGecko at 11:20 pm (utc) on Feb. 12, 2008]

eelixduppy

2:53 am on Feb 13, 2008 (gmt 0)



Do you have safe-mode enabled in your php.ini configuration file?

MrGecko

4:57 pm on Feb 13, 2008 (gmt 0)

10+ Year Member



No I don't
Here is my php.ini file if you want to read it.
<snip>
If you find any thing that I should change please tell me.

[edited by: MrGecko at 5:26 pm (utc) on Feb. 13, 2008]

[edited by: eelixduppy at 7:16 pm (utc) on Feb. 13, 2008]
[edit reason] no specifc urls, please [/edit]

coopster

3:31 pm on Feb 16, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You may have to check the mac docs for reasons why the ditto command might return a zero-byte file. I'm guessing you don't have your source path correct or something along those lines.

MrGecko

3:51 pm on Feb 16, 2008 (gmt 0)

10+ Year Member



Well I'm pretty sure it is the right path because it makes the zip file in the same folder