Reply to Re: exec() and zip

Your name:

Reply:


Posted by Jerry Stuckle on 11/09/06 05:47

Ike wrote:
> I have zip.exe in my PATH on a windows XP box. Additionally, I have a script
> which, if I execute locally with
>
> php myfile.php
>
> it runs fine. However, when I call myfile.php remotely with a web browser,
> it canot seem to find zip.exe. Below are the releveant code snippets. TIA,
> Ike
>
> exec( "zip -mj \backups\temp\cookbook.zip \backups\temp\cookbook.sql 2>&1",
> $output, $res );
> if( $res > 0 ) {
> error( true,"COMPRESSION FAILED\n".implode( "\n", $output));
>
> COMPRESSION FAILED
> The system cannot execute the specified program.
>
>

Does the userid the web server is running under have access to zip?
Check your security settings.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация