PDA

View Full Version : Problems running command line


remc
03-06-2005, 04:01 PM
Hi, I can index my site fine from the web interface, but when it comes to the command line, nothing happens. As in, I type in the usual php -f spider.php forceall > spider.log (php is in my path and i'm running it from the admin/ directory), and it immediately exits from the spider.php script. When I check the spider.log file, it's blank. Any suggestions? I'm running phpdig 1.8.7

remc
03-06-2005, 08:38 PM
Okay, I've basically narrowed it down to a problem with calling mysql_connect in includes/connect.php. The problem seems to be that it just isn't coming back from this functional call. I tested by putting echo statements before and after this call. Only the one before showed, and the script broke after that. Anyone else have this problem? Apparently I'm running php v4.1.2

Charter
03-15-2005, 08:34 AM
Check the the following are set correctly in the connect.php file:

define('PHPDIG_DB_PREFIX','<dbprefix>');
define('PHPDIG_DB_HOST','<host>');
define('PHPDIG_DB_USER','<user>');
define('PHPDIG_DB_PASS','<pass>');
define('PHPDIG_DB_NAME','<database>');

Note that the angle brackets should not remain in the constant definitions.