Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 838 results for
ereg
- Page 1
ereg to preg_match problem
Programming
Web Development
12 Years Ago
by kaiwahl
… a payment solution I have made. In this, I use
ereg
to extract a returned Transaction ID from the payment provider….3 this does not work anymore. The code used was:
ereg
('<TransactionId>(.+)</TransactionId>',$resultat_3,$c); I have…
Allow empty field in ereg
Programming
Web Development
13 Years Ago
by 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…is [CODE]while(list($var,$val)=each($_POST)){ if(!
ereg
($var,$admin_data)){ if(
ereg
($reki[$var],$val)) {$class="good";}//this…
Re: Allow empty field in ereg
Programming
Web Development
13 Years Ago
by pritaeas
[CODE]$reki["business"]=" *";[/CODE] Would mean zero or more spaces, is that what you want ? Sidenote:
ereg
has been deprecated, I suggest you switch to the preg_XXX functions instead.
Re: Allow empty field in ereg
Programming
Web Development
13 Years Ago
by saadi06
Thanks a lot I have solved the problem and thanks for the information that
ereg
is deprecated
Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by jithinjohny
… pages on browser it shows the error > Deprecated: Function
ereg
() is deprecated http://tinypic.com/r/206g8is/6 Please help…
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by dorco
yep it's deprecated in php 5.3.0 http://php.net/manual/en/function.
ereg
.php which php version do u have?
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by jithinjohny
> yep it's deprecated in php 5.3.0 http://php.net/manual/en/function.
ereg
.php > which php version do u have? php 5.3, and now i got the error was occured due to that.
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by jithinjohny
> yep it's deprecated in php 5.3.0 http://php.net/manual/en/function.
ereg
.php > which php version do u have? It i library file with more than 500 lines and a noob like me can not handle that :(
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by jithinjohny
I got the solution as i need to use preg_match() instead of
ereg
() . THank you for helping me. the thread status is swithcing to solved .
Re: ereg to preg_match problem
Programming
Web Development
12 Years Ago
by diafol
Hmm, the pattern seems to work for me. "fsbefrb<TransactionId>Help me</TransactionId>s;bmfefb" gave 'Help me' with the pattern you supplied.
Re: ereg to preg_match problem
Programming
Web Development
12 Years Ago
by kaiwahl
OK, thanks. So, something else must be wrong, then. Do you see anything wrong with the rest of my code for making the registry call and extracting the answer as $transactionid?: $ch = curl_init (); $payment_url = "https://MyPaymentProvider.com"; curl_setopt( $ch , CURLOPT_SSL_VERIFYPEER , false );…
Re: ereg to preg_match problem
Programming
Web Development
12 Years Ago
by diafol
echo htmlentities($resultat_3); Do that and then search for '<TransactionId>' with the browser's search-in-page. You won't find it. The page looked like normal html to me as opposed to xml.
Re: ereg to preg_match problem
Programming
Web Development
12 Years Ago
by kaiwahl
So, it's the registry call at my payment provider that has stopped working then? > echo htmlentities($resultat_3);
Re: ereg to preg_match problem
Programming
Web Development
12 Years Ago
by diafol
Your call.
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by Webville312
Try going through this [forum](http://forums.phpfreaks.com/topic/173558-solved-deprecated-function-eregi-is-deprecated-in-cwampwwwage-artnewmodelspro/). I think it'll help
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by pritaeas
You'll need to use the `preg_match()` functions, and it's siblings.
Re: Function ereg() is deprecated Error in wamp server 2.2
Programming
Web Development
12 Years Ago
by jithinjohny
> You'll need to use the preg_match() functions, and it's siblings. > the error found for a library function that i have copied
show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by rpgowned
…;<input type="text" name="
eReg
|HRI_Seizure_Average_Duration" id="
eReg
|HRI_Seizure_Average_Duration" value="" size="30…> <td><select name="
eReg
|HRI_Heart_Condition" id="
eReg
|HRI_Heart_Condition"> <option></option…
Re: show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by rpgowned
…['asthmameds'].style.visibility='visible'}else {this.form['
eReg
|HRI_Asthma_Meds'].style.visibility='hidden'};"> <…="text" name="
eReg
|HRI_Asthma_Meds" id="
eReg
|HRI_Asthma_Meds" value=""…="text" name="
eReg
|HRI_Asthma_Meds" id="
eReg
|HRI_Asthma_Meds" value=""…
Re: show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by rpgowned
…" language="javascript"> function showresults(SiteValue) { if (
eReg
|HRI_Asthma == 'Yes') { document.getElementById('asthmameds').style.display=''; } else { document.…lt;input type="text" name="
eReg
|HRI_Asthma_Meds" id="
eReg
|HRI_Asthma_Meds" value="" size="30…
Re: show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by rpgowned
…/javascript" language="javascript"> function showresults(
eReg
|HRI_Asthma) { if (
eReg
|HRI_Asthma == "Yes") { document.getElementById('asthmameds').style.display…> <td><select name="
eReg
|HRI_Asthma" id="
eReg
|HRI_Asthma" onchange="showresults(this.value)"…
Re: show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by rpgowned
… <td><select name="
eReg
|HRI_Asthma" onchange="if (this.selectedIndex…=='1'){this.form['
eReg
|HRI_Asthma_Meds'].style.display=''}else {this.form['
eReg
|HRI_Asthma_Medss'].style.display='none'};"…="text" name="
eReg
|HRI_Asthma_Meds" id="
eReg
|HRI_Asthma_Meds" value=""…
Re: show tr's based on dropdown selection
Programming
Web Development
12 Years Ago
by AleMonteiro
What is `showresults(
eReg
|HRI_Asthma)` suppose to mean?
IE7 redirect problem
Hardware and Software
Information Security
16 Years Ago
by TranquilEd
…Run: [PPort11reminder] "C:\Program Files\ScanSoft\PaperPort\
Ereg
\
Ereg
.exe" -r "C:\Documents and Settings…\All Users\Application Data\ScanSoft\PaperPort\11\Config\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [ScanSoft …and Settings\All Users\Application Data\ScanSoft\OmniPage 16\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [QuickTime …
Re: IE7 redirect problem
Hardware and Software
Information Security
16 Years Ago
by TranquilEd
…Run: [PPort11reminder] "C:\Program Files\ScanSoft\PaperPort\
Ereg
\
Ereg
.exe" -r "C:\Documents and Settings…\All Users\Application Data\ScanSoft\PaperPort\11\Config\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [ScanSoft …and Settings\All Users\Application Data\ScanSoft\OmniPage 16\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [QuickTime …
Re: IE7 redirect problem
Hardware and Software
Information Security
16 Years Ago
by TranquilEd
…Run: [PPort11reminder] "C:\Program Files\ScanSoft\PaperPort\
Ereg
\
Ereg
.exe" -r "C:\Documents and Settings…\All Users\Application Data\ScanSoft\PaperPort\11\Config\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [ScanSoft …and Settings\All Users\Application Data\ScanSoft\OmniPage 16\
Ereg
\
Ereg
.ini" O4 - HKLM\..\Run: [QuickTime …
Please help with PHP Parse Errors
Programming
Web Development
12 Years Ago
by DrPepper8412
…;http:", $_REQUEST['bldgBrokerEmail']); $ckmail4 =
ereg
(" ", $_REQUEST['bldgBrokerEmail']); $ckmail5 =
ereg
("¥.¥.", $_REQUEST['bldgBrokerEmail']); $ckmail6 =
ereg
(",", $_REQUEST['bldgBrokerEmail']); $ckmail7…
Sign up page
Programming
Web Development
14 Years Ago
by Imratzio
… if(eregi("County",$field)) { if(!
ereg
("[A-Za-z]{2}",$value)) { …} } if(eregi("email",$field)) { if(!
ereg
("^.+@.+\\..+$",$value)) { $errors[] = "$value…
Parse error: syntax error, unexpected $end
Programming
Web Development
14 Years Ago
by bluetoot
…phone,$website,$comments); foreach ($name as $name) { if (
ereg
("^\.",$name)) { echo "<center>Invalid …lt;/a></center>"; Die(); } if (
ereg
("\[", $name)) { echo "<center>…lt;/a></center>"; Die(); } if (
ereg
("\]", $name)) { echo "<center>…
Re: Can someone review my HJTlog and tell me what i need to do?
Hardware and Software
Information Security
16 Years Ago
by kpyknot
…"PPort11reminder"="c:\program files\ScanSoft\PaperPort\
Ereg
\
Ereg
.exe" [2007-02-01 255528] "…Run: [PPort11reminder] "C:\Program Files\ScanSoft\PaperPort\
Ereg
\
Ereg
.exe" -r "C:\Documents and Settings\…All Users\Application Data\ScanSoft\PaperPort\11\Config\
Ereg
\
Ereg
.ini O4 - HKLM\..\Run: [BrMfcWnd] C:\…
1
2
3
14
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC