Jump to content

Local Path Question.


sketchfly

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.