PX : code

Large objects in Pos by Alessandro Vernet
Download this code


<?
  $database = pg_Connect ("", "", "", "", "jacarta");
  pg_exec ($database, "BEGIN");
  $oid = pg_locreate ($database);
  echo ("$oid\n");
  $handle = pg_loopen ($database, $oid, "w");
  echo ("$handle\n");
  pg_lowrite ($handle, "foo");
  pg_loclose ($handle);
  pg_exec ($database, "COMMIT");
  pg_close ($database);
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.