/var/www/html/private/app/lucene/segments is a file. I don“t know why I
get this
exception because i changed the chmod to 777 and it does not work, too.
$fo = fopen('/var/www/html/private/app/lucene/segments', 'w+b');
fwrite($fo, 'this is only a test');
fclose($fo);
this works fine, without any errors. hmm... the file exists, it contains
the expected
text but in my errlog there are Warnings with the known message:
fopen(/var/www/html/private/app/lucene/segments): failed to open stream
-- Jan
Hi ,
>> $index = new
Zend_Search_Lucene('/var/www/html/private/app/lucene',
>> true);
>>
>> I get Zend_Search_Lucene_Exception with this message:
>>
>> Zend_Search_Lucene_Exception caught:
>> fopen(/var/www/html/private/app/lucene/segments): failed to open
>> stream: No such file or directory
I didn't play with Lucene till now, but isn't this a strange exception.
you are passing
"/var/www/html/private/app/lucene"
and the exception is talking about another folder
"/var/www/html/private/app/lucene/segments".
do you need to create a "segmants" folder\file ?!
Regards,
--
Ahmed Shreef
Web Developer
Egypt