
I have a site that's br0ken because of some deprecated php functions. Any takers who are willing to whip up an instant solution? Here are the issues: 1. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/includes/sef.php on line 533 Line 533 has this: eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts); 2. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/templates/rt_technopia/rt_supersucker.php on line 150 Line 150 has this: f ( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }} Clues are here - http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53... , that the eregi() function now becomes preg_match() but I am not good with php regexps. Anyone willing to give me the modified functions? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!

You could ignore these warnings by using an @ sign. I think it is like this: @eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts); On Tue, Oct 19, 2010 at 2:20 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
I have a site that's br0ken because of some deprecated php functions. Any takers who are willing to whip up an instant solution?
Here are the issues:
1. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/includes/sef.php on line 533
Line 533 has this:
eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
2. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/templates/rt_technopia/rt_supersucker.php on line 150
Line 150 has this:
f ( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }}
Clues are here - http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53... , that the eregi() function now becomes preg_match() but I am not good with php regexps.
Anyone willing to give me the modified functions?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Brian Ngure

you could try downgrading to php 5.2.9 or using error_reporting(0); On Tue, Oct 19, 2010 at 2:24 PM, Brian Ngure <brian@pixie.co.ke> wrote:
You could ignore these warnings by using an @ sign. I think it is like this:
@eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
On Tue, Oct 19, 2010 at 2:20 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
I have a site that's br0ken because of some deprecated php functions. Any takers who are willing to whip up an instant solution?
Here are the issues:
1. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/includes/sef.php on line 533
Line 533 has this:
eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
2. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/templates/rt_technopia/rt_supersucker.php on line 150
Line 150 has this:
f ( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }}
Clues are here - http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53... , that the eregi() function now becomes preg_match() but I am not good with php regexps.
Anyone willing to give me the modified functions?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Thanks and Regards, Erick Njenga Nyachwaya, M: +254-725-008-790 <http://www.facebook.com/ErickNjenga> <http://www.twitter.com/ErickNjenga>

Mr Washington, eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts); becomes preg_match("/^(https?\:[\/]+[^\/]+)(.*$)/i", $mosConfig_live_site, $live_site_parts); and ( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }} becomes ( preg_match( '/index.php\?/i', $row->link ) ) { if ( !preg_match( '/Itemid\=/i', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }} Basically, preg functions use the Perl regular expressions engine which are only slightly different from ereg, only more interesting ;-) . Some authorities discourage the practice of supressing errors. I hope umesaidika buda. -- ndungi On 19/10/2010, Erick Njenga <eriknjenga@gmail.com> wrote:
you could try downgrading to php 5.2.9 or using error_reporting(0);
On Tue, Oct 19, 2010 at 2:24 PM, Brian Ngure <brian@pixie.co.ke> wrote:
You could ignore these warnings by using an @ sign. I think it is like this:
@eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
On Tue, Oct 19, 2010 at 2:20 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
I have a site that's br0ken because of some deprecated php functions. Any takers who are willing to whip up an instant solution?
Here are the issues:
1. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/includes/sef.php on line 533
Line 533 has this:
eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
2. Deprecated: Function eregi() is deprecated in /usr/local/www/data-dist/siteA/templates/rt_technopia/rt_supersucker.php on line 150
Line 150 has this:
f ( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }}
Clues are here - http://devthought.com/tumble/2009/06/fix-ereg-is-deprecated-errors-in-php-53... , that the eregi() function now becomes preg_match() but I am not good with php regexps.
Anyone willing to give me the modified functions?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
--
Thanks and Regards, Erick Njenga Nyachwaya, M: +254-725-008-790
<http://www.facebook.com/ErickNjenga> <http://www.twitter.com/ErickNjenga>

On Wed, Oct 20, 2010 at 10:26 PM, Ndungi Kyalo <ndungi@gmail.com> wrote:
Mr Washington,
eregi("^(https?:[\/]+[^\/]+)(.*$)", $mosConfig_live_site, $live_site_parts);
becomes preg_match("/^(https?\:[\/]+[^\/]+)(.*$)/i", $mosConfig_live_site, $live_site_parts);
and
( eregi( 'index.php\?', $row->link ) ) { if ( !eregi( 'Itemid=', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }}
becomes
( preg_match( '/index.php\?/i', $row->link ) ) { if ( !preg_match( '/Itemid\=/i', $row->link ) ) { $row->link .= '&Itemid='. $row->id; }}
Basically, preg functions use the Perl regular expressions engine which are only slightly different from ereg, only more interesting ;-) .
Some authorities discourage the practice of supressing errors.
I hope umesaidika buda.
-- ndungi
Hello Ndungi, Thanks so much, only this came a little bit too late. After sitting down and reading for a bout 1 day, I discovered that the PHP people are MAD PEOPLE - I mean those guys at php.net. If they are not mad, then http://www.php.net/manual/en/migration53.incompatible.php tells something about them. With php-5.3.3, they have rendered most CMSes simply unusable, until they are re-programmed. Something like Joomla-1.5.21 does not work with php-5.3.3. You have to go in and replace all those incompatible functions. But their level of madness is understandable, and acceptable, since there is php-5.2.14, which is what I fell back to. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
participants (4)
-
Brian Ngure
-
Erick Njenga
-
Ndungi Kyalo
-
Odhiambo Washington