Deprecated Functions
From FMYiRCWiki
Freemed-YiRC - Deprecated Functions
Contents |
Summary
This article describes Freemed-YiRC functions which are deprecated and should no longer be used in new code. Replacement functions are given.
freemed_yirc-funcs.inc
fy_execsql()
fy2_sql_exec() should be used instead. fy2_sql_exec() does double duty as a replacement for fy_resultrows() too.
fy_resultrows()
fy2_sql_exec() should be used instead. fy2_sql_exec() does double duty as a replacement for fy_execsql() too.
fy_getfield()
fy2_getfield() should be used instead. NOTE: There is one exception to this rule and that is when attempting to retrieve binary data and/or programming code. fy2_getfield() is a wrapper for fy_getfield() which uses the stripslashes() function on returned data. Therefore, this function (fy2_getfield()) is not suitable in these situations.
fy_lastdayofmonth()
fy2_lastdayofmonth() should be used instead, as fy_lastdayofmonth() does not have a way to specify a year (in order to accurately give the correct last day of February during leap years).
fy_conlistnames()
fy2_conlistnames() should be used instead. When fy2_conlistnames() is used as a replacement for fy_conlistnames(), the $fy_returndataas function argument should be set to Select.
fy_ftpfile()
The FMYiRC FTP/SCP functions should be used instead for enhanced security.
fy_ftpgetfile()
The FMYiRC FTP/SCP functions should be used instead for enhanced security.
