Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. The fact that your method has not been broken through does not imply that it is secure. The resource that you are protecting may just not be any good for a spammer to abuse. Spammers go after article directories, blogs, contact forms to send outbound email, social bookmarking websites, etc. If you have any of the above and have a decent google ranking and are not protecting your registration or submission forms then be prepared for the worst.
  2. I wrote it
  3. This CAPTCHA is not unreadable at all: http://www.articlealley.com/contact.php Nor has it been bypassed
  4. Bots can read email
  5. start apache and mysql? chkconfig httpd on chkconfig mysqld on
  6. You should have paid attention or asked for help if you don't understand. This is simple stuff and if you don't get it then paying somebody to do it won't help as you wont understand what you are handing in. When you say you think that you have done part A which is user signup. Have you got a form which users enter their details and it is recorded into the user database table? If so do you have a login system that checks the input against the username and password field in the user table? I can point you to tutorials but nobody here will do any work for you!
  7. You need a user_to_friends table Lets change your users table so the pk is user_id user_to_friends =========== id INT AUTO INC user_id INT friend_id INT 1 1 2 2 1 3 3 2 1 4 3 1 5 3 2 So user_id 1 is friends with user_id 2 and user_id 3 user_id 2 is friends with user_id 1 user_id 3 is friends with user_id 1 and user_id 2 Also in your users table the fields username and password should not be varchar 255. When have you ever used 255 characters for either. I would say that 10 characters is big enough.
  8. Using text for a CAPTCHA is a bad idea. Your CAPTCHA is best created using the GD functions and the most obscure fonts. The actual code is stored in a session that a bot has no access to. The only method is OCR. The more obscure the font the harder to do. Implement in the following way: <img src="captcha.php" /> The best protection is recaptcha http://recaptcha.net/ I have never been able to break through this nor found anyone who has.
  9. Basic, but will give your the source $url = "http://www.google.com"; $page = file_get_contents($url); print "<xmp>".$page."</xmp>";
  10. All ltrim does is remove whitespace from the left side of the string. What you need is to use substr() to get a substring or use preg_match() to extract the non numeric part or break up the string using the hyphen i.e. explode()
  11. I could break through that easily. Put it on a form and I will prove it!
  12. Insert into database 1 Drop the connection Connect to database 2 (mysql_connect() & mysql_select_db()) Insert into database 2
  13. Edit >> Preferences >> Code Format Disable automatic wrapping Edit >> Preferences >> Code Rewriting Select never rewrite code. Remove all other checkboxes
  14. Probably need to build a new array from looping over the first array
  15. Make sure that you set no-cache in your META tags also otherwise people may see bad words no matter what the time.
  16. Then dont use the email address to unsubscribe members. What you want is a unique lets say 25 character key against the users records in the database. This key is used to unsubscribe the member. i.e. unsubsc.php?key=h65$$3esc55ijgg222jbs76 etc
  17. Its hard to say if it looks anything with just a huge lump of script posted. What matters is if it generates the results you require. You would be better posting a sample of the arrays returned by your functions and then post what you would like the final result to look like.
  18. Is your script using global variables?
  19. Im not sure what you are expecting. urlencode() is for encoding non-alphanumeric characters only into their corresponding hex equivelent. i.e. $x = "text+1234 abc_99 &?"; $x = urlencode($x); then decode after passed through url $y = urldecode($_GET['x']);
  20. to merge arrays use array_merge() and to remove duplicates use array_unique()
  21. Your syntax is bad echo '<a href="hdsfsad.php?foo=', urlencode($userinput), '">a link</a>'; Should be echo '<a href="hdsfsad.php?foo='.urlencode($userinput).'">a link</a>'; And secondly the encoded version of jack is still jack!
  22. Im sure word wrapping can also be done using CSS
  23. You could use a text wrap function in php or substring the text. i.e. If I have a string of text: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbcccccccccccccccccc This is obviously going to push the cell width no matter what you set it to. If however I use a wrap function I could end up with a string like aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaabbb bbbbbbbcccccccccccccc etc, that will fit
  24. Bad syntax $_POST['"$key"'] = $value; use $_POST[$key] = $value;
  25. What is this part? $sum = $result->id; What it the start value of $sum?
×
×
  • 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.