PDA

View Full Version : User submit link


noel
11-15-2005, 07:10 AM
Hi CHARTER,

I need that people could submit link, I tried this script http://www.phpdig.net/forum/showthread.php?t=751
all work well, but I have this error message :

Notice: Use of undefined constant urlfiles - assumed 'urlfiles' in c:\program files\easyphp1-8\www\phpdig-1.8.9-rc1\includes\config.php on line 30

at the line 30 there is :

// Add URL //
define('URL_FILE_DIRECTORY',urlfiles); // Directory under [PHPDIG_DIR]/admin where url files for indexing are stored

The script is yet really fine, just this small problem.
For information it works with 1.8.9 perhaps to include in an other version of PHPDIG ;)

THANK YOU VERY MUCH

Noël

noel
11-15-2005, 03:37 PM
Hi CHARTER,

I had this error just in local it disappeared when I put the script on the web.

But just for information, do you know what was this error ?

Thank You

Noël

noel
11-16-2005, 03:00 PM
But I see now that if I use shell command I have this error :

[root@ admin]# php -f spider.php http://www.asite.com

PHP Notice: Use of undefined constant urlfiles - assumed 'urlfiles' in /home/httpd/vhosts/asite.com/httpdocs/google/includes/config.php on line 30
7912: old priority 0, new priority 18
Exploration des liens en cours...

Do you have an idea ?

Thank You

Noël

Charter
11-18-2005, 02:22 AM
Whether or not you see the error depends on the PHP error reporting levels.

Find this code:
define('URL_FILE_DIRECTORY',urlfiles);

Replace it with:
define('URL_FILE_DIRECTORY','urlfiles');

noel
11-19-2005, 12:34 PM
Thank You ;-)

All is Ok now !

Noel