Jump to content


  • Posts

  • Joined

  • Last visited


About j.smith1981

  • Birthday 08/08/1981

Profile Information

  • Gender
  • Location
    Harrogate, North Yorkshire

j.smith1981's Achievements

Regular Member

Regular Member (3/5)



  1. Yes and I obviously over looked that did not I, what is your problem anyway?
  2. No this one worked hence why I didn't reply, just neglected to click solved.
  3. There must be a way of simplifying this though: <?php preg_match('/^[a-z]+ [a-z]+ [a-z]+ [a-z]+ [a-z]+ [a-z]+ [a-z]+/', 'this may or may not be valid', $matches) print_r($matches); This works absolutely fine but I am just curious to know a better way of doing this. Any help's much appreciated and thank you so far for your help, Jeremy.
  4. You know what just hit me lol, I neglected to realise that it takes appreciation to spaces, so it only goes up to yes the first word but doesn't go any further than that. I was putting in the numeric value at the end, so anything past 'this' will be immediately ignored. Makes sense now, I therefore randomly put a number in the first part of the subject and it fails to find a value, also I am pretty tired today so probably why I didn't think about yesturdays occurence of more or less the same thing. Thank you again though much appreciated! Jeremy.
  5. Yes I know, I mean I just neglected to realise I'd need to put in the plus sign + to get it to span the whole of the input/subject. It's still allowing numeric values in though, why is this? I mean I don't mind it just thought logically it should not, here's my expression as it stands now: <?php preg_match('/[a-z]+/', 'this may or may not be valid 1')
  6. Hi there got a bit of a thing that's maybe not bugging me but wanted to check on something with regular expressions. I have one here: preg_match('/[a-z]/', 'this may or may not be valid with 1') This still works, but I thought logically I should be putting something like [a-z0-9] or something to make numeric values valid in a regular expression but this just allows with a-z anyways, should this be happening? I mean sorry just so I can get you to understand my problem again the above complete regular expression should logically not be permitting anything from 0-9 I thought and just anything from a-z but it's not, why is this happening? Any helps much appreciated, Jeremy.
  7. Ok when I renamed the pear directory in /usr/share/pear to something like /usr/share/.pear (so not to remove it completely incase something went wrong), I then reinstalled pear and it keeps coming up with not as many as 11 errors of the same occurence but just 2 now. What could still be causing this? I thought removing pear completely would eliminate such an error? Any help agains massively appreciated, Jeremy.
  8. I am having problems upgrading my existing packages in PEAR. I mean I did try removing the .channels folder in my /usr/share/pear folder but this doesn't fix it nor does uninstalling pear and then reinstalling is there something I am missing sorry? I mean I have been on about 10 blogs and every solution doesn't seem to work, I keep getting the message: This occurs for 11 times in a row when I run: What is actually causing this? I mean I have tried removing the .channels folder as I said above and even tried removing pear but nothing seems to work, might try removing the pear folder perhaps (as that did not remove last time), is there anything else I am missing? Any helps much appreciated! Jeremy
  9. Sorry the last post I made does exactly the same thing I think really must try and get my brain working though but thank you so much is there any real difference though between the 2? I suppose with the {} curly braces you could have a min set and the plus (+) would just say 1 or more (which I remember being the metachar for. Am I thinking in the right sense between + and {1,} ? Finally understanding some rather simple but dynamic regexes really happy with what I am doing. Really appreciate your help though! Jeremy.
  10. Finally my heads kicked in lol: <?php preg_match('/index.php\?cat=\d{1,}&post=\d{1,}/', 'index.php?cat=25&post=65', $matches); {1,} means the character before the iteration must appear at least once but multiple times, anyways it works, tried even with {1,5} and deliberately entered 6 characters in the numeric part and it still works even, well not results come up but if I was to put in 6 using the {1,} then it would work. Thanks for your help, Jeremy.
  11. Tried this: <?php preg_match('/index.php\?cat=\d&post=\d\d/', 'index.php?cat=25&post=65', $matches); Does not now come up with any results, there must be a method for saying up to the next character which would be a letter, but I just can't work out the logic.
  12. Hi there, I was wondering if I could pick someones brains please? I am doing some work in regular expressions again, I thought why not have some fun with it, well I have setup this literal example but a bit baffled with what I am trying to do. Here's my logic: <?php preg_match('/index.php\?cat=\d\d&post=\d\d/', 'index.php?cat=25&post=65', $matches); What I would like to do is allow the \d\d (2 digits) to be anything like say i don't know 1 10 even 100000 you see? Is this possible if so how? I am trying to think about this critically but failing to do so to add to this, just though it would be fun any helps much appreciated, Jeremy.
  13. Hi there, I have been pondering doing some kind of e-commerce solution of my own at some point but before I want to start on this, what in the sense of security should I be considering if I want to possibly charge people for downloading this? I am more interested in the security aspect at the moment and would love to get your opinions, not actual work of course this would be entirely my own but is there any good tutorials on the web to touch on such projects in the sense of security though? I mean just any feedback is greatly appreciated, it's just I have been pondering this for ages since I work in e-commerce and would love to develop one possibly over the winter break, if anything just HTML eventually going into CSS and maybe some other nice technologies I think might be useful. I mean just for now though I want to concentrate on the security side like how's the best way to make a check out based on security aspects, so one can't go in there and grab a persons address (I know it's like locking your door someone can still break in if they break the door down as such), but it would just be really interesting. Any replies are massively appreciated in advance, Jeremy.
  14. Ahh that's really good I will definately use your guide as a way to go about doing Normalisation. Thank you so much! Jeremy.
  15. Oh sorry yes that's what I meant probably didn't describe it in that manner. So in effect you'd never set the SKU as being unique then in an SQL schema? I have seen though on many ecommerce open source and paid for solutions that do set the SKU or a productcode as being unique though. Just a little confused about that. I mean one way around that would be I suppose to make your own system based prefix maybe on them or something, a compound key in effect but hmmm would that not be contradicting the rules of that level?
  • 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.