bigtim Posted September 4, 2010 Posted September 4, 2010 Hi guys this is my first post im not sure if it is in the right place but some help would be most apreciated I am getting these messages when i check out. Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85 Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85 I am aware of the need to change split() to explode or preg_split etc but i don't understand what other characters i need to change to make it work here is the code. $myfile = file($url); foreach($myfile as $vals) { $bits = split("=", $vals); $$bits[0] = $bits[1]; } if ($charge <= 0) { $error = true; } else { I have fixed many other deprecated issues by following previous posts of other uses but i can not find the solution to this one. thanks in advance to any one who can help. Quote
Jan Zonjee Posted September 4, 2010 Posted September 4, 2010 $bits = split("=", $vals); $$bits[0] = $bits[1]; Have you tried replacing the split with explode? Looks like they will do the exact same thing in this case. Quote
bigtim Posted September 4, 2010 Author Posted September 4, 2010 Have you tried replacing the split with explode? Looks like they will do the exact same thing in this case. ha awsome. sorry my bad I did it only to two of the shipping/auspost...php instead of all four of them easy fix. its all working fine. Thank you for the quick reply. Quote
rheinrichs Posted October 7, 2010 Posted October 7, 2010 Thanx also for this good info from germany B) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.