프로그램 (PHP,Python)251 728x90 정규식(RegExr) 공유 사이트 (flex 기반) 개발자분들이라면 한번쯤 유용한 사이트가 아닌가 생각된다. gskinner.com의 운영자가 만든 정규식 커뮤니티 사이트이다. 이런걸 만들생각을 하고 참 기발하고 대단한 발상이다. 정규(표현)식은 대부분 언어별로 약간의 차이가 있긴하지만 대부분 필수 구문은 거의 동일하다. 따라서 해당 사이트에서 정규식을 공유하고 이를 실제 프로젝트에 십분 활용해본다면 매우 바람직할것이다. 본인이 만든 정규식을 추가할수 있고 간단한 설명문구와 함께 바로 실행해 볼 수도 있다. 대체식($n,...) 을 사용하여 현재 적용된 패턴을 바로 확인 해 볼 수도 있다. 또 데스크탑에서 실행될 수 있는 AIR 버젼도 제공하고 있다. 간단하게 테스트 해봤는데 잘 동작된다. 훌륭하다. 출처 : http://www.happyfri.com 2009. 10. 5. swf 파일 분석툴 SWFTools SWFTools is a collection of utilities for working with Adobe Flash files (SWF files). The tool collection includes programs for reading SWF files, combining them, and creating them from other content (like images, sound files, videos or sourcecode). SWFTools is released under the GPL. The current collection is comprised of the programs detailed below: PDF2SWF A PDF to SWF Converter. Generates on.. 2009. 10. 1. 웹개발 유용한 정규식 표현 8가지 Background Info on Regular Expressions This is what Wikipedia has to say about them: In computing, regular expressions provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. Regular expressions (abbreviated as regex or regexp, with plural forms regexes, regexps, or regexen) are written in a formal languag.. 2009. 9. 30. 안전한 PHP 파일 업로드 구현 체크 리스트 1. Content Type 검증 $_FILES['uploadfile']['type']로 MIME type 검증 * PHP가 받아오는 MIME type은 웹브라우저가 넘겨주는 값을 그대로 쓴다. 대다수 웹브라우저들은 확장자로 MIME type을 결정하기 때문에 신뢰도가 떨어지는 건 어쩔 수 없다. 2. Image 파일 검증 $imageInfo = getimagesize($_FILES['uploadfile']['tmp_name']); getimagesize로 MIME type 검증하기 * 이미지 업로드시 쓰는 방법이다. 이미지라면 제대로 값을 return 해주지만 그렇지 않으면 return을 못한다. 3. 확장자 검증 $filename = $strtolower($_FILES['uploadfile']['na.. 2009. 9. 23. mysqli 활용한 SQL Injection 예방 SQL Injection 예방을 위한 DB 쿼리 방식을 mysqli 를 활용하여 Executes a prepared Query 방식을 통해 안전한 DB 쿼리를 할 수 있다. 이에 대한 예제를 참고로 기존 코드 및 차후 코드를 변경하는 것이 보안성 및 편리성을 추구할 수 있다. 아래에서 동일한 기능을 하는 간단한 예제 두가지 방식을 제시한다. Example #1 Object oriented style Example #2 Procedural style 위 예제의 출력: Stuttgart (DEU,Baden-Wuerttemberg) Bordeaux (FRA,Aquitaine) 예제 출처 : http://kr.php.net/ 2009. 9. 21. 이전 1 ··· 36 37 38 39 40 41 42 ··· 51 다음 728x90 728x90