dyluck Posted July 1, 2008 Share Posted July 1, 2008 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 More sharing options...
PFMaBiSmAd Posted July 1, 2008 Share Posted July 1, 2008 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. Link to comment https://forums.phpfreaks.com/topic/112828-solved-str_split-no-go-for-php4/#findComment-579513 Share on other sites More sharing options...
dyluck Posted July 1, 2008 Author Share Posted July 1, 2008 I will find out if they can do that, I would prefer it greatly! In the mean time if not, is there a code that duplicates this? tks Link to comment https://forums.phpfreaks.com/topic/112828-solved-str_split-no-go-for-php4/#findComment-579519 Share on other sites More sharing options...
dyluck Posted July 1, 2008 Author Share Posted July 1, 2008 I guess squeaky wheel gets the grease, they are updating my server right now WOOT! Ok case closed.. I don't want to know about php 4 code anymore Link to comment https://forums.phpfreaks.com/topic/112828-solved-str_split-no-go-for-php4/#findComment-579538 Share on other sites More sharing options...
.josh Posted July 1, 2008 Share Posted July 1, 2008 If I remember correct, in the manual, one of the comments for str_split shows how to do a php4 compatible version. Link to comment https://forums.phpfreaks.com/topic/112828-solved-str_split-no-go-for-php4/#findComment-579590 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.