Jump to content

vijdev

Members
  • Posts

    109
  • Joined

  • Last visited

    Never

Everything posted by vijdev

  1. anything related to security?
  2. hi, when to use mysql_free_result()? is it always mandatory?..what happens if it is not used? what are the dangers of using and not using? thanks, vij
  3. exactly - so my Q is what is "proper encodings" and setup to load foreign chars? and are these settings generic..or specific to certain languages only?
  4. hi, how do i load something like Aabyhöj Aafsadîq Aakjær Abadín Abádszalók Ábær into INNODB?
  5. yes, the 0 should fail, and by my requirment it must be so.but i understand what you are saying in a generic sense.its a new insight-thanks. yes i need preg_match.
  6. thanks, guess that works. also found a method within regex: preg_match_all("/(^$)|(^[A-Za-z]{1,15}$)/",$input,$match); what do you think of this OR within the regex?
  7. how to specify: if (an input field is empty) { it is OK dont set $error['input'] } elseif(matches ^[A-Za-z]{1,15}$) { it is OK dont set $error['input'] } else{ set $error[input'] } in other words match empty or match regex for no error case
  8. Can someone point me to a good resource which does Session Storage and management using PHP/MYSQL?
  9. not really, mine is more basic.after getting the SSL for my domain, how do i control which pages get https, and which dont?
  10. after u get SSL, how to control which page has https and which has http?
  11. can someone please throw more light? also, does SSL work per page or per site?
  12. something like a loging in page, registration page, and yes ofcorse transaction functions. i knwo for transactions i will use SSL. what abt for other pages which collect personal info, tht i htink is critical for the site, even though it may be name and password..etc.? and what about how an SSL works? if i buy an SSL, does one SSL work for one page or work for an entire site?
  13. 1.should i be using an SSL on my login page, and any other form input page in my site? 2.is an SSL per page or per site? fyi: i am taking care to the best of my knowledge for security from php/mysql point of view, and i have a dedicated IP on a shared hosting.
  14. is this an overkill of functions, or is it good?..is there any redundancy, or is it falling short in anyway?? am getting the name from a form: $name=trim(addslashes(strip_tags($_POST['name']))); (once above is done, then $name is passed thru a regex test and lastly ofcourse am also doing a mysql_real_escape($name) before dumping into the DB - am sure of these two activities, but not the trim/addslash/striptag)
  15. thanks guys, the $ sign did help!...too many things to remember for a newbie like me! but it was a great learning one!thanks a lot!
  16. Ok, Let me put again the problem definition for clarity: 1.I need to check if input is only alphabets, not one single other type character 2.Needs to be minimum 1 char and max 20 characters long This is what am intending to do with above expression.Any directions?..have to admit it looks so simple! :|
  17. thanks, but would this solve my initial problem of not passing $#@$@ ?
  18. I want to have minimum one character and maximum 20 characters for that input field.
  19. $input=hjkhk$#@$@; $test=preg_match_all("/^[A-Za-z]{1,20}/",$input,$match); why does it pass $#@$@, although my definition ensures only alphas? how do i ensure $#@$@ is not passed, or anything else from the keyboard like :;{"}[]! is not passed? please help!
  20. $input= "King623456789"; $basic_check = preg_match("/^[A-Z]{1}[A-Za-z0-9]{4,9}/", $input, $inputComponents); $checknum= preg_match("/[0-9]/", $input, $numComponents); if ($myDate){ if($checknum){ echo "All Ok!"; } else echo "no number"; } else echo "absolutely no match!"; anyone any comments?
  21. I need to ensure a certain field input is: 1.having both alphabets and numerics 2.begins with uppercase alpha 3.must be min. 5 and max 10 characters in all. I am using ^[A-Z]{1}[A-Za-z0-9]{4,9}, but here are the drawbacks: 1.It does not mandate that a number exists in the input, it only ensures it is alphanumeric 2.ctype_alnum along with above regex also does not work. 3.I dont want to mandate that the numbers are only after the alphas(exception of 1st upper case alpha)
×
×
  • 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.