Questions tagged [ereg-replace]

ereg_replace() is a PHP function that performs string replacement using regular expressions.

ereg_replace() is a PHP function that performs string replacement using regular expressions.

This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. See https://php.net/manual/en/function.ereg-replace.php.

50 questions
-1
votes
2 answers

PHP: deprecated EREG_REPLACE to PREG_REPLACE

Possible Duplicate: How can I convert ereg expressions to preg in PHP? What is the equivalent of this EREG_REPLACE function in PREG_REPLACE? $html = ereg_replace("[^A-Za-z._0-9@ ]"," ",$html);
awawjerh
  • 214
  • 1
  • 2
  • 12
-2
votes
2 answers

PHP ereg_replace is not working correctly

My id is a5efa5. Code below replacing deprecated[?] [^a-z0-9] is not working. a5efa5 in an id in my database table. //Connect to the database through our include include_once "database.php"; // Get the member id from the URL variable $id =…
user3304633
  • 27
  • 1
  • 7
-2
votes
1 answer

Function ereg_replace() is deprecated - Cannot fix

I have the above error that I am struggling to fix, the code can be seen below: $anchor = ereg_replace($pattern, '', strtolower($string)); $pattern = "([[:space:]]|[[:blank:]])+"; $anchor = ereg_replace($pattern, '-',…
user1764987
  • 29
  • 1
  • 5
-3
votes
2 answers

ereg_replace to preg_replace

I have this warning, Deprecated: Function ereg_replace() is deprecated someone please help me. ereg_replace: ereg_replace('([^(folder)])/images/flash', '"/folder/images/flash', $echotemp); to preg_replace:
user311129
  • 23
  • 3
-3
votes
2 answers

Deprecated: Function ereg_replace() is deprecated in /home/user/public_html/includes/functions.php on line 62

When I type my Website URL It's all right. But When I press the sub-category to view the inner content then the problem is occur. There is 5 folder in my public_html.. They are: 1.admin 2.avatars 3.FTP 4.images 5.includes and some php files. This is…
Redwan
  • 11
  • 1
  • 5
1 2 3
4