If you match a string to a regular expression, there are often lots of ways it can match. And if you're just saying "does this match", that's fair enough ... but if you're wanting to extract the matched data, you need to give it more thought.
A Perl match to /-?\d+\.\d+/ in an if statement will g ....
There's a vital need to validate user inputs in PHP - to make sure that users have put something sensible into the boxes on your forms. And there are multiple ways of doing this:
a) You can check the incoming strings against regular expressions. In the old days you may have used the ereg functio ....
No Shepherds around to be delighted (or is it warned), but a lovely sunset over The Spa!
No Shepherds around to be delighted (or is it warned), but a lovely sunset over The Spa. ....
Last Sunday was... a Sunny day. And looking at the diary for Well House Manor, I noted that it was the last day until almost Christmas when all of our rooms were vacant during the day. So - what better chance to take some updated photographs?
Bedroom 1. A quiet room around the back of the property, ....
I'm going 2 days of PHP in London, and I've elected to travel by train. As I'm actually writing this, I'm somewhere between Twyford and Maidenhead, when I should now be on the underground somewhere near Euston Square. We were 35 minutes late leaving Reading, and our express train on the slow lin ....
I've just received an email that was sent to me via "graham@twerp.org.uk", bounced to the sender, and was resent. And my wife received an email from a well reputed local company the other day, with the message "fix this bitch" attached to her original email by the manager to the minnion who respond ....
The 11th day of the 11th month ... and Remembrance Sunday. I was honoured to represent the Chamber of Commerce in laying a wreath at the war memorial in Melksham. And it was heartening to see so many people there - a packed church and a filled Canon Square. There are now no remaining soldiers alive ....
I set myself a challenge this afternoon ... to get some good current photos of the dogs out in the field.
It was a beautiful afternoon, and even in our flat lands the landscapes are spectacular.
Now Billy can run - great circles, and fast. And trying to catch a 35 m.p.h. greyhound on a camer ....
When you write web applications, there are many features you'll need which mirror features other people have needed too. Now - there's nothing to stop you writing your own code (maybe in Ruby, Python or Perl) including these features ... but wouldn't it be better to use the feature set that someone ....
As you want to do more in an online application, you need to link a series of forms together. There's a limit to how much you can expect your users to enter on one page, and almost inevitably they'll want feedback as they go through a series of steps. So multiple forms is natural, with each encour ....