Let's try something...
In spiderfuncs.php, starting at line 136, see:
Code: Select all
if (mbsubstr($url, 0, 5) == "https") {
$target = "ssl://".$host;
} else {
$target = $host;
}
Add a line so it looks like:
Code: Select all
if (mbsubstr($url, 0, 5) == "https") {
$target = "ssl://".$host;
} else {
$target = $host;
}
echo $target;
Let me know what this produces. (It should be the host name.
You mentioned before using Xampp. Just curious if this in on Linux or Windows? Regardless, good choice with Xampp. I personally use MySQL but MariaDB is perfectly compatible. (The MariaDB developers were actually the ORIGINAL developers of MySQL and started MariaDB out of fears Oracle would screw up MySQL!)
Anyway, using Sphider to index a LOCAL website can be a little tricky. It CAN be done, just a little tricky as Sphider likes (demands?) there be a "http(s)" in the URL.
You mention SphiderPlus, so a bit of history. The original Sphider was written by Ando Saabas. I am GUESSING it may have been something like a graduate project or something. At any rate, he abandoned it and moved on other endeavors. There were a couple people who took up where Saabas had left off. The most notable is SphiderPlus, and it is not free. (The original Sphider was.)
As time moved on, Sphider became non-functional, as it was not being updated. SphiderPlus was being updated, but again, not for free.
I took it upon myself to update the original Sphider and have been doing so for several years. Like the original, and in the spirit of the original, it remains free.
IN MY OPINION, SphiderPlus has deviated considerably from the original. My version, while the code has changed a lot, the logic and flow is still very close to what Ando Saabas originally created.
Which version is better? That depends on each individuals opinion, and as your know, opinions are like a certain part of human anatomy, and everyone has one!
MY OPINION is that SphiderPlus is unnecessarily complex and convoluted. That being said, I do believe 5.0.0 is the best version so far. I will fix issues as they are found, but also believe in the KISS principle.