I added a comment form to the foot of this page. You can ask stuff there, leave comments, that kind of thing. I don't expect it to get too busy; corzoogle just works.
When I load corzoogle in my browser I get a 403 error. What's up?
Mac OSX user? It sounds like you unzipped corzoogle somewhere, perhaps on a network
volume, and then moved it into place on your local machine. Often, when moving files
across volumes like this, file permissions get altered, tightened. And the mac webserver is
pretty strict about file permissions; generally a good thing.
What to do is, open the file's "get info" (right click the file) in the Finder, and set permissions to read/write for all catagories ( owner / group / others (world) ), or do..
chmod 755 /path/to/corzoogle.php
..in a shell/terminal session (as root).
If you unzip corzoogle on the same volume (preferably right in the folder where it will live) there is much less chance of its file permissions being reset like this, they will remain at the factory (my iMac) default.
The above probably applies to any script you download and install from corz.org
Is my Language supported?
aka. "Can I use such-and-such a character?"
A recent email response sums up the whole matter..
> Hi!
>
> (lots of stuff about how great corzoogle is ..snipped.. *grin*)
>
> Is there any way to make corzoogle include the swedish characters å, ä and ö
>
> Thanks!
>
> *non-english person*
>
There is a way, but currently it's not pretty. I've had similar requests from Hungary, Estonia, Russia and a few other places, and I'm currently looking into full Unicode search support, which should hopefully cover everyone's needs. Sadly, php itself has only recently acquired "full" Unicode support, and older servers (like my host) just choke on it. Unicode handling is also slow.
The alternative (if plan A fails) is to have some kind of plug-in language support, and if I go this way, I will *definitely* be in touch at the early testing stage!
Now here's the really fun answer..
corzoogle ALREADY DOES!
It all depends on your server setup, and the encoding of the documents you are searching. I do know that corzoogle is installed on some *really* foreign sites, and they get results in everything from Arabic to Swahili! It just works, and no one says a word!
Right now (as a wee test) I added the word "öändersonå" to my main title page, and then corzoogled for it. See the attached jpeg. Weird huh?
Try this..
In the main .htaccess file of your site, add the line..
php_value default_charset utf-8
If, for some reason, you don't have access to the .htaccess file (now that's ironic) you could add a line to corzoogle itself, up near the top of the script, this..
ini_set('default_charset','utf-8');
might just make it all happen. I'll probably put that in the next release. (done, and just wait for the screams!) Please let me know how that works out, and thanks for caring about corzoogle!
...Or could I just change the search text box to dropdowns in the corzoogle code?
That'd probably be a lot easier!
Is that possible?
- R
cor - 18.11.05 1:27 pm
erm - insert apologies for effin gmx mail server - so that's why it's been so quiet these last few days - damn, I wish I could still speak German! - yup. The form itself is self-contained (see functions at foot) so you could mess with that without fear of messing up corzoogle itself (you'll have a backup too, of course).
There are loads of ways to run things. Essentially, corzoogle searches and returns the results. You can do this in lots of ways, embedded, in an iframe, whatever you like. I saw one site using a drop-down to fire corzoogle, it was javascript, there was no need to even hit submit, it just shot off, but I'll be darned if I can find that URL.
Feel free to get back with more specifics, there will be a way.
;o)
(or
Rikel - 18.11.05 3:50 pm
Putting in the dropdowns themselves is no problem, it's making sure that corzoogle picks up everything from them is what concerns me.
I'd have to keep the name="q", wouldn't I? I see that's used later. How can I then be sure this captures the options from *both* dropdowns?
Thanks for spoon-feeding me on this.
- R
cor - 19.11.05 3:38 pm
Well, corzoogle will only use the "q" variable (you could easily change that), but *all* named elements will be available as variables in your target page. "capturing" and using them is up to you, or rather, the target script (container page).
For instance, if you had a form with two dropdowns. The first is the query term (named "q", value is whatever they choose), and the second is something else, say, a list called "other". When the user submits the form, "q" AND "other" will be available in the target page, their values being whatever was set by the user. corzoogle will use the "q" part, you can use the other variables however you like.
Grab this and use it as your target page for testing. It will show you exactly what variables are arriving at the page, and what their values are, along with lots of other potentially useful information.
If you need more help, paste in the actual HTML code you are using.
for now..
;o)
(or
Rikel - 21.11.05 2:58 pm
Right, so corzoogle wouldn't search by the 2nd dropdown term - unless I assigned it another variable and told corzoogle to look at that, too.
OK, let me think about that...
- R
sushma - 02.12.05 10:41 am
it only searches for files names with certain extensions.it would not search for a word which is present in those files.it would be better if we can search a term in all files and retun the files corresponding to that.what exactly i'm talking is like microsoft indexing service functionality in asp.net.
-chowdary
cor - 02.12.05 12:13 pm
sushma, I'm not sure I understand what you mean.
I think what you are saying is that corzoogle should seacrh *all* files regardless of the extension, but that sounds like security insanity!
;o)
(or
ps.. by the way, it would take about three second's hacking to get corzoogle to do that! But why oh why?
Nathan - 16.12.05 4:18 am
Hi again,
I ended up getting multiple pages to work withought using multiple files. There is one small error that i know of but it doesn't effect it too much. If you want to see the code changes just let me know. Here's the url again http://www.themeofthebible.com/misc/search.php
cor - 16.12.05 11:28 am
Heh, yeah, that's nice. You are running the search for *every* page, yeah? I'd considered this approach, but really I guess the idea of running the search all over again just to show the next "page" of results seems wasteful to me. This saves in other areas, of course.
But corzoogle is fast, and clearly its fast enough to make this a feasible option at least on small to medium sized sites, the results are cached in the server's ram, so this might actually be a good way forward. Hmm. Certainly I reckon it could be an option. Nice work!
And Yes! Of course I want to see your code! If anyone does *anything* to corzoogle, I want to see the code!
;o)
(or
ps.. what's the small error? perhaps I could look into it.
Nathan - 18.12.05 2:10 am
Did you want me to post the changes here or somewhere else?
There is something wrong with the code tags. At least on my computer.
cor - 24.12.05 2:04 am
Oh, mail that! It's noisy here. I'll take a look at your code tags, too. A second pair of eyes is always useful.
;o)
(or
[ edit - oops! what was I telling folk about posting comments on the dev mirror! ]
Mardi - 10.04.06 11:42 am
Hi!
I just get start with corzoogle. I don't know if corzoogle works with Khmer Unicode?
Best regard,
Mardi
LPetri - 02.10.07 6:24 pm
Hi,
I am using Corzoogle and loving it! Do you know if it will work with PHP5? My server is about to upgrade.
Thanks!
cor - 02.10.07 8:08 pm
Cool! As to your question..
Good question! I moved to a php5 server last week, and before corzoogle would work, I had to..
do nothing at all. Yup, it works great.
for now..
;o)
(or
ps. new update coming soon, as well as a corzoogle XHTML overhaul (but first I'll need to do that to this area of the site, which for some reason, I'm leaving until last).
Simon - 29.11.07 11:16 pm
Can't download, it complains I don't have cookies enabled - but I do! This is in Firefox and IE.
cor - 03.12.07 10:18 am
Aye, that was a bug with the recent distro machine beta (always the latest version of everything running here at the .org, bugs and all!). It's now fixed.
It was still possible to download from the main distro machine menus in /engine (as many seem to have), just not the embedded menus, like on the corzoogle download page.
By the way, the beta is the recommended version (as running here), not just for the XHTML-goodness. It will likely become the main release, as soon as I get time to do that.
;o)
(or
ps. Apologies for not replying sooner - recovering from hardware failure.
Nicholas Pratt - 04.01.09 9:21 pm
Hello:
I installed Apache with these settings:
- Installed apache_2.2.11-win32-x86-no_ssl-r2.msi
- Server settings:
- Network Domain: localhost
- Server Name: localhost
When I go to http://localhost/ it says "It Works"
I installed corzoogle.php within my Administrator directory. It was initially set to be readable with Dreamweaver so I changed the program association to Notepad.
How do I access the Corzoogle search script on my local computer? When I go to C:\Documents and Settings\Administrator\corzoogle.php it brings up the script text but no search box. What search path or method should I use?
Thanks,
Nicholas
cor - 04.01.09 11:36 pm
Hi.
corzoogle is a php script, which means it needs to be processed by the php engine, rather than simply rendered by a web browser, like HTML is. As you have discovered, this would only get you the source code in plain text.
First, you need php running on the web server, if it isn't already; download the Windows installer from the php site, and install it. Restart your Apache server. Then simply navigate (with your web browser) to..
http://localhost/corzoogle.php
That assumes you dropped corzoogle in the root of your server, and it's still named corzoogle.php. If it's in a folder called, for example, admin, you would obviously instead go to..
http://localhost/admin/corzoogle.php
And so on. On a completely different subject..
Your Explorer file associations were probably altered when you installed Dreamweaver. I'm not familiar with the tool (because I don't like wysiwyg web coding) but I'd wager it's superior to Notepad, and you obviously use it anyway … Why not leave the association as it is?
If you do prefer to edit php files in a plain text editor - something I wholeheartedly recommend, by the way - Notepad isn't going to cut it. There are some excellent editors around. I recommend a few here.
At the very least, you want something that does Syntax Highlighting. Otherwise, you are very likely to make errors when coding php, setting your corzoogle preferences, etc.
Good luck!
If you have any issues installing corzoogle, feel free to get back here with more details.
for now..
;o)
(or
p.s. The "It Works" page is standard on all new Apache installs. Drop an index.php file (or index.html, or index.htm) in there, and you'll get that, instead.
Macy - 21.07.09 9:36 am
Hi. I'm using this at my site where it's working very well. Thank you! I want to use it at home but I'm not having a lot of luck setting it up. Is this even doable? I have Apache running on my computer and it works ok. It's Ubuntu. I want to search inside my home folder. thanks!
Best. Macy
cor - 21.07.09 7:41 pm
Hi Macy.
Yes, it's doable! So long as Apache is running with php, corzoogle will run, too. I have it doing exactly what you want on my Kubuntu (Jaunty) laptop, so these instructions should be fairly accurate..
First, create a virtual host for your home folder.
As you have complete control of the server (it's your machine!) it makes sense to give your home folder its own virtual host. In (K)ubuntu, you simply add a config file into /etc/apache2/sites-enabled/. Name the file anything you like, here's mine..
<VirtualHost *:80>
ServerName tobi
DirectoryIndex index.php index.html
ServerAdmin admin@tobi
DocumentRoot /home/cor
<Directory /home/cor/>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
ErrorLog /home/cor/.apache2/error.log
LogLevel warn
CustomLog /home/cor/.apache2/access.log combined
</VirtualHost>
There's not much to it; it's a basic virtual host accessible only from the local machine. Rename corzoogle.php to index.php and drop it directly into your home folder. Ensure it is world-readable (chmod 644 ~/index.php), and then restart Apache.
My laptop's host name is "tobi", and as I don't use that for any other web server, typing tobi into my web browser takes me directly to my corzoogle "desktop search", just like that!
Have fun!
;o)
Cor
Smokey - 12.02.10 2:36 pm
First i got to say: i love this script, it does *almost* everything i want for the site i'm creating.
What i've done so far with the script:
I've modified some of the search parameters so it also looks into exif data, so the script also finds images. (since the site is going to be used for photography, thats an important bit)
Edited the look of the resultspage using css.
Added a "back" button on the results page (since i wanted corzoogle to be on a page of it's own, but not open in a new window) to return to the main-site.
Translated the pages to dutch (since most viewers of the site will be dutch)
Now i'm trying to expand on the script abit but am having alot of trouble with it since im not a PHP-kind of guy (basically i stick to using html)
i'd like to know if it is possible to allow thumbnails to be implemented into the resultsnippets so u get to see the image it found..
...Or could I just change the search text box to dropdowns in the corzoogle code?
That'd probably be a lot easier!
Is that possible?
- R
erm - insert apologies for effin gmx mail server - so that's why it's been so quiet these last few days - damn, I wish I could still speak German!
There are loads of ways to run things. Essentially, corzoogle searches and returns the results. You can do this in lots of ways, embedded, in an iframe, whatever you like. I saw one site using a drop-down to fire corzoogle, it was javascript, there was no need to even hit submit, it just shot off, but I'll be darned if I can find that URL.
Feel free to get back with more specifics, there will be a way.
;o)
(or
Putting in the dropdowns themselves is no problem, it's making sure that corzoogle picks up everything from them is what concerns me.
I'd have to keep the name="q", wouldn't I? I see that's used later. How can I then be sure this captures the options from *both* dropdowns?
Thanks for spoon-feeding me on this.
- R
Well, corzoogle will only use the "q" variable (you could easily change that), but *all* named elements will be available as variables in your target page. "capturing" and using them is up to you, or rather, the target script (container page).
For instance, if you had a form with two dropdowns. The first is the query term (named "q", value is whatever they choose), and the second is something else, say, a list called "other". When the user submits the form, "q" AND "other" will be available in the target page, their values being whatever was set by the user. corzoogle will use the "q" part, you can use the other variables however you like.
Grab this and use it as your target page for testing. It will show you exactly what variables are arriving at the page, and what their values are, along with lots of other potentially useful information.
If you need more help, paste in the actual HTML code you are using.
for now..
;o)
(or
Right, so corzoogle wouldn't search by the 2nd dropdown term - unless I assigned it another variable and told corzoogle to look at that, too.
OK, let me think about that...
- R
it only searches for files names with certain extensions.it would not search for a word which is present in those files.it would be better if we can search a term in all files and retun the files corresponding to that.what exactly i'm talking is like microsoft indexing service functionality in asp.net.
-chowdary
sushma, I'm not sure I understand what you mean.
I think what you are saying is that corzoogle should seacrh *all* files regardless of the extension, but that sounds like security insanity!
;o)
(or
ps.. by the way, it would take about three second's hacking to get corzoogle to do that! But why oh why?
Hi again,
I ended up getting multiple pages to work withought using multiple files. There is one small error that i know of but it doesn't effect it too much. If you want to see the code changes just let me know. Here's the url again http://www.themeofthebible.com/misc/search.php
Heh, yeah, that's nice. You are running the search for *every* page, yeah? I'd considered this approach, but really I guess the idea of running the search all over again just to show the next "page" of results seems wasteful to me. This saves in other areas, of course.
But corzoogle is fast, and clearly its fast enough to make this a feasible option at least on small to medium sized sites, the results are cached in the server's ram, so this might actually be a good way forward. Hmm. Certainly I reckon it could be an option. Nice work!
And Yes! Of course I want to see your code! If anyone does *anything* to corzoogle, I want to see the code!
;o)
(or
ps.. what's the small error? perhaps I could look into it.
Did you want me to post the changes here or somewhere else?
There is something wrong with the code tags. At least on my computer.
Oh, mail that! It's noisy here. I'll take a look at your code tags, too. A second pair of eyes is always useful.
;o)
(or
[ edit - oops! what was I telling folk about posting comments on the dev mirror!
Hi!
I just get start with corzoogle. I don't know if corzoogle works with Khmer Unicode?
Best regard,
Mardi
Hi,
I am using Corzoogle and loving it! Do you know if it will work with PHP5? My server is about to upgrade.
Thanks!
Cool! As to your question..
Good question! I moved to a php5 server last week, and before corzoogle would work, I had to..
do nothing at all.
for now..
;o)
(or
ps. new update coming soon, as well as a corzoogle XHTML overhaul (but first I'll need to do that to this area of the site, which for some reason, I'm leaving until last).
Can't download, it complains I don't have cookies enabled - but I do! This is in Firefox and IE.
Aye, that was a bug with the recent distro machine beta (always the latest version of everything running here at the .org, bugs and all!). It's now fixed.
It was still possible to download from the main distro machine menus in /engine (as many seem to have), just not the embedded menus, like on the corzoogle download page.
By the way, the beta is the recommended version (as running here), not just for the XHTML-goodness. It will likely become the main release, as soon as I get time to do that.
;o)
(or
ps. Apologies for not replying sooner - recovering from hardware failure.
Hello:
I installed Apache with these settings:
- Installed apache_2.2.11-win32-x86-no_ssl-r2.msi
- Server settings:
- Network Domain: localhost
- Server Name: localhost
When I go to http://localhost/ it says "It Works"
I installed corzoogle.php within my Administrator directory. It was initially set to be readable with Dreamweaver so I changed the program association to Notepad.
How do I access the Corzoogle search script on my local computer? When I go to C:\Documents and Settings\Administrator\corzoogle.php it brings up the script text but no search box. What search path or method should I use?
Thanks,
Nicholas
Hi.
corzoogle is a php script, which means it needs to be processed by the php engine, rather than simply rendered by a web browser, like HTML is. As you have discovered, this would only get you the source code in plain text.
First, you need php running on the web server, if it isn't already; download the Windows installer from the php site, and install it. Restart your Apache server. Then simply navigate (with your web browser) to..
http://localhost/corzoogle.php
That assumes you dropped corzoogle in the root of your server, and it's still named corzoogle.php. If it's in a folder called, for example, admin, you would obviously instead go to..
http://localhost/admin/corzoogle.php
And so on. On a completely different subject..
Your Explorer file associations were probably altered when you installed Dreamweaver. I'm not familiar with the tool (because I don't like wysiwyg web coding) but I'd wager it's superior to Notepad, and you obviously use it anyway … Why not leave the association as it is?
If you do prefer to edit php files in a plain text editor - something I wholeheartedly recommend, by the way - Notepad isn't going to cut it. There are some excellent editors around. I recommend a few here.
At the very least, you want something that does Syntax Highlighting. Otherwise, you are very likely to make errors when coding php, setting your corzoogle preferences, etc.
Good luck!
If you have any issues installing corzoogle, feel free to get back here with more details.
for now..
;o)
(or
p.s. The "It Works" page is standard on all new Apache installs. Drop an index.php file (or index.html, or index.htm) in there, and you'll get that, instead.
Hi. I'm using this at my site where it's working very well. Thank you! I want to use it at home but I'm not having a lot of luck setting it up. Is this even doable? I have Apache running on my computer and it works ok. It's Ubuntu. I want to search inside my home folder. thanks!
Best. Macy
Hi Macy.
Yes, it's doable! So long as Apache is running with php, corzoogle will run, too. I have it doing exactly what you want on my Kubuntu (Jaunty) laptop, so these instructions should be fairly accurate..
First, create a virtual host for your home folder.
As you have complete control of the server (it's your machine!) it makes sense to give your home folder its own virtual host. In (K)ubuntu, you simply add a config file into /etc/apache2/sites-enabled/. Name the file anything you like, here's mine..
<VirtualHost *:80> ServerName tobi DirectoryIndex index.php index.html ServerAdmin admin@tobi DocumentRoot /home/cor <Directory /home/cor/> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> ErrorLog /home/cor/.apache2/error.log LogLevel warn CustomLog /home/cor/.apache2/access.log combined </VirtualHost>There's not much to it; it's a basic virtual host accessible only from the local machine. Rename corzoogle.php to index.php and drop it directly into your home folder. Ensure it is world-readable (chmod 644 ~/index.php), and then restart Apache.
My laptop's host name is "tobi", and as I don't use that for any other web server, typing tobi into my web browser takes me directly to my corzoogle "desktop search", just like that!
Have fun!
;o)
Cor
First i got to say: i love this script, it does *almost* everything i want for the site i'm creating.
What i've done so far with the script:
I've modified some of the search parameters so it also looks into exif data, so the script also finds images. (since the site is going to be used for photography, thats an important bit)
Edited the look of the resultspage using css.
Added a "back" button on the results page (since i wanted corzoogle to be on a page of it's own, but not open in a new window) to return to the main-site.
Translated the pages to dutch (since most viewers of the site will be dutch)
Now i'm trying to expand on the script abit but am having alot of trouble with it since im not a PHP-kind of guy (basically i stick to using html)
i'd like to know if it is possible to allow thumbnails to be implemented into the resultsnippets so u get to see the image it found..
regards;
Smokey