View Single Post
Old 07-06-2005, 11:48 AM   #1
Brewer
Green Mole
 
Join Date: Jun 2005
Posts: 2
Blank page after adding code mods

I'm running version 1.8.7, and everything works fine, except for indexing PDF files. When I try to index them, this is what I get:

SITE : http://www.copyright.gov/
Exclude paths :
- @NONE@
1:http://www.copyright.gov/legislation/dmca.pdf
(time : 00:00:06)
No link in temporary table

--------------------------------------------------------------------------------

links found : 1
http://www.copyright.gov/legislation/dmca.pdf
Optimizing tables...
Indexing complete !

Then I tried adding the code mods found in this thread, and then I get a blank spider.php page when trying to index the same site.

The code mods are pretty easy, so I know I'm doing them right. I restored the original files and tried it again, and get the same results. Then I tried doing one mod at a time and trying to index the site to see if I could find out where the problem was, and it starts after I add this mod to robot_functions.php

PHP Code:
function phpdigTempFile($uri,$result_test,$prefix='temp/',$suffix1='1.tmp',$suffix2='2.tmp') { 

/*****/ 
echo "<br>Is result test an array: " is_array($result_test) . "<br>"
echo 
"What is result test status: " $result_test['status'] . "<br>"
echo 
"Use is executable is set to: " USE_IS_EXECUTABLE_COMMAND "<br>"
// in the next four lines change _PDF to either _MSWORD or _MSEXCEL for those binaries 
echo "Index the pdf is set to: " PHPDIG_INDEX_PDF "<br>"
echo 
"Parse the pdf is set to: " PHPDIG_PARSE_PDF "<br>"
echo 
"Does parse pdf exist: " file_exists(PHPDIG_PARSE_PDF) . "<br>"
echo 
"Is parse pdf executable: " is_executable(PHPDIG_PARSE_PDF) . "<br>"
/*****/ 

// $temp_filename = md5(time()+getmypid()).$suffix; 
Any suggestions?
Brewer is offline   Reply With Quote