본문 바로가기

The Answer!!808

SMTP 메일보내기 PHP로 SMTP email을 보내는 방식으로 PHPmailer를 사용하는 방법도 있는데, 저는 pear mail을 사용하였습니다. 우선 패키지를 설치하여야 하는데 설치 방법은 PEAR MAIL 에 있습니다. 위의 설치 방법이 아닌 파일을 다운로드해서 설치 할 수도 있습니다. pear mail 다운로드 다운로드하셔서 임의의 폴더에 풀어주시면 됩니다. 저는 사용하기 편하도록 php파일이 있는 폴더에 설치를 하였습니다. 먼저 사용할 smtp지원 메일의 정보를 확인해야 합니다. 제가 사용한 메일입니다. PHP 코드입니다. 123456789101112131415161718192021222324252627282930313233Colored by Color Scriptercs Line 2 : 아까 설치한 pear .. 2016. 7. 20.
password 찾기 메일보내기 안드로이드 예제소스 PHP예제소스 바로 전에 포스팅한 Android-MySQL 통신하기에서 했던 로그인 예제를 사용하여 비밀번호를 메일로 찾는 예제를 만들었습니다. 일단 순서는 안드로이드 쪽에서 PHP를 이용해서 MySQL에 있는 정보와 일치하는지를 확인합니다. 일치하면 또 다시 PHP를 통해 MAIL을 전송하게 됩니다. 로그인 화면에서 Finding PW를 클릭하면 위와 같은 화면이 나타납니다. 가입정보를 입력한 후 Finding PW 버튼을 클릭하면 메일로 비밀번호가 전송됩니다. 메일함으로 가보니 메일이 와 있습니다. 클릭해보면 비밀번호가 메일에 포함되어 있습니다. 2016. 7. 20.
ANDROID - MYSQL 통신하기 안드로이드 소스코드 PHP 소스코드 이 전에 포스팅을 했었지만, 직접 실행해 볼 수 있도록 외부 클라우드 서버로 연결했습니다. 이 전 포스팅 보기~ 우선 개념은 앞서 포스팅한 내용과 같습니다. 안드로이드에서 직접적으로 MySQL(Database)에 접속을 할 수 없습니다. 그렇기 때문에 중간에 PHP를 거쳐야 하는데, 이 PHP는 DB서버에 있든 또 다른 서버 PC에 있든 상관은 없습니다. 우선 안드로이드에서 PHP가 있는 서버쪽으로 접속을 해서 PHP파일을 실행합니다. 물론 네트워크를 사용하는 것이기 때문에 스레드를 사용하여야 합니다. ANDROID CODE 123456789101112131415161718public class loginMysql extends Thread { public static.. 2016. 7. 15.
FrogJmp FrogJmpCount minimal number of jumps from position X to Y.Task descriptionA small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D.Count the minimal number of jumps that the small frog must perform to reach its target.Write a function:class Soluti.. 2016. 7. 12.
OddOccurrencesInArray 1. OddOccurrencesInArrayFind value that occurs in odd number of elements.Task descriptionA non-empty zero-indexed array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired.For example, in array A such that: A[0] = 9 A[1] = 3 A[2] = .. 2016. 7. 12.
CyclicRotation 1. CyclicRotationRotate an array to the right by a given number of steps.Task descriptionA zero-indexed array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is also moved to the first place.For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, 7]. The goal is to rotate array A K .. 2016. 7. 12.

인기글