[phplib] strange problem on first loading of page From: Faine, Mark (Mark.Faine <email protected>)
Date: 03/08/01

This script is called by a perl script that uses db-documentum to get a list
of documents from a documentum docbase, if the user does not have
permissions to download the document the perl script provides a link to this
page where they may request the document. Right now all it does it pass the
object_id of the document to this script. This script then queries an
oracle db for the document and (for now) just prints the title of the
document. A common example of a link to this script would look like this:

http://servername/web/request.php?obj_id=090033d78003e977

If I close the browser and re-open it and do a search, when I click on the
link I get an the IE cannot find server, this page cannot be displayed page,
but only the first time,
any subsequent searches, as long as the browser is open, will work just
fine.

Here is the script that is called by the above link:

<?
include ("layout.php");

page_open(array("sess" => "Repository_Session"));

  if (!isset($s)) { $s=0; };
  $sess->register("s");

site_header("Request a Document");

$object_query = new DB_Sql_Users();
$sql = "select * from dm_sysobject_s where r_object_id = '$obj_id'";
$object_query->query($sql);

while($object_query->next_record())
{
echo $object_query->f("title");
// Just a test print of the title, will put the rest in after I get this to
work correclty
}

page_close();
 
site_footer();

?>
                          

Thanks,
-Mark

_____________________________________

Mark Faine
Computer Programmer III/MTRS Administration
Cortez III/MSFC

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>