i have asked question twice think, first time have gotten close this. planning on allowing users upload , download files (.pdf, .doc, .exl, .ppt, .png, .jpg, .gif). will these tips suffice: http://blogs.sans.org/appsecstreetfighter/2009/12/28/8-basic-rules-to-implement-secure-file-uploads/ also, there script can utilize, new php. a late response, think script should based on this: http://blog.insicdesigns.com/2009/01/secure-file-upload-in-php-web-applications/ it covers aspects of security , explains valid points. hope helps. edit: above link dead, here cached version of article .
how love regex! i have string mangled form of xml, like: <category>dir</category><location>dl123a</location><reason>because</reason><qty>42</qty><description>some desc</description><ipaddress>127.0.0.1</ipaddress> everything on 1 line, 'headers' different. so need extract information string above, putting dictionary/hashtable -- string mystring = @"<category>dir</category><location>dl123a</location><reason>because</reason><qty>42</qty><description>some desc</description><ipaddress>127.0.0.1</ipaddress>"; //this extract name of label in header regex r = new regex(@"(?<header><[a-za-z]+>?)"); //create collection of matches matchcollection mc = r.matches(mystring); foreach (match m in mc) { headers.add(m.groups["header"].value); } //this try , values. r = new regex(@"(...
Comments
Post a Comment