exec() Silent Death

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ashore

    exec() Silent Death

    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:\\Progra m Files\\FWTools\ \ogr2ogr-f \"MapInfo File\" f:\
    \out2.mif f:\\tgr24001\\t gr24001cty00.sh p");

    Any help will be appreciated. -AS

  • gosha bine

    #2
    Re: exec() Silent Death

    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:\\Progra m Files\\FWTools\ \ogr2ogr-f \"MapInfo File\" f:\
    \out2.mif f:\\tgr24001\\t gr24001cty00.sh p");
    >
    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

    Comment

    Working...