title: Storing a shapefile into postgresql using PHP
body: <p>I'm trying to develop a PHP script that lets users upload shapefiles to import to a postGIS database.</p>
  
  <p>First of all, for the conversion part, AFAIK we can use <code>shp2pgsql</code> to convert the shapefile to a postgresql table; I was wondering if there is another way of doing the conversion, as I would prefer not to use the <code>exec()</code> command.</p>
  
  <p>I would also appretiate any idea on storing the data in a way that does not require dozens of uniquenamed tables.</p>