PHP
MySQL Conference April 10, 2003. San Jose Rasmus Lerdorf http://lerdorf.com/mysqlconf.pdf
*Slide 1/51
The Good Old Days
April 10, 2003
Handling simple data coming from a form took something like this to do in C:
#include #include #include #include
#define ishex(x) (((x) >= '0' && (x) <= '9') || ((x) >= 'a' && (x) <= 'f') || ((x) >= 'A' && (x) <= 'F')) int htoi(char *s) { int value; char c; c = s[0]; if(isupper(c)) c = tolower(c); value=(c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10) * 16; c = s[1]; if(isupper(c)) c = tolower(c
↧