Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

WHY PHP NO WORK

Name: Anonymous 2008-06-18 0:17

DEAR PROG

WHY NO WORK?
SICP WAS NO HELP.

url_setopt($curl, CURLOPT_POSTFIELDS,"name_f="$_POST["username1"]");
url_setopt($curl, CURLOPT_POSTFIELDS,"name_l="$_POST["username2"]");
url_setopt($curl, CURLOPT_POSTFIELDS,"pass0=$_POST["pass"]");
url_setopt($curl, CURLOPT_POSTFIELDS,"pass1=$_POST["pass"]");
url_setopt($curl, CURLOPT_POSTFIELDS,"email=$_POST["email"]");

Name: Anonymous 2008-06-19 5:59

>>31
rindex finds the last occurrence of a character, in this case 0, in a string. It's O(n).

Here's an O(1) strlen in C:
size_t strlen(const char *s){
 return *(char *)s = 0;
}


POSIX doesn't say strlen can't modify the string!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List