<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=UTF-8 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=343503208-14102009>The
fact that it's the entire POSIX set of commands makes me wonder if it was some
licensing issue or similar as against a valid technical one.</SPAN></FONT></DIV>
<DIV><FONT size=2><BR>Regards,<BR><BR>Phil Beynon<BR>Sales & Operations
Director<BR><BR>** Infolink Electronic Systems Ltd.<BR>** S/W Birmingham's
Longest Established ISV & VAR<BR>** <A
href="http://www.infolinkelectronics.co.uk/"
target=_blank>http://www.infolinkelectronics.co.uk</A><BR>** Professional Web
2.0 Design & Advanced Hosting Platforms<BR>** <A
href="http://www.coeus-computica.co.uk/"
target=_blank>http://www.coeus-computica.co.uk</A><BR>** Affordable
Knowledgebase Solutions<BR>** Contact: Sales@infolinkelectronics.co.uk<BR>** Tel
/ Fax 0121 441 3558<BR></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>ereg was not the main problem we cam across it was the removal of the
split function which was being used in loads of places for internally passing
csv strings about the place then splitting to an array for processing. A
real strange one to get depracated!<BR><BR>Alex Mace wrote:
<BLOCKQUOTE cite=mid:72DE5D1A-87C2-4EB7-AA4F-39304CCC3874@hollytree.co.uk
type="cite">Nah, I didn't get caught by that, fortunately because I've never
really used the ereg libraries, plus I had compiled PHP myself before I
upgraded.
<DIV><BR></DIV>
<DIV>We did get caught in work though when someone upgraded to 5.3 on one of
the boxes we run scripts on though as a lot of our legacy code base does use
ereg...</DIV>
<DIV><BR></DIV>
<DIV>Alex</DIV>
<DIV><BR>
<DIV>
<DIV>On 14 Oct 2009, at 00:25, Dave Holmes wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV text="#000000" bgcolor="#ffffff">That's sound like a man with snow
leopard which foisted 5.3 in as part of the upgrade ;)<BR><BR>All ours
app's started to moan about quite a few things... <BR><BR><BR>Alex Mace
wrote:
<BLOCKQUOTE cite=mid:73DD6C06-5164-4AC3-B145-3D61EE6D9DB7@hollytree.co.uk
type="cite"><PRE wrap="">Apart from the fact that eregi was deprecated in PHP 5.3 and will be
removed in 6...
Alex
On 13 Oct 2009, at 23:09, <A class=moz-txt-link-rfc2396E href="mailto:phil@infolinkelectronics.co.uk" moz-do-not-send="true"><phil@infolinkelectronics.co.uk></A> wrote:
</PRE>
<BLOCKQUOTE type="cite">
<BLOCKQUOTE type="cite"><PRE wrap="">You'd be best off performing some sort of regular expression match -
or using the filter extension ...
$email = filter_var($_POST['email'], FILTER_VALIDATE_EMAIL);
if(!$email) {
// invalid email address
}
(Requires PHP5, I think my syntax/usage is correct, but I've not
checked it)
</PRE></BLOCKQUOTE><PRE wrap="">The regex is (acting on the incoming variable $emaila)
if (!eregi (<A class=moz-txt-link-rfc2396E href="mailto:%5E%28%5Ba-z0-9_%5D%7C%5C%5C-%7C%5C%5C.%29+@%28%28%5Ba-z0-9_%5D%7C%5C%5C-%29+%5C%5C.%29+%5Ba-z%5D%7B2,4%7D$" moz-do-not-send="true">"^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$"</A>,
$emaila)) error_alert("Invalid Email Address");
where:-
function error_alert($msg){global $flag; $flag = 1; echo
"<script>alert(\"Error: $msg\");history.go(-1)</script>";}
Thats from a page where the form, validation and sending are done as
three
invocations via a switch, case, do something and break method. a -1
history
kickback works.
The eregi bit should be fairly PHP version unspecific though.
Regards,
Phil Beynon
Sales & Operations Director
** Infolink Electronic Systems Ltd.
** S/W Birmingham's Longest Established ISV & VAR
** <A class=moz-txt-link-freetext href="http://www.infolinkelectronics.co.uk" moz-do-not-send="true">http://www.infolinkelectronics.co.uk</A>
** Professional Web 2.0 Design & Advanced Hosting Platforms
** <A class=moz-txt-link-freetext href="http://www.coeus-computica.co.uk" moz-do-not-send="true">http://www.coeus-computica.co.uk</A>
** Affordable Knowledgebase Solutions
** Contact: <A class=moz-txt-link-abbreviated href="mailto:Sales@infolinkelectronics.co.uk" moz-do-not-send="true">Sales@infolinkelectronics.co.uk</A>
** Tel / Fax 0121 441 3558
<Phil Beynon.vcf>_______________________________________________
Phpwm mailing list
Website : <A class=moz-txt-link-freetext href="http://www.phpwm.org" moz-do-not-send="true">http://www.phpwm.org</A>
Twitter : <A class=moz-txt-link-freetext href="http://www.twitter.com/phpwm" moz-do-not-send="true">http://www.twitter.com/phpwm</A>
Facebook: <A class=moz-txt-link-freetext href="http://www.facebook.com/group.php?gid=2361609907" moz-do-not-send="true">http://www.facebook.com/group.php?gid=2361609907</A>
Post to list: <A class=moz-txt-link-abbreviated href="mailto:Phpwm@mailman.lug.org.uk" moz-do-not-send="true">Phpwm@mailman.lug.org.uk</A>
Archive etc : <A class=moz-txt-link-freetext href="https://mailman.lug.org.uk/mailman/listinfo/phpwm" moz-do-not-send="true">https://mailman.lug.org.uk/mailman/listinfo/phpwm</A>
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
_______________________________________________
Phpwm mailing list
Website : <A class=moz-txt-link-freetext href="http://www.phpwm.org" moz-do-not-send="true">http://www.phpwm.org</A>
Twitter : <A class=moz-txt-link-freetext href="http://www.twitter.com/phpwm" moz-do-not-send="true">http://www.twitter.com/phpwm</A>
Facebook: <A class=moz-txt-link-freetext href="http://www.facebook.com/group.php?gid=2361609907" moz-do-not-send="true">http://www.facebook.com/group.php?gid=2361609907</A>
Post to list: <A class=moz-txt-link-abbreviated href="mailto:Phpwm@mailman.lug.org.uk" moz-do-not-send="true">Phpwm@mailman.lug.org.uk</A>
Archive etc : <A class=moz-txt-link-freetext href="https://mailman.lug.org.uk/mailman/listinfo/phpwm" moz-do-not-send="true">https://mailman.lug.org.uk/mailman/listinfo/phpwm</A>
</PRE></BLOCKQUOTE></DIV>_______________________________________________<BR>Phpwm
mailing list<BR>Website : <A href="http://www.phpwm.org"
moz-do-not-send="true">http://www.phpwm.org</A><BR>Twitter : <A
href="http://www.twitter.com/phpwm"
moz-do-not-send="true">http://www.twitter.com/phpwm</A><BR>Facebook: <A
href="http://www.facebook.com/group.php?gid=2361609907"
moz-do-not-send="true">http://www.facebook.com/group.php?gid=2361609907</A><BR><BR>Post
to list: <A href="mailto:Phpwm@mailman.lug.org.uk"
moz-do-not-send="true">Phpwm@mailman.lug.org.uk</A><BR>Archive etc : <A
href="https://mailman.lug.org.uk/mailman/listinfo/phpwm"
moz-do-not-send="true">https://mailman.lug.org.uk/mailman/listinfo/phpwm</A></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>