
ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
Except it was less error prone.
-
print '<a href="http://domain/page.php?user=' . $_SESSION['username'] . '">click</a>';
-
Have you got an SMTP installed? Then modify your SMTP settings in the php.ini
-
$parts = explode('-', $var); print $parts[1];
-
use re-captcha http://recaptcha.net/ as a captcha code. They give you detailed information in how to use their API http://recaptcha.net/plugins/php/
-
pass VARCHAR(16) to pass VARCHAR(32) register: INSERT INTO tbnlmembers VALUES(NULL, '$user', MD5('$pass'), '$fname', '$lname', '$email') login: SELECT * FROM tbnlmembers WHERE username = $username AND pass = MD5('$pass')
-
Have you got an SMTP installed?
-
You can use ini_set('sendmail_from', $from); or the better option: $headers = "From: $from\r\nReply-To: $from\r\n";
-
UPDATE members SET passwd = $newpasswd WHERE member_id = $id Next time make some effort and read the mysql manual as what you are asking for is simple and is covered in each and every tutorial and php/mysql book.
-
Can't find the other article, sorry.
-
If you are looking for someone to write something for you then you should have posted in the freelance section.
-
Have you added the From: header?
-
OO has a reputation (if used in a correct fashion) for letting your code-base grow without that many headaches. But this may be not an option at the time as the application is already build and re-building is expensive. So I would advice to try to re-factor your current code-base.
-
I sometimes use a combination of list and mysql_fetch_array with the MYSQL_NUM as a second parameter for convenience reasons.
-
Don't know if you heard of it: http://ajaxian.com/archives/captcha-cracking-in-javascript-with-canvas-and-neural-nets This is what my search on Google reader turned up.
-
Yes, if you were to follow this target you would end up with a different image generated to the one on the initial form and another session value would be set. That is why I mentioned capturing the screen when the form page is requested in the inpital post process. Reading the source won't work because you can't apply OCR on source code (something alex didn't think about before posting) thus the only valid option is capturing the screen at a certain url. This can be done using the GD library afterwards I guess you'll need the algorithm explained on NSR. I've read something similar a while ago.. can't remember where though but the idea was similar to that of NSR and provided C source code.
-
put words from a string as indivual items in array
ignace replied to dadamssg's topic in PHP Coding Help
It's name does tend to fool anyone (it even almost fooled me) not reading the manual properly. As it contains a format (hence the 1 in my function call) to set the type of return. -
It is not a folder or file name it's the direct source code of the image placed directly into the src attribute of the image
-
Or in other words: Engage brain before opening mouth
-
His question was not which captcha he should be using or what are good and bad captcha's. He wants to try breaking captcha's thus reverse engineer them go from the image back to the text and wants opinions or suggestions on how to achieve that goal.
-
Right and then how would you apply OCR on something like: <img src="qmdhstqst3q3d5hq37g5hq45347tj3q56j4y78sqwrd74jy6+q84ky35s734eyk7s 78ylu4s88l4rs78ul869sr9ur9+§lu/7rs3lu874d73§lu6s346s4ku486sr">
-
put words from a string as indivual items in array
ignace replied to dadamssg's topic in PHP Coding Help
or: print_r(str_word_count("The quick brown fox jumped over the gate", 1)); -
If he didn't knew it he would know now but he ain't using mysql_fetch_array
-
IMO you should always specify the field names if you are not going to use all columns returned. Maybe it is even better to always specify all the field names even if you are using all columns. This helps your teammates and yourself to understand what is in the result set and limits the result set if you'd ever add columns.
-
Echoing mixture of variables and text from a text file ?
ignace replied to johnnycashpoint's topic in PHP Coding Help
That's not possible because i randomly select one line (as file reads a file into an array) store it in $rand and retrieve that row by using $sentences[$rand] If it would however select all rows then you would get an error from printf saying something like: too few arguments.