Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.