|
02-20-2004, 04:46 PM | #1 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 5
|
indexing pdf
Hi from France,
You will excuse my english. I can't make phpdig indexing pdf files. I put the following lines into the config.php file. define('PHPDIG_INDEX_PDF',true); define('PHPDIG_PARSE_PDF','./pdftotext'); define('PHPDIG_OPTION_PDF',''); define('PHPDIG_PDF_EXTENSION','.txt'); as pdftotext.exe is located at the root. The indexing works perfectly with html files even with ASCII files but not with pdf files. My web site is located on Lycos server. I uploaded pdftotext.exe at the root, then set permissions to 755. When I run phpdir from the administration panel asking to dig a pdf file indicating the full path, I get a green sign in front indicating the file is indexed. When I search for any word inside the pdf file I get no record. What could I try? I have been looking at this Forum for weeks before posting. Now I have no more ideas. Thanks for helping a novice. Philippe. |
02-20-2004, 05:04 PM | #2 |
Orange Mole
Join Date: Feb 2004
Posts: 47
|
hi philippe,
is your server running on windows or unix/linux ? tomas |
02-20-2004, 05:21 PM | #3 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 5
|
Thank's. Lycos Servers are running Unix. I use 1.6.4 phpdig version.
Philippe |
02-20-2004, 05:27 PM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Does Lycos allow commands such as exec to run on its servers?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
02-20-2004, 05:36 PM | #5 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 5
|
Hi, I don't know. I just asked their support service by posting a thread. I'm waiting for the answer ...
Philippe |
02-20-2004, 05:49 PM | #6 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 5
|
If running exec is not allowed, is there any wy I could run pdftotext onto my PC as a shell ?
Philippe |
02-20-2004, 06:38 PM | #7 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Perhaps check at the following link for a version that would work with your PC:
http://www.foolabs.com/xpdf/download.html
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
02-20-2004, 06:56 PM | #8 |
Orange Mole
Join Date: Feb 2004
Posts: 47
|
hello,
philippe - try this setting: define('PHPDIG_PDF_EXTENSION',''); run spider and take a look into text_content directory - are there temp-files? are they empty? after this test reset to: define('PHPDIG_PDF_EXTENSION','.txt'); what is your servers php-version? tomas |
02-20-2004, 07:02 PM | #9 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
OT: Thanks tomas for helping!
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
02-20-2004, 07:24 PM | #10 |
Orange Mole
Join Date: Feb 2004
Posts: 47
|
hello again philippe,
in your first post you wrote "pdftotext.exe" - it seems that you installed the dos-version on an unix-server??? the unix download is: http://www.foolabs.com/xpdf/download.html x86, Linux (glibc 2.2, staticly linked to Motif, t1lib, and FreeType 2): xpdf-3.00-linux.tar.gz (4544077 bytes) tomas Last edited by tomas; 02-20-2004 at 07:28 PM. |
02-21-2004, 06:58 AM | #11 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 5
|
I wasn't using the unix version of pdftotext.
Now I do. is the line below is correct? as www is my root. It still doesn't work but I still go on ... define('PHPDIG_PARSE_PDF','./usr/local/bin/pdftotext'); Philippe |
02-21-2004, 11:50 AM | #12 |
Orange Mole
Join Date: Feb 2004
Posts: 47
|
hi philippe,
i don't think so - please try this: 1) upload: pdftotext binary into the same folder where phpdig is 2) set: 755 permissions for pdftotext and admin/temp 3) set: define('PHPDIG_PARSE_PDF','/path/to/pdftotext'); 4) set: define('PHPDIG_PDF_EXTENSION',''); run spider and take a look into text_content directory - are there temp-files? are they empty? kind regards tomas |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Indexing PDF | dlaperle | Troubleshooting | 1 | 03-21-2007 08:00 PM |
Problem with PDF indexing | Phantom | External Binaries | 2 | 07-25-2005 03:26 AM |
indexing pdf | Hoek | External Binaries | 9 | 02-25-2004 03:42 AM |
PDF indexing | lelandv | External Binaries | 15 | 12-08-2003 05:23 PM |
PDF indexing | aryan | External Binaries | 11 | 11-27-2003 08:51 AM |