Pete Long
asked on
Error : Deprecated: Function eregi() is deprecated
Putting an email form on my site as per instructions at http://www.ibdhost.com/contact/
It works - But it throws that error at me..
Deprecated: Function eregi() is deprecated in /home/petenetl/public_html /KB/Articl e/sendeail .php on line 24
the line in the page it don't like is below. Some googling tells me that my host is probably using a newer verion of .php
So what can I change that bit of code to that will work?
Be aware I know nothing about code other than how to copy and paste it :(
Thanks
It works - But it throws that error at me..
Deprecated: Function eregi() is deprecated in /home/petenetl/public_html
the line in the page it don't like is below. Some googling tells me that my host is probably using a newer verion of .php
So what can I change that bit of code to that will work?
Be aware I know nothing about code other than how to copy and paste it :(
Thanks
if (eregi('http:', $notes)) { <<<<This one
die ("Do NOT try that! ! ");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks I got that much from google :)
a. it it that line that need to change or loads of lines?
b. As earlier stated I couldn't write code to save my life.
a. it it that line that need to change or loads of lines?
b. As earlier stated I couldn't write code to save my life.
ASKER
thanks pareshprajapati testing now.................
ASKER
..........awesome pareshprajapati that's exactly what I needed thanQ
ASKER
Perfect!!
Use preg_match instead of eregi