I was given code that is for password protecting a site. When I try to change the password the site tells me the function split is deprecated. So I looked it up and was told to use preg_split instead.
When I try to use that I get an error message:
Warning: preg_split() [function.preg-split]: Empty regular expression in /home/mmoprotools/www/secure/globalFns.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /home/mmoprotools/www/secure/globalFns.php:5) in /home/mmoprotools/www/secure/admin/resetPwd.php on line 33
The Code for the first error is :
require_once(dirname(__FILE__) . "/menus.php");
function getFirstName($fullName) {
$parts = split(" ", $fullName);
return $parts[0];
}
Any suggestions would be greatly appreciated! Thanks!