This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Deluxe mail test script by Wesley Fredrick | |
// | |
//Offers three ways to test mail: | |
// | |
//PHP mail() - Uses the PHP mail() function | |
//SMTP - Opens a direct connection to the relay server and uses the smtp protocol | |
//sendmail from shell - Uses a php shell() to run the sendmail command as if from SSH | |
ini_set('track_errors', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*This is for a stackoverflow answear: | |
http://pt.stackoverflow.com/questions/144150/como-implementar-timeout-no-recv-em-socket-h/164440#164440 | |
the code was compiled with mingw g++ using codeblocks, in order to compile this code you must link it to the ws2_32.lib on windows | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <winsock2.h> | |
int main(){ | |
UINT fd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*This is for a stackoverflow answear: | |
http://pt.stackoverflow.com/questions/144150/como-implementar-timeout-no-recv-em-socket-h/164440#164440 | |
the code was compiled with mingw g++ using codeblocks, in order to compile this code you must link it to the ws2_32.lib on windows | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
#include <winsock2.h> | |
int main(){ |