Jump to content

[SOLVED] str_split() no go for php4


dyluck

Recommended Posts

Hi.  I had written script that works for PHP 5 but have recently put my site on a professional host.

 

I want to duplicate what is happening here in PHP4:

 

$activate = 'hetye234k3hsig3ksl6hkdn754k3h';

$num_char=strlen($activate);

$uidcount= $num_char - 21;

 

$arr1 = str_split($str, $uidcount);

$arr2 = str_split($str, $uidcount);

$arr3 = str_split($str, $uidcount);

 

$uid = $arr2[0];

 

$activationcode = $arr1[1].$arr2[2].$arr1[3];

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/112828-solved-str_split-no-go-for-php4/
Share on other sites

Since the end of life of php4 was at the end of 2007, the web host needs to have a plan for upgrading. Perhaps he already has made php5 available through your account's control panel or through using a setting in a .htaccess file. I would check with the host's support, if or how you can switch to php5.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.