5 Topics

Member Avatar for
Member Avatar for jithinjohny

Last Day I have installed wamp server 2.2 and I was using wamp server 2.0c till then. I have a strange problem, when i start wampserver and try to load pages on browser it shows the error > Deprecated: Function ereg() is deprecated http://tinypic.com/r/206g8is/6 Please help me , thanks in …

Member Avatar for jithinjohny
0
477
Member Avatar for kaiwahl

I have a problem in a payment solution I have made. In this, I use ereg to extract a returned Transaction ID from the payment provider, and with PHP 5.3 this does not work anymore. The code used was: ereg('<TransactionId>(.+)</TransactionId>',$resultat_3,$c); I have tried to use this instead: (but it doesn't …

Member Avatar for diafol
0
165
Member Avatar for saadi06

Hi, I am using [CODE]ereg [/CODE] for validations of field and I want to allow some fields that are optional but ereg does not allow me to validate space or empty field.My code for validation is [CODE]while(list($var,$val)=each($_POST)){ if(!ereg($var,$admin_data)){ if(ereg($reki[$var],$val)) {$class="good";}//this condition is checking the values of all the fields but …

Member Avatar for saadi06
0
104
Member Avatar for RoyalElite96

Hi, I do know a bit PHP and also had no probles with regular expressions, [I]until now[/I]. This is my code: [CODE] $string = ereg_replace("([\"](.*)[\"])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] . Why doesn't it work? It all runs fine when using: [CODE] $string = ereg_replace("([*](.*)[*])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] , but I want …

Member Avatar for RoyalElite96
0
201
Member Avatar for sallecpt

hey all. I am trying to do validation via PHP for submitted forms. Below is my own code, please comment if its the correct method or not. However, I tried so many ways to have the /n or /r added, but I cant get to it. Its just to make …

Member Avatar for sallecpt
0
194

The End.