View Full Version : How do I add the final search to my site?
Hey guys, I just purchased this software, and I indexed my offline site. It created a Search.php, settings.php, search_template.html, and a bunch of .zdat files. How do I put this into my website now? I use dreamweaver 8 if that helps. Thanks.
wrensoft
02-25-2006, 08:43 PM
There is built in FTP software in Zoom. Under the tools menu.
Or you can use 3rd party FTP software. But if you use 3rd party software make sure you upload the ALL the files and use in FTP BINARY mode and not ASCII mode.
DW8 also uses FTP for uploading files. I think DW8 is smart enough to get the mode right. So you could probably just use DW8 to do the trasfer.
-----
David
There is built in FTP software in Zoom. Under the tools menu.
Or you can use 3rd party FTP software. But if you use 3rd party software make sure you upload the ALL the files and use in FTP BINARY mode and not ASCII mode.
DW8 also uses FTP for uploading files. I think DW8 is smart enough to get the mode right. So you could probably just use DW* to do the trasfer.
-----
David
Thanks for your input. But maybe I should clarify. I know how to upload and everything. But where can I test out the actuall searching? I used this code I found on this site:
<form method="get" action="search.php">
<input type="text" name="zoom_query" size="20" />
<input type="submit" value="Search" />
Results per page:
<select name='zoom_per_page'>
<option selected="selected">10</option>
<option >20</option>
<option >100</option>
</select>
Match:
<input type="radio" name="zoom_and" value="0" checked="checked" />any search words
<input type="radio" name="zoom_and" value="1" />all search words
</form>
But when I create a PHP search, and when I test it out. When I hit submit, it prompts me if I want to save the search.php or open it up. Why does it do that?
Never mind! I got it! I thought I would be able to test the php file on my computer. But I just realized that I can't test it offline. Thanks for your help. I have another question, sorry! But what is the difference between a PHP search, and a JavaScript search? Which one do you recommend?
wrensoft
02-26-2006, 12:17 AM
JavaScript is a client side scripting language. See,
http://en.wikipedia.org/wiki/Client-side_JavaScript
http://en.wikipedia.org/wiki/Javascript
PHP is a sever side scripting language.
http://en.wikipedia.org/wiki/Php
In general PHP is a faster more powerful solution, see,
http://www.wrensoft.com/zoom/benchmarks.html
But you need PHP support on your server. This is why (as you have discovered) you can't run it on your local PC.
For the ulimate in performance you would go for the CGI however (which is not a script, it is a pre-compiled executable).
----
David
Thank you very much for the quick reply! This software is great, and worth every single penny. Thank you again.
For more information, we have a FAQ page here on what PHP, ASP, Javascript and CGI are, and how to decide which scripting platform to use:
http://www.wrensoft.com/zoom/support/platforms.html
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.