I'm not configuring PHP to work with PostGIS. So, when I try in PHP:<div><br></div><div>require_once 'postgresqlConnect.php';  //make a connection to the database</div><div>pg_query("CREATE TABLE polygon_test (p1 st_geometry)");</div>
<div><br></div><div>I get:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>Warning</b></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">: pg_query() [</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><a href="http://localhost/processDatabase/function.pg-query">function.pg-query</a></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">]: Query failed: ERROR: type "st_geometry" does not exist LINE 1: CREATE TABLE polygon_test (p1 st_geometry) ^ in</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\processDatabase\fillPostgresTable.php</b></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">on line</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>51</b></span></div>
<div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><br></b></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><span class="Apple-style-span" style="font-weight: normal; font-family: arial; font-size: small; ">I can use PgAdminIII and use st_geometry. With PHP I've added the PostgreSQL bits so I can access the database.</span></b></span></font></div>
<div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><span class="Apple-style-span" style="font-weight: normal; font-family: arial; font-size: small; "><br>
</span></b></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><span class="Apple-style-span" style="font-weight: normal; font-family: arial; font-size: small; ">What I'm missing  is the bits I've got to add to php.ini extensions. There are probably some PostGIS dlls that I'm missing as well to make PHP happy.</span></b></span></font></div>
<div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><span class="Apple-style-span" style="font-weight: normal; font-family: arial; font-size: small; "><br>
</span></b></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: medium;"><b><span class="Apple-style-span" style="font-weight: normal; font-family: arial; font-size: small; ">If someone could point me in the right direction for getting PHP to work with PostGIS, I'd appreciate it.</span></b></span></font></div>
<div><br></div>