PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 07-13-2004, 05:23 AM   #1
Ross
Green Mole
 
Join Date: Jul 2004
Location: Paris
Posts: 5
Question RTF never parse...

Hello folks !

I have a problem : Everything works perfectly with phpdig 1.8.2 and catdoc 0.93.3-2 exept the fact that phpdig never sees any .rtf document.

I've already checked the config file and it seems to be correct. rtf is not an excluded extension.

...any idea ?
Ross is offline   Reply With Quote
Old 07-13-2004, 06:13 AM   #2
lolodev
Orange Mole
 
Join Date: Apr 2004
Location: Nancy (54)
Posts: 38
hello
do you parse MS WORD ??
lolodev is offline   Reply With Quote
Old 07-13-2004, 06:35 AM   #3
Ross
Green Mole
 
Join Date: Jul 2004
Location: Paris
Posts: 5
Yes, I parse : .doc .xls .txt .htm .pdf and all plain text documents. As I read in phpdig documentation, it is expected with catdoc to parse .rtf documents isnt'it ? I don't know how parseing works... does phpdig check the mime-type of each document in order to parse ? what is the mime-type for a rtf document ?...

/
Ross is offline   Reply With Quote
Old 07-13-2004, 07:00 AM   #4
lolodev
Orange Mole
 
Join Date: Apr 2004
Location: Nancy (54)
Posts: 38
ahaha
i ve the same question ??? do you have a msn account to chat ???
lolodev is offline   Reply With Quote
Old 07-13-2004, 07:19 AM   #5
Ross
Green Mole
 
Join Date: Jul 2004
Location: Paris
Posts: 5
Unfortunatly our firewall did not pass the instant messenger stuff...
Ross is offline   Reply With Quote
Old 07-13-2004, 07:21 AM   #6
lolodev
Orange Mole
 
Join Date: Apr 2004
Location: Nancy (54)
Posts: 38
ok
do you have an url for your site ?
lolodev is offline   Reply With Quote
Old 07-13-2004, 07:30 AM   #7
Ross
Green Mole
 
Join Date: Jul 2004
Location: Paris
Posts: 5
Smile

I've just send you an e-mail... via phpdig.net 'got it ?
Ross is offline   Reply With Quote
Old 07-13-2004, 07:32 AM   #8
lolodev
Orange Mole
 
Join Date: Apr 2004
Location: Nancy (54)
Posts: 38
ok
lolodev is offline   Reply With Quote
Old 07-13-2004, 08:58 AM   #9
Ross
Green Mole
 
Join Date: Jul 2004
Location: Paris
Posts: 5
The solution

in //Parse content-type header replace :

switch ($regs[2]) {
case 'plain':
$status = 'PLAINTEXT';
break;
case 'html':
$status = 'HTML';
break;
default :
$status = "NOFILE";
$stop = true;

with :

switch ($regs[2]) {
case 'plain':
$status = 'PLAINTEXT';
break;
case 'rtf':
$status = 'MSWORD';
break;
case 'html':
$status = 'HTML';
break;
default :
$status = "NOFILE";
$stop = true;
Ross is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error with includes cherie Troubleshooting 1 12-14-2004 12:34 PM
unable to parse url marb Troubleshooting 1 03-27-2004 02:06 AM


All times are GMT -8. The time now is 11:56 AM.


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