By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

exec() Silent Death

P: n/a
Under Win32/Vista, PHP 5, I have a batch of files to convert and I'm
trying to script that in PHP.

The following fails silently - while the hand-entered version - sans
the escapes of course - works. (I've tried system(), and added an
output parameter for debug, but still a silent death.

exec ("C:\\Program Files\\FWTools\\ogr2ogr-f \"MapInfo File\" f:\
\out2.mif f:\\tgr24001\\tgr24001cty00.shp");

Any help will be appreciated. -AS

May 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ashore wrote:
Under Win32/Vista, PHP 5, I have a batch of files to convert and I'm
trying to script that in PHP.

The following fails silently - while the hand-entered version - sans
the escapes of course - works. (I've tried system(), and added an
output parameter for debug, but still a silent death.

exec ("C:\\Program Files\\FWTools\\ogr2ogr-f \"MapInfo File\" f:\
\out2.mif f:\\tgr24001\\tgr24001cty00.shp");

Any help will be appreciated. -AS
Add "2>&1" to your command line and see what it says

--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
May 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.