Jump to content

Recommended Posts

When attempting to access my php bible database I get Sorry, can't find Book "bible.php".

 

http://www.statementoffaith.org/bible.php

 

I believe 7 lines down "Where the script lives on the disk" is wrong. Though this is the path online where the Bible folder is that holds the bible books. Also, I noticed the individual book info inside the Bible folder does not contain file extensions. Is this common? Thanks.

 

$config["URI_prefix"] = "http://pawlowskifamily.net/bible/"; //Where the script lives on the web.

$config["script_suffix"] = "bible.php/"; //The name of the main script. (It may seem strange that this should end in a '/', but that is indeed the case.)

$config["local_prefix"] = "/htdocs/bible/"; //Where the script lives on the disk.

$config["bible_midfix"] = "/statementoffaith.org/bible/"; //The directory that the bible data is in. ($config["local_prefix"] . $config["bible_midfix"])

$config["themes_midfix"] = "themes/"; //The directory that the bible data is in. ($config["local_prefix"] . $config["bible_midfix"]) 

 

Link to comment
https://forums.phpfreaks.com/topic/64738-local-path-question/
Share on other sites

Perhaps not all of them should begin with a slash.  Because if I understand correctly, you are combining some of these values later on in the script. So you might end up with something like:

 

/htdocs/bible//statementoffaith.org/bible/themes/

 

So, either take the slash off of the end of //Where the script lives on the disk or take the slash off the beginning of //The directory that the bible data is in.

 

 

Oh, and you should put that code in

 tags 
Link to comment
https://forums.phpfreaks.com/topic/64738-local-path-question/#findComment-322856
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.