PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Spanish search and flat files (http://www.phpdig.net/forum/showthread.php?t=1342)

kiruba 09-21-2004 12:54 PM

Spanish search and flat files
 
Hi. Now I can do forum searchs, thanks.

I have phpdig installed and working, I spidered a site, but when I do a search, it doesn't show results when queried with words with spanish characters like á é Ã*, ó, ú, ñ. I've checked the keywords stored at the MySQL tables, and words like jóven are stored as joven. I read the thread about the greek language, but I think my problem is easier to fix because I use the same default iso-8859-1 charset (though, I don't know much about these charsets). So, is there anything I have to set on the config file to make it work with spanish characters?

My other question is: Is there a way to install phpdig and not use a MySQL database, say, use only flat files for everything?

vinyl-junkie 09-21-2004 07:41 PM

Quote:

Originally Posted by kiruba
I spidered a site, but when I do a search, it doesn't show results when queried with words with spanish characters

You need to specify es-language.php in config.php

Quote:

My other question is: Is there a way to install phpdig and not use a MySQL database, say, use only flat files for everything?
No. It only uses MySQL.

kiruba 09-22-2004 06:52 AM

Dynamic page
 
Thanks, I'm sure that will fix de problem. I have another question, I was trying to spider a site a friend made. I placed this URI on the form
http://www.servientrega.com.ec/index.php, with a search depth: 5 Links per: 0. I got 0 results.

Spidering in progress...
SITE : http://www.servientrega.com.ec/
Exclude paths :
- @NONE@
No link in temporary table
links found : 0
...Was recently indexed
Optimizing tables...
Indexing complete !


Can it be that the index.php file is created on the fly, this is, it has no textual links at first? This is the content of index.php on the server. It uses Smarty templates.


Code:

<?php

/*1 **************************************************************************************
 ***************************************************************************************/
 // Cargo smarty template.
   
require('lib/smarty/setup.php');
       
$smarty = new Smarty_axe;

//***************************************************************************************/

 //muestro pagina principal credito al usuario.
 $smarty->display('index.tpl');


 ?>


Thanks in advance :o

vinyl-junkie 09-22-2004 08:35 PM

Try spidering the site, specifying the search site like this instead:
http://www.servientrega.com.ec/

kiruba 09-23-2004 09:29 AM

Thanks Vinyl, but the problem persist. The funny thing is that if I spider that site from another host (say, my local PC), it spidered it nice.

I've read that by uncommenting some line at robot_functions.php, you can print the HTTP responses. I'd like to do that in order to do some debug, but I can't find that line in the code. May it be I'm using the version 1.8.3 and that thread is kind of old? How can I print the HTTP responses, and any other stuff that I can us to figure why it stops spidering when phpdig and the site are in the same host? Thanks :)

vinyl-junkie 09-23-2004 06:28 PM

You're getting way out of my area of expertise, I'm afraid. Perhaps our esteemed leader, Charter, will see your post and respond.


All times are GMT -8. The time now is 03:31 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.