Use exec() and get any output that may be happening.
I also suspect that the PATH you are using isn't a TRUE path, but some
hacked up thing from your webhost.
Look at the output of <?php phpinfo();?> in biblioteca and see what
PHP thinks is the current working directory.
I had one webhost where some kind of chroot jail thingie made the
paths look completely different in FTP, shell and PHP...
On Mon, February 18, 2008 4:32 pm, Petrus Bastos wrote:
> I've tried without success...
>
> system("/usr/local/bin/zip -P 1111
> /.automount/ipojuca/export/homeg03/golapa/public_html/mapdenguepe128/site/php/biblioteca/t.zip
> /.automount/ipojuca/export/homeg03/golapa/public_html/mapdenguepe128/site/php/biblioteca/biblioteca.php",$ret_val);
>
>
> On Feb 18, 2008 7:16 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>
>> In your php code you'll need the full path to biblioteca.php and to
>> t.zip and the web user will need write permissions to the dir where
>> you
>> create t.zip.
>>
>> -Shawn
>>
>> Petrus Bastos wrote:
>> > Wolf,
>> >
>> > I'm sure actually working from the command line.
>> >
>> > > /usr/local/bin/zip -P 1111 t.zip biblioteca.php
>> > adding: biblioteca.php (deflated 73%)
>> > >
>> >
>> >
>> > On Feb 18, 2008 6:37 PM, Wolf <[EMAIL PROTECTED]
>> > <mailto:[EMAIL PROTECTED]>> wrote:
>> >
>> >
>> > ---- Petrus Bastos <[EMAIL PROTECTED]
>> > <mailto:[EMAIL PROTECTED]>> wrote:
>> > > Actually, I don't know anything about FreeBSD. I never
>> used
>> > this system.
>> > > But, here my zip command works fine at command line, why
>> doesn't
>> > works with
>> > > PHP?
>> > >
>> > >
>> > <! -- SNIP -->
>> >
>> > Have you talked with your server admins about the use of zip?
>> > Sounds like you have an environment set up by a blind monkey.
>> >
>> > Are you sure the command is actually working from the command
>> line?
>> > What is the command and output?
>> >
>> > Wolf
>> >
>> >
>>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php