Jump to content

updating ereg functions


davey10101

Recommended Posts

Hi, Im trying to install a plugin to my script that was built for an older version of php.

It contains the following, which were giving me deprecated function errors

 

ereg_match("name=([^&]+)",$params,$res);
$params=ereg_replace("name=([^&]+)","name=".$name,$params);

 

I updated the functions..

 

preg_match("name=([^&]+)",$params,$res);
$params=preg_replace("name=([^&]+)","name=".$name,$params);

 

but am getting the error:-

 

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

 

Can anyone help me, cheers.

Link to comment
https://forums.phpfreaks.com/topic/193245-updating-ereg-functions/
Share on other sites

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.