1

I would like to run ogr2ogr in exec() function. How to do it? I installed GDAL and I can run ogr2ogr using GDAL Command Prompt but can't use it in exec(). Im using XAMPP and I tried to find some libraries which I can add, but didn't find anything like that.

wtk13
  • 387
  • 1
  • 6
  • 15
  • running through exec() might require that `ogr2ogr` can be found by php, check your (php's) path. I.e if `system('which ogr2ogr')` doesnt print anything, its not findable by php; `php > system('which foobar');` which: no foobar in (....) `php > system('which ls');` /usr/bin/ls – birdspider Jul 21 '15 at 14:41
  • watch your permissions too. likely need write access. – user1269942 Dec 22 '15 at 01:56

0 Answers0