You are here: Re: [PHP] regex and global vars problem « PHP « IT news, forums, messages
Re: [PHP] regex and global vars problem

Posted by Jasper Bryant-Greene on 10/26/05 21:19

On Wed, 2005-10-26 at 12:07 -0600, Jason Gerfen wrote:
> Um I did actually, but I will re-interate the problem with more detail.
>
> the vars $mac1, $mac2, & $mac3 are to get passed to the chk_mac()
> function which determines if it is a valid hex representation of a h/w
> address, if it does not meet the criteria of having a ":" separating
> every two characters it then passes the var to the fix_mac() function
> which attempts to fix the string or h/w address by either replacing any
> "-" with a ":" or to break the h/w address up and insert a ":" every two
> characters. I also believe this is the one you should be playing with
> as the last post I added a new regex which wasn't working.

OK, you've told us what your code does. Now can you explain what the
problem is? "A new regex which wasn't working" is a bit vague.

* Does it throw an error?
- If so, can we have the error message?

* Does it mark invalid strings as valid?
- Or vice versa?

Just posting a pile of code with an explanation of what it does and
leaving the rest of us to figure out what the problem is, is not helping
us to help you.

--
Jasper Bryant-Greene
General Manager
Album Limited

e: jasper@album.co.nz
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация