본문 바로가기

php17

[php] mail() 함수가 오류없이 작동하지 않을 경우(sendmail 설정확인) 여러가지 원인이 있겠지만 리눅스에 서툰 내가 3,4시간 삽질하면서 이것저것 웹서핑이나 책을 찾아보면서 queue 디렉토리를 보니 메일이 엄청나게 쌓여있더라는.. 거두절미하고;; /etc/mail/local-host-names 에 도메인을 등록이 되어 있는지 확인 후 등록되지 않았다면 도메인을 등록 후 sendmail 재시작 /etc/init.d/sendmail restart 재시작하자 /var/spool/mqueu/ 에 쌓여있던 메일이 전부 전송되었다~ 알면 간단한 부분인데 모르면 고생.. 출처 : http://blog.naver.com/PostView.nhn?blogId=wlsry82&logNo=80072476089&viewDate=¤tPage=1&listtype=0 2011. 6. 19.
Twitter OAuth for PHP The Open Source minefield Whilst I am a huge fan of open source, one of the downsides is it can be extremely hard to find definitive information detailing which versions of packages work with each other. Documentation in general is rather patchy. Using google to search for error messages is a good way of navigating some of the pain, but good and bad advice seems to exist in equal quantities! OAu.. 2011. 5. 10.
세션 Session Class 세션클래스는 사용자의 상태를 관리하고 사이트에서 하는 행위를 추적할수 있도록 해줍니다.세션클래스는 각 사용자에대한 정보를 직렬화하여 쿠키에 저장합니다.이때 필요하다면 암호화도 같이 할수 있습니다. 보안을 강화하기 위하여 세션데이터를 데이터베이스 테이블에 저장할수도 있습니다.이때 세션아이디는 사용자의 쿠키에 저장되며 이 아이디를 가지고 매칭되는 정보를 데이터베이스에서 찾게 됩니다. 기본값은 쿠키에 저장하는것입니다. 만약 데이터베이스에 저장하고자한다면 아래에 설명한 대로 세션테이블을 만들어야합니다. 참고: 세션클래스는 PHP에 내장된 세션을 사용하지 않습니다. 자체적인 세션데이터를 생성하여 보다 유연하게 개발할수 있도록 해 줍니다. 세션 초기화 Initializing a Session 세션은 통상 페이지 로.. 2011. 3. 16.
From MySQL to jQuery, via PHP, XML & Ajax Back in the early part of this year I posted an article around how to get MySQL data out of the database and into a web page via jQuery and Ajax. The tutorial was okay, but I made some rookie mistakes – specifically around the creation of XML data with PHP – This time, I hope to rectify that! So this article will focus on getting data from a database using PHP, converting that to an XML document.. 2011. 2. 26.