Menu

doc contained no data error

Help
Neil Jolly
2000-11-23
2000-11-23
  • Neil Jolly

    Neil Jolly - 2000-11-23

    Installed ok after reading bug report, but when testing I get a document contained no data error. I'm running Apache 1.3.12 w/ php-4.0.2 on yellowdog linux (ppc). I suspect I'm getting screwed up with the config file, but can't seem to figure out where. Here's what I've got:
    $ptconf["wwwdir"]     = "/home/httpd/html";
    $ptconf["indexbase"]     = "/myphpPagetool";
    $ptconf["indexname"]     = $ptconf["indexbase"] . "/index.php";
    $ptconf["ptbase"]     = $ptconf["indexbase"] . "/myphpPagetool";

    Apache's doc base is /home/httpd/html
    myphpPagetool is at: /home/httpd/html/myphpPagetool/index.php

    If anyone has any ideas, or requires more info I'll be happy to comply.

     
    • Sebastian Bunka

      Sebastian Bunka - 2000-11-23

      OK, I know my documentation is not clear enough - I'll make it better in the next release!
      $ptconf["indexbase"] = "/myphpPagetool";
      -> This is location of the directory where the index file is located relative to the web tree = OK
      $ptconf["indexname"] = $ptconf["indexbase"] . "/index.php";
      -> This is the name of your index file (You could call it maybe index3.php if you like ...) = OK
      $ptconf["ptbase"] = $ptconf["indexbase"] . "/myphpPagetool";
      -> This is the directory of the myphpPagtool directory relative to the web tree; if you are running your index file from within myphpPagetools directory it must be set to:
         $ptconf["ptbase"] = $ptconf["indexbase"];
      (In your case the ptbase will look for /myphpPagetool/myphpPagetool/ ...)

      I'll make it more clear in the next release; Reason for all this bases etc. are that you can have index.php for instance in the web root, and the myphpPagetool directory called xPage in /secret/members/only/xPage.

      I hope it helps you,

      Sebastian

       

Log in to post a comment.

MongoDB Logo MongoDB