found this statement and I dont know what it means

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
raulbolanos
Forum Newbie
Posts: 14
Joined: Fri May 07, 2010 3:14 pm

found this statement and I dont know what it means

Post by raulbolanos »

HI guys,

I found this in a code and I dont know what means this code

Config::get

I would like to trace it.. this part return some error message regarding to the parameter and I would like to know where I can find them? Config and Get are reserved words?

Code: Select all

if (ini_get("magic_quotes_gpc") == 1){
	  echo Config::get("errorMagicQuotes");
	  exit;
	}
	if (!function_exists("mcrypt_encrypt")){
	  echo Config::get("errorMCrypt");
	}
Let me know if you need more info.

Thank you in advance.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: found this statement and I dont know what it means

Post by AbraCadaver »

It's a static method call. Look in the class Config, and the method get.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
raulbolanos
Forum Newbie
Posts: 14
Joined: Fri May 07, 2010 3:14 pm

Re: found this statement and I dont know what it means

Post by raulbolanos »

Thank you guy, now I have to figure out where is declared this function.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: found this statement and I dont know what it means

Post by AbraCadaver »

raulbolanos wrote:Thank you guy, now I have to figure out where is declared this function.
Is easy on Linux. If on Windows use the search to search all files in your app that contain 'class Config'.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply