Jump to content

david.marks

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

david.marks's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Agreed that this is excellent information.  (And thank you for the prompt reply.) However, I am looking to resolve the opposite problem.  Pages that I would expect to be cached are NOT.  (I have tested in both Firefox and IE)
  2. When I click "Back" in the browser, my PHP page is rebuilt from scratch.  This clears any form variables and unnecessarily hits the database.  Why isn't the page being cached and simply reloaded?  I fear that I'm missing something obvious. Can anyone offer any tips?
  3. Excellent!  Thank you for the prompt reply. I haven't needed preg_ functions until now.  I stumbled around there for a while until I figured out that the expression needed proper delimiters.  I am up and running now. Thanks again!!  I'd still be lost without your assistance.
  4. I am trying to employ a common regex for password verification in PHP 5.0.5.  The goal is to simply reject passwords that don't meet the length requirement of 8-25 characters, and that don't have at least one each of numbers, upper case and lower case letters. I grabbed this example from a regex reference site: ("^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,25}$ My code looks like this: if (!eregi("^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,25}$",$password) {//do something} This gives me the following error: "Warning: eregi() [function.eregi]: REG_BADRPT..." The problem seems to be with the ?= lookahead operator.  All references suggest this is valid code, but PHP seems to choke on it.  Other regex seem to work fine, so I'm at a loss. Can any experts offer any ideas?  Thanks in advance. - David Marks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.