-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
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.
-
I wrote it
-
This CAPTCHA is not unreadable at all: http://www.articlealley.com/contact.php Nor has it been bypassed
-
Bots can read email
-
start apache and mysql? chkconfig httpd on chkconfig mysqld on
-
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!
-
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.
-
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.
-
Basic, but will give your the source $url = "http://www.google.com"; $page = file_get_contents($url); print "<xmp>".$page."</xmp>";
-
[SOLVED] Newbie - got a problem with ltrim
JonnoTheDev replied to colinsp's topic in PHP Coding Help
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() -
I could break through that easily. Put it on a form and I will prove it!
-
Insert into database 1 Drop the connection Connect to database 2 (mysql_connect() & mysql_select_db()) Insert into database 2
-
Probably need to build a new array from looping over the first array
-
Make sure that you set no-cache in your META tags also otherwise people may see bad words no matter what the time.
-
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
-
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.
-
Is your script using global variables?
-
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']);
-
to merge arrays use array_merge() and to remove duplicates use array_unique()
-
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!
-
Im sure word wrapping can also be done using CSS
-
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
-
adding $_POST variable like this: $_POST['$varname'] ??????????
JonnoTheDev replied to lip9000's topic in PHP Coding Help
Bad syntax $_POST['"$key"'] = $value; use $_POST[$key] = $value; -
What is this part? $sum = $result->id; What it the start value of $sum?