전체 글(80)
-
arrays-in-cookies-php
https://stackoverflow.com/questions/9032007/arrays-in-cookies-php Storing PHP arrays in cookies How is proper way to store an array in a cookie? in PHP Code example: $number_ticket=2; $info[7][5]=1; $info[8][5]=1; stackoverflow.com setcookie('tradeContentList', json_encode($tradeContentList), time()+86400); $data = json_decode($_COOKIE['tradeContentList'], true);
2021.12.05 -
[문제해결] Cookie “trade_imgListPointer” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute.
Web Console 메시지 Cookie “cookieName” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. 해결방법 1. php https://github.com/GoogleChromeLabs/samesite-examples/blob/master/php.md GitHub - GoogleChromeLabs/samesite-examples: Examples of using the SameSite cookie attribute in a variety of language, libraries Examples of using t..
2021.12.04 -
Linux locale 설정
sudo dpkg-reconfigure locales /etc/default/locale # File generated by update-locale #LANG=ko_KR.UTF-8 LANG=en_US.UTF-8
2021.12.03 -
How to Upload Image using PHP
https://www.devopsschool.com/blog/how-to-upload-and-compress-an-image-using-php/ How to Upload and Compress an Image using PHP - DevOpsSchool.com Spread the KnowledgemoreImage compression is very helpful to reduce the size of the image. Generally, the user does not optimize the image when uploading through the website. In this case,... www.devopsschool.com https://tutorialio.com/resize-an-image-..
2021.12.01 -
파일 업로드 압축 / 픽셀 조절 차이
핸드폰으로 찍은 사진이 4032x3024 픽셀인데 파이어폭스 , 크롬 , 새로운 IE에서는 이미지가 거의 깨지지 않는데, 모바일과 예전 IE 에서는 아래와 같이 이미지가 심하게 왜곡된다. ● 모바일 ● 예전 IE 먼저 파일을 압축해서 업로드하면 해결될까 싶어서 해보았더니 아래와 같이 여전히 이미지가 왜곡된다. ● 모바일 ● 예전 IE 픽셀을 줄여서 업로드하니깐 이미지 왜곡은 거의 줄어들었다. (그러나 화질이 많이 떨어진다. 확대를 했을 때 차이가 난다.) ● 모바일 ● 예전 IE
2021.12.01 -
잠금 오류 해결
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock* sudo dpkg --configure -a
2021.12.01