Mercurial > hg > ywww
diff php/read/getBookDetails.php @ 44:38d209611508
change includes to assume (contra previos ASSUMES) that we have .user.ini which adds /var/test to include_path
author | Charlie Root |
---|---|
date | Sun, 06 Jan 2019 07:17:03 -0500 |
parents | dbc006408d2b |
children | b7376319d25a |
line wrap: on
line diff
--- a/php/read/getBookDetails.php Sat Jan 05 18:00:10 2019 -0500 +++ b/php/read/getBookDetails.php Sun Jan 06 07:17:03 2019 -0500 @@ -1,7 +1,7 @@ <?php -include_once "dlog.php"; +include_once "ywww/dlog.php"; -include_once "web.php"; +include_once "private/web.php"; function findGenre($browseNode, &$ID, &$gen) { if($browseNode->Name == "Subjects") @@ -61,7 +61,7 @@ $output .= "<BookDetails>"; $proceed = true; - include "../../../private/db.php"; + include "private/db.php"; $query = "CALL b_getBookInfo('$isbn', $loc)"; //select Timestamp,Title,Author,Binding,DeweyDecimal,ImageURL,SalesRank,PublicationDate,Publisher,Genre1,Genre2,Genre3 from books where ISBN = '$isbn'"; @@ -107,7 +107,7 @@ if($proceed == true) { include "aws_signed_request.php"; - include_once "../../xml/doAmazonRequest.inc"; + include_once "../../xml/doAmazonRequest.php"; dl("nbd proceeding: $isbn\n"); //book does not exist already so look up all the info from browse nodes.... @@ -155,7 +155,7 @@ dl("Caught one bd: $isbn\n"); dl(print_r($out, TRUE)."\n"); } ); - include "db.php"; + include "private/db.php"; $title=""; $author="";