[PHP-DB] Search engine results

2005-08-13 Thread Ron Piggott
I have wrote a basic search engine PHP script.  I have created a mySQL
database of the files which are allowed to be searched (Example:
directory/file_name.html) When someone enters search criteria the mySQL
database is opened and the various web site files are loaded one at a time,
dumped into a variable and then using the eregi command check to see if
there is a match.  If there is it displays the web page title.

I wanted to add some text from the file now.  I wanted to add like 150
characters before the search string and about 250 characters after the
search string.  Is anyone able to help me with this?  I wanted to strip out
HTML so only plain text is shown.  I essentially want to add a block of text
like this paragraph under the web page title results which are currently
displayed.

Ron

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] word to text

2005-08-13 Thread Yui Hiroaki
hi!
Does anyone knows how to retrive text from Microsoft word and Adobe PDF
using php?

Regards,
Yui

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] pg_connect gets fatal error

2005-08-13 Thread Jon Crump

Dear all,

I'm brand new at this and I'm trying to get Darwin/Apache/Php/PostgresSQL 
running on my iBook (OS X 10.4.2) with Tiger newly installed. Apache 1.3 
is running fine, PostgresSQL 8.0.1 working fine, PHP 4.3.11 works except 
when I try to call a postgres function I get:


Fatal error: Call to undefined function: pg_connect() in 
/Users/jjc/Sites/PHPtesting/hello.php on line 12


looking at /private/etc/php.ini.default, it looks like postgres is 
enabled, so why doesn't php like any pg_ functions?


I've scoured the faqs and the archives. I've found this question asked 
before, but not answered.


Any help for a tyro?

Jon

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] word to text

2005-08-13 Thread Bastien Koert
fo MS doc files you can use COM to open them up and read the document into 
memory


For acrobat files are you looking at reading in the text of the file or the 
form elements in a pdf?


bastien


From: Yui Hiroaki [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] word to text
Date: Sun, 14 Aug 2005 03:20:16 +0900

hi!
Does anyone knows how to retrive text from Microsoft word and Adobe PDF
using php?

Regards,
Yui

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] pg_connect gets fatal error

2005-08-13 Thread Bastien Koert

is php compiled with postgre support? probably not from the sounds of it

bastien


From: Jon Crump [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] pg_connect gets fatal error
Date: Sat, 13 Aug 2005 11:29:59 -0700 (PDT)

Dear all,

I'm brand new at this and I'm trying to get Darwin/Apache/Php/PostgresSQL 
running on my iBook (OS X 10.4.2) with Tiger newly installed. Apache 1.3 is 
running fine, PostgresSQL 8.0.1 working fine, PHP 4.3.11 works except when 
I try to call a postgres function I get:


Fatal error: Call to undefined function: pg_connect() in 
/Users/jjc/Sites/PHPtesting/hello.php on line 12


looking at /private/etc/php.ini.default, it looks like postgres is 
enabled, so why doesn't php like any pg_ functions?


I've scoured the faqs and the archives. I've found this question asked 
before, but not answered.


Any help for a tyro?

Jon

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php