본문 바로가기

기타54

$_SESSION https://www.php.net/manual/en/reserved.variables.session.php PHP: $_SESSION - Manual I wrote a little page for controlling/manipulating the session. Obviously, never use this on a production server, but I use it on my localhost to assist me in checking and changing session values on the fly.Again, it makes use of eval() and exposes the ses www.php.net php 4.1이상부터 사용가능하다 기본적인 세팅은 그누보드를 참조했다. //==.. 2019. 4. 15.
ASP EXCEL 커넥션 스트링https://www.connectionstrings.com/excel/ "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=파일경로;Extended Properties=""Excel 12.0;HDR=YES;IMEX=1;""" https://docs.microsoft.com/en-us/sql/integration-services/load-data-to-from-excel-with-ssis?view=sql-server-2017 Microsoft Office Access Database Engine 오류 '80004005'설치 가능한 ISAM을 찾을 수 없습니다.-> 구문에러였음----문제점1 : xls파일을 불러왔을경우 첫번째 column을 읽어오지 못함 해결 .. 2019. 3. 25.
function * javascript function* 선언 (끝에 별표가 있는 function keyword) 은 generator function 을 정의하는데, 이 함수는 Generator 객체를 반환합니다.generator function 은 GeneratorFunction 생성자와 function* expression 을 사용해서 정의할 수 있습니다. https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/function* 2019. 3. 4.
It is not safe to rely on the system's timezone settings Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. da.. 2019. 2. 20.
atob, btoa BASE64변환 Window 객체에atob()와 btoa()함수를 제공한다.atob() : BASE64 스트링을 디코딩한다btoa() : BASE64 스트링을 인코딩한다 https://www.w3schools.com/jsref/met_win_atob.aspThe original string: Hello World!Encoded String: SGVsbG8gV29ybGQhhttps://www.w3schools.com/jsref/met_win_btoa.aspEncoded String: SGVsbG8gV29ybGQh Decoded String: Hello World! 2018. 11. 29.
PDF CANVAS에 출력 BLOB에 저장된 PDF파일을 출력해야될 일이 생겼다.찾아보니 여러가지가 검색되긴했는데 모질라쪽에서 아예 제공되는게 있었다.https://mozilla.github.io/pdf.js/https://mozilla.github.io/pdf.js/examples/index.html#interactive-examples Blob파일을 BASE64 스트링형태로 변환후 전송하고전송된 BASE64스트링을 PDF로 변환하는 형태로 진행했다. pdf.js와pdf.worker.js파일이 필요했고 EXAMPLE대로 따라하니 잘되었다.// atob() is used to convert base64 encoded PDF to binary-like data. // (See also https://developer.mozilla... 2018. 11. 29.
Classic ASP ZIP압축 Classic ASP에서 파일을 압축할일이 생겨서 찾아봤다.http://xstandard.com/en/documentation/xzip/ XZip.dll 파일을 등록후 적용했더니 작동이 잘된다. 2018-11-19 추가정보- 압축시 한글파일명이 들어갈시 압축이 되지가 않았다.- 단일파일 추가의 경우 한글파일 추가 되지 않았으나 폴더형태로 저장시 저장이 되었다.- 폴더내의 *.* 의 형태로 모두 저장함 2018. 11. 16.
Form to JSON FORM을 받아서 JSON형식으로 만들기var test = $(form).serializeArray();JSON.stringify(objectifyForm(test)) function objectifyForm(formArray) {//serialize data functionvar returnArray = {};for (var i = 0; i < formArray.length; i++){returnArray[formArray[i]['name']] = formArray[i]['value'];}return returnArray;} 2018. 11. 9.
ASP URLDecode FUNCTION URLDecode(str)'// This function:'// - decodes any utf-8 encoded characters into unicode characters eg. (%C3%A5 = å)'// - replaces any plus sign separators with a space character'//'// IMPORTANT:'// Your webpage must use the UTF-8 character set. Easiest method is to use this META tag:'// '// Dim objScript Set objScript = Server.CreateObject("ScriptControl") objScript.Language = "JavaScri.. 2018. 11. 8.