Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
spelling, formatting
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

uploading shape file Uploading shapefile to postgisPostGIS database using phpPHP

I want to insert a shape file to postgisshapefile into a PostGIS database using phpPHP.I I go through the examples and I tried the following.:

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working.Then Then in the forum  ,i I saw an instruction to add the exec($command,$out,$ret);exec($command,$out,$ret); to the above code.can Can any one explain me what is meant by $out,$ret$out,$ret variables?

uploading shape file to postgis database using php

I want to insert a shape file to postgis database using php.I go through the examples and I tried the following.

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working.Then in the forum  ,i saw an instruction to add the exec($command,$out,$ret); to the above code.can any one explain me what is meant by $out,$ret variables?

Uploading shapefile to PostGIS database using PHP

I want to insert a shapefile into a PostGIS database using PHP. I go through the examples and I tried the following:

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working. Then in the forum, I saw an instruction to add the exec($command,$out,$ret); to the above code. Can any one explain me what is meant by $out,$ret variables?

added 6 characters in body
Source Link
Bera
  • 77.8k
  • 14
  • 78
  • 188

I want to insert a shape file to postgis database using php.I go through the examples and I tried the following.

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working.Then in the forum ,i saw an instruction to add the exec($command,$out,$ret); to the above code.can any one explain me what is meant by $out,$ret variables?

I want to insert a shape file to postgis database using php.I go through the examples and I tried the following.

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working.Then in the forum ,i saw an instruction to add the exec($command,$out,$ret); to the above code.can any one explain me what is meant by $out,$ret variables?

I want to insert a shape file to postgis database using php.I go through the examples and I tried the following.

$command = 'shp2pgsql -s 2100 -d /D:\CHECK DATA-group\2016\Ayomi\JULY\12FCP151Sup88Sh99\121800151s00088s0099\CM121800151s00088s0099Poly.shp | psql -h localhost -p 5432 -d ssh -U postgres';

But it is not working.Then in the forum ,i saw an instruction to add the exec($command,$out,$ret); to the above code.can any one explain me what is meant by $out,$ret variables?

edited tags
Link
Source Link
Loading