PHP Classes

gRAR

Recommend this page to a friend!

      Named Buttons Captcha  >  All threads  >  gRAR  >  (Un) Subscribe thread alerts  
Subject:gRAR
Summary:Define constant __DIR__
Messages:2
Author:Gerardo
Date:2012-05-03 10:57:36
Update:2012-06-29 03:42:52
 

  1. gRAR   Reply   Report abuse  
Picture of Gerardo Gerardo - 2012-05-03 10:57:36
Good code!

I have an error that I have solved by adding the following code to NamedButtonsCaptcha.php


define("__DIR__","lib");

Regards
gRAR

  2. Re: gRAR   Reply   Report abuse  
Picture of Nguyen Duc Thuan Nguyen Duc Thuan - 2012-06-29 03:42:52 - In reply to message 1 from Gerardo
Hi,

Thanks for reporting that. I forgot that not everyone upgraded to PHP5.3.

The __DIR__ constant is available as of PHP5.3 so I think you should change to something like this:

defined('__DIR__') || define('__DIR__', dirname(__FILE__));

Regards,
Thuan.