Okay, here’s the result of more investitgation.
(1) As I mentioned in my post #12, I discovered that /home/kmorgan/public_html (the Web site where the captcha works) HAD the file php.ini, but that /home/ron/public_html (the Web site where the captcha does NOT work) did not have that file. So I copied it to the latter directory, but the captcha still did not work.
(2) I looked through the php.ini file, and it had no reference to the Web site where the captcha works. So despite being identical files, I wouldn’t think there’d be any problem with the identical file on both Web sites.
(3) Next, I created a php file with the code suggested by Mittineague in his post #16. I put the code in both public_html directories and ran the code for both Web sites.
(4) Then I (laboriously!) compared the configuration fot the two sites. There were several places where the Web site URL was listed, but somehow both configuration tables had the correct site listed.
(5) I did find some difference, howver, and they all were related to the term “PHPSESSID.” Here’s the breakdown:
rediscoveringthebible.com (where the captcha works)
The word occurs in only one line in the table headed “session.” In the line, “session-name,” PHPSESSID occurs both in the column headed “Local Value” and the column headed “Master Value.”
ammiministry.org (where the captcha does not work)
The word occurs numerous times.
(a) It appears in the line of the table headed “session” exactly as it did in the configuration for rediscoveringthebible.com.
(b) In the table headed “Environment” it appears as part of the “Value” for the “Variable” HTTP_COOKIE":
cprelogin=no; cpsession=closed; langedit=; lang=;
PHPSESSID=6a5fad68177da53dd7d79f3519d4af49
This same line appears in the configuration for rediscoveringthebible.com, but the second line is missing:
cprelogin=no; cpsession=closed; langedit=; lang=
(c) In the table headed “PHP Variables,” there are FOUR differences between the two configurations. The following two lines appear in the configuration for ammiministry.org, but neither line even occurs in the configuration for rediscoveringthebible.com:
_REQUEST["PHPSESSID"] 6a5fad68177da53dd7d79f3519d4af49
_COOKIE["PHPSESSID"] 6a5fad68177da53dd7d79f3519d4af49
In the third difference, this is the line in ammiministry.org:
_SERVER["HTTP_COOKIE"] cprelogin=no; cpsession=closed; langedit=; lang=;
PHPSESSID=6a5fad68177da53dd7d79f3519d4af49
But this is the line in rediscoveringthebible.com, again the second is missing:
_SERVER["HTTP_COOKIE"] cprelogin=no; cpsession=closed; langedit=; lang=
The fourth difference is the same as the third difference: for the variable “_ENV[“HTTP_COOKIE”],” the second line with the word “PHPSESSID” is again missing in the configuration for rediscoveringthebible.com.
I didn’t notice any other differences between the two configurations. It surprises me that there are any differences at all. How could they occur when the two accounts were set up identically at the time created on the server and when both had the same php.ini file?
But if this difference is at the root of the problem of the captcha not working for ammiministry.org, I don’t know how to change its configuration to match the one for rediscoveringthebible.com.
By the way, I have Firefox set up to allow cookies for both Web sites.
Any help would be most appreciated. Thanks.
Ken