Re: [fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Dave Dash
You bet. It's ITS/ Indexed Tokenized Stored (like most of my fields). Here's the query logic: public function executeSearch() { $query = strtolower($this->getRequestParameter('q')); $hits = array();

Re: [fw-general] Zend_Parser

2007-04-03 Thread Kevin McArthur
the new api looks like this.. $image = Zend_Pdf_Image::imageWithPath($pathtofile); It will use the new parsers and the filename (should be mime detecting) to determine what Zend_Pdf_FileParser_Image derived object to use on a Zend_Pdf_FileParserDataSource_File resource.. It was done this way s

Re: [fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Alexander Veremyev
Hi Dave, Could you describe field type used for URL (in context of this description - http://framework.zend.com/manual/en/zend.search.html#zend.search.index-creation.understanding-field-types) and give an example of search query? With best regards, Alexander Veremyev. Dave Dash wrote:

Re: [fw-general] Zend_Parser

2007-04-03 Thread Alexander Veremyev
Kevin McArthur wrote: The factory is going, but the other parsers arent ready so changing the api right now would break jpeg/tiff support and leave only png. Could we add only an API and use old implementation through this API? (So it will work as wrapper) I assume matt's GIF parser can extr

Re: [fw-general] search engine

2007-04-03 Thread Alexander Veremyev
Performance of what? ;) To talk about increasing (or decreasing) performance we should have things to compare. Relational database doesn't give full-text search capabilities. Using LIKE SQL clause can't give some features (like sorting result set by relevance) and needs full data scan (so Zen

[fw-general] Re: Re: Forwarding - Redirecting

2007-04-03 Thread Joshua Ross
Thanks Gavin, that helped to clear things up. -Joshua- "Gavin Vess" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Joshua, > > Despite the notices at the top of the Wikipedia entry, I think you will > find what you are looking for here: > > http://en.wikipedia.org/wiki/Post/Re

Re: [fw-general] Zend_Filter_Input on ZFW 0.9.1

2007-04-03 Thread Ed Finkler
On 4/3/07, Juan Felipe Alvarez Saldarriaga <[EMAIL PROTECTED]> wrote: Well, so I need to to filter all data one per one ? Cause when I was doing it with Zend_Filter_Input the result object was a protect object of the ZFW, there's a way to do this ? or just making a $this->getRequest on the Contr

Re: [fw-general] Zend_Filter_Input on ZFW 0.9.1

2007-04-03 Thread Juan Felipe Alvarez Saldarriaga
Ed Finkler wrote: On 4/3/07, Juan Felipe Alvarez Saldarriaga <[EMAIL PROTECTED]> wrote: Hey :). Im trying to migrate from ZFW 0.8 to 0.9.1 and I saw that I have a lot of issues there, for example, Zend_Input_Filter was dropped :S, so how can I filter the POST or GET methods ? cause actually im

[fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Dave Dash
So I've indexed a document that has a field called "url" filled with URLs (e.g. http://reviewsby.us/, http://spindrop.us/, http://www.nabble.com, etc, etc). I can find these in Luke just fine by searching for the url (without the http:// in fact) But in my ZSL 0.9.1 app I get nothing. If I sear

[fw-general] Zend_Filter_Input on ZFW 0.9.1

2007-04-03 Thread Juan Felipe Alvarez Saldarriaga
Hey :). Im trying to migrate from ZFW 0.8 to 0.9.1 and I saw that I have a lot of issues there, for example, Zend_Input_Filter was dropped :S, so how can I filter the POST or GET methods ? cause actually im doing something like this: class MyControllerController extends Zend_Controller_Actio

Re: [fw-general] Zend_Stream (was Zend_Parser)

2007-04-03 Thread Matthew Turland
So long as we don't end up like this... http://benjismith.net/index.php/2005/09/30/hate-frameworks ... I'm good. :)

Re: [fw-general] Zend_Stream (was Zend_Parser)

2007-04-03 Thread Kevin McArthur
Matt, So long as it works i'm very flexible. However, do take a look at the plans for improving the memory handling of zend pdf streams. Loading data from a parser, then into like 5 or 6 classes is going to suck performance (and memory) wise when using these on larger binary files. The memor

Re: [fw-general] Zend_Stream (was Zend_Parser)

2007-04-03 Thread Matthew Ratzloff
So, I was talking with Ralph and we came to the conclusion that everything I'm doing can be done using streams. Ah, streams--that dark, deserted, slightly scary corner of the PHP world. Zend_Stream_Reader seems to be a better fit, name-wise, when you look at its derivatives. Zend_Stream_Read

Re: [fw-general] Zend_Parser

2007-04-03 Thread Matthew Ratzloff
On Tue, April 3, 2007 2:39 am, [EMAIL PROTECTED] wrote: > For say, Zend_String, the interfaces and abstracts are around what one > would expect. Main difference though which might cloud the connection is > that a string can contain multi-byte characters so the method names > referring to the "byte"

Re: [fw-general] search friendly

2007-04-03 Thread José de Menezes Soares Neto
Very nice answers, but I am getting a little problem cause I am newbie in ZF. I will try your suggestion for urls like http://localhost/project/search/test But I dont know where in the project I have to put the code above (index.php? SearchController.php?): $router = $front->getRouter();

Re: [fw-general] map domain name to module

2007-04-03 Thread martin sarsale
Michael Depetrillo wrote: Hello Everyone Has anyone written any code to map a domain name to a specific module? I would like to be able to have a admin-specific-domain.com parked on top of my application and then route all requests to the admin module. H

Re: [fw-general] zend_session question

2007-04-03 Thread Gavin Vess
Hi Tomek, I proposed adding an option to disable the check for save_path previously. I attached the test patch to the issue below. If you set save_path to anything writable the exception will not occur. Setting a save_path has no effect, if you are not using the default files-based save ha

Re: [fw-general] Params

2007-04-03 Thread Matthew Weier O'Phinney
-- Ian Warner <[EMAIL PROTECTED]> wrote (on Tuesday, 03 April 2007, 04:35 PM +0100): > I am using > > $this->_getParam('name') > > which is an array from a form post > > It print out: > > //POST array(3) { > // ["salutation"] => string(3) "Mr." > // ["first_name"] => string(10) "Ian Warner" >

Re: [fw-general] search friendly

2007-04-03 Thread Gavin Vess
Matthew Weier O'Phinney wrote: The problem for this last url is the form submission, cause it constructs search?test and not search/test Maybe using a javascript... does anybody knows where I can found about it? There are plenty of tutorials on javascript out there -- google is your f

[fw-general] Params

2007-04-03 Thread Ian Warner
Hi I am using $this->_getParam('name') which is an array from a form post It print out: //POST array(3) { // ["salutation"] => string(3) "Mr." // ["first_name"] => string(10) "Ian Warner" // ["last_name"] => string(10) "Ian Warner" //} How do I extract just the salutation from this? Dead

Re: [fw-general] Re: Forwarding - Redirecting

2007-04-03 Thread Gavin Vess
Hi Stephan, I have not seen any specific problems mentioned with the functionality of _forward() and _redirect(). However, I have seen open source applications that ambiguously used the word "forward" to perform HTTP redirection. Words used ambiguously can be confusing. Maybe the names are

Re: [fw-general] Re: Forwarding - Redirecting

2007-04-03 Thread Nico Edtinger
Won't work if you have a different URI design. I.e. we use http:// example.org/index.php/contact.add.import instead of http:// example.org/index.php/contact/add/import or http://example.org/ index.php/contact_add/import or ... as controller (+ module) name. If the default Action class is chang

Re: [fw-general] search friendly

2007-04-03 Thread Matthew Weier O'Phinney
-- José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote (on Tuesday, 03 April 2007, 10:33 AM -0300): > I've made a searchAction in IndexController. But, when I do a search, the url > shown is: > > http://localhost/project/index/search?query=test > > And I was wondering if it could be: > > ht

Re: [fw-general] Zend_Parser

2007-04-03 Thread Kevin McArthur
The factory is going, but the other parsers arent ready so changing the api right now would break jpeg/tiff support and leave only png. I assume matt's GIF parser can extract the bitmap data from the gif, which should then be embeddable in the doc (similar how i had to parse png data) K -

RE: [fw-general] Zend_Db pdo_mssql error

2007-04-03 Thread Bill Karwin
Hi Sir or Madam, Would you state which version of Zend Framework you are using? Would you please post the output of echo $select->__toString(); Regards, Bill Karwin > -Original Message- > From: Roman1975 [mailto:[EMAIL PROTECTED] > Sent: Monday, April 02, 2007 11:45 PM > To: fw-general@

RE: [fw-general] Zend_Db mysqli

2007-04-03 Thread Bill Karwin
Thanks Vladas, I have logged http://framework.zend.com/issues/browse/ZF-1187 to track this issue. Regards, Bill Karwin From: Vladas Dirzys [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 3:12 AM To: fw-general@lists.zend.com Subject: [fw-general]

[fw-general] Very basic question : how to download a file ?

2007-04-03 Thread fred wolf
Hi Zenders, this is a very basic thing, but I can't make it working out. How can I download a pdf file for example ? I tried to use Zend_Http and set an header with content type application/pdf, then I got the content file then push it in the Zend_Http_Response, but It doesn't work. I'm stuck

Re: [fw-general] search friendly

2007-04-03 Thread Alan Wagstaff
Hi, On 03/04/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote: Hi again friends, I've made a searchAction in IndexController. But, when I do a search, the url shown is: http://localhost/project/index/search?query=test Cause it is more beautiful. In other way, the best way I think

Re: [fw-general] zend_session question

2007-04-03 Thread Raphael Stolt
Have you checked the session.save_path in your php.ini. I ran in the same problem when updating from ZF 0.8 to 0.9.1, because in my php.ini it wasn't set and so also not writeable. Setting the path would also switch to the use of file-based session storage and retrieval. Hope this is a starting p

[fw-general] search friendly

2007-04-03 Thread José de Menezes Soares Neto
Hi again friends, I've made a searchAction in IndexController. But, when I do a search, the url shown is: http://localhost/project/index/search?query=test And I was wondering if it could be: http://localhost/project/search?query=test Cause it is more beautiful. In other way, the best way I th

Re: [fw-general] search engine

2007-04-03 Thread José de Menezes Soares Neto
Nice! And it increases the performance?? - Original Message - From: Alexander Veremyev To: José de Menezes Soares Neto Cc: fw-general@lists.zend.com Sent: Tuesday, April 03, 2007 9:47 AM Subject: Re: [fw-general] search engine Hi José, There are two possibilities:

Re: [fw-general] search engine

2007-04-03 Thread Alexander Veremyev
Hi José, There are two possibilities: 1) As it already was mentioned by Joshua, it's possible to use your database capabilities for full-text searching or use any other tool. 2) Use Zend_Search_Lucene as full-text index in addition to you relational database. It's not data duplication. You ca

Re: [fw-general] Zend_Parser

2007-04-03 Thread Alexander Veremyev
Hi Kevin, GIF support would be good feature. The difficulty is that GIF is not supported by PDF as internal format. So it needs a little bit more processing. There was no any activities in Zend_Pdf for some time. So your patch could be applied to current SVN version. (I have some strange pr

[fw-general] zend_session question

2007-04-03 Thread Tomek Nowak
i wrote a class require_once 'Zend/Session/SaveHandler/Interface.php'; class Session2 implements Zend_Session_SaveHandler_Interface { public $maxLifeTime; public $dbConnect; public function __construct($dbConnect,$maxLifeTime = 1500) { $thi

[fw-general] Zend_Db mysqli

2007-04-03 Thread Vladas Dirzys
Hi! where is not possible to change mysql port using mysqli adapter. i've changed Zend_Db_Adapter_Mysqli // function _connect() to this: protected function _connect() { if ($this->_connection) { return; } +$port = ($this->_config['port']) ? $this->_config

Re: [fw-general] Zend_Parser

2007-04-03 Thread padraic . brady
>Theoretically, if there were something like Zend_String, it could >implement Zend_Parser_DataSource_Interface and Zend_String_Parser could >implement Zend_Parser_Interface. For say, Zend_String, the interfaces and abstracts are around what one would expect. Main difference though which might clo