I'm using an old php script that runs on php 5.2 but host no longer provides php below 5.4 I'm getting an error regarding function ereg that needs to ...
I'm using an old php script that runs on php 5.2 but host no longer provides php below 5.4 I'm getting an error regarding function ereg that needs to ...
For a Mandarin learning-tool I would like to create links for each chinese "character" within a word. For example I have the chinese word "自行车" (bicyc ...
I am using php v7.3.2 on Centos 7.6. Before upgrading php the version was 5.4. In v 5.4 i had no errors. But in v 7.3.2 i got this error : Fatal ...
I'm in the process of migrating a horrible drupal site to a new server - a server with a newer version of PHP. Checking the site I get the following e ...
When running former PHP 4 pages in PHP5 I get Deprectiated errors: I know there are some back slashes that go in there. (or is it forward slashes?) bu ...
I am trying to validate email in php using ereg, where I am not allowed to enter more than two dots after @ and it can't begin with any special charac ...
I have some legacy code I'm trying to update to run on PHP 5.4: I know I have to replace this with preg_replace, but since I've never used ereg, I' ...
i found this code for checking a text area: because ereg is depreacted I would like to replacy by preg_match instead. But if I replace I got an err ...
Here is my original code listed below. This is the error Deprecated: Function ereg() is deprecated in Then I replaced the ereg with preg_ma ...
thats the part of the code im trying to edit it so they cant use ' and = in there email ...
i'm actually using a script i've used for years before and when i put it in my website, i got the error "Deprecated: Function ereg() & ereg_replac ...
I need some help converting an old ereg expression to preg_match. I'm wanting to pull the barometer (altimeter) out of a airport METAR. The above i ...
My server is running on php 5.3 now and I need to replace this call to ereg: I have tried this, among other things without any success: This res ...
I found that syntax of preg_match() and the deprecated ereg() is different. For example: I thought that means the same as but I was wrong. pr ...
I am working on old sites and updating the deprecated php functions. I have the following code, which creates an error when I change the ereg to preg. ...
I read similar titles but I couldn't make it run.. Now, I have a code like this (originally ereg): I also tried using / at the beginning and end o ...
Im validating a form and its easy to validate numbers, letters a-z and so on but when i got to the point where i need to validate a field which must c ...
I was maintaining some code using ereg, and made the migration to preg_match (not forgetting the delimiter), but it broke my function. Here is my ori ...
I have this snippet of code from an old OsCommerce install I would like to modify the [:punct:] selector so it excludes the - dash. next line of c ...