C++短信接口

C++短信接口

C++代码示例 //接口类型:互亿无线营销短信接口,支持发送会员营销短信。 // 账户注册:请通过该地址开通账户http://user.ihuyi.com/register.html // 注意事项: //(1)调试期间,请仔细阅读接口文档; //(2)请使用 APIID 及 APIKEY来调用接口,可在会员中心获取; //(3)该代码仅供接入互亿无线短信接口参考使用,客户可根据实际需要自行编写; // DEMO仅作参考 #include <arpa/inet.h> #include <assert.h> #include <errno.h> #...

C/C++ 2021-07-05 PM 1999℃ 0条
C/C++ curl 访问https链接

C/C++ curl 访问https链接

#include<iostream> #include<string> #include<curl\curl.h> using namespace std; static size_t downloadCallback(void *buffer, size_t sz, size_t nmemb, void *writer) { string* psResponse = (string*) writer; size_t size = sz * nmemb; psResponse->append((char*) buff...

公告 2021-06-29 PM 2779℃ 0条
c++ curl 读取网页代码

c++ curl 读取网页代码

#include<iostream> #include<string> #include<curl\curl.h> using namespace std; static size_t downloadCallback(void *buffer, size_t sz, size_t nmemb, void *writer) { string* psResponse = (string*) writer; size_t size = sz * nmemb; psResponse->append((char*) buff...

C/C++ 2021-06-29 PM 1886℃ 0条
C++使用curl下载文件(get请求)

C++使用curl下载文件(get请求)

使用curl也可以下载文件,代码如下:#include<iostream> #include<string> #include<curl\curl.h> using namespace std; //下载文件数据接收函数 size_t dl_req_reply(void *buffer, size_t size, size_t nmemb, void *user_p) { FILE *fp = (FILE *)user_p; size_t return_size = fwrite(buffer, size, nmemb, fp); ...

C/C++ 2021-06-29 PM 3768℃ 0条
C++ SLEEP 延时输出内容

C++ SLEEP 延时输出内容

#include <iostream> #include <ctime> #include <Windows.h> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { cout << "******************...

C/C++ 2021-06-29 PM 2275℃ 0条
linux shell 监控进程是否运行

linux shell 监控进程是否运行

#!/bin/sh #Project3 为进程名 # 提示错误请用该命令处理下文件空格 sed -i 's/\r$//' ./run.sh ps -fe|grep Project3 |grep -v grep if [ $? -ne 0 ] then echo "Project3进程不存在" #不存在则运行 nohup /cmd/Project3 jc1.4936.cn 10 >>/cmd/jc1run.log 2>&1 & nohup /cmd/Project3 jc2.4936.cn 11 >>/cmd/jc2run....

linux 2021-06-20 PM 2304℃ 0条
PHP缓存写入和读取缓存文件

PHP缓存写入和读取缓存文件

调用: $cacheData = serialize(数据);//序列化 $this->cacheWrite($cacheData, '缓存名称'); /** * 写入缓存 */ function cacheWrite ($cacheData, $cacheName) { $cachefile = EMLOG_ROOT . '/content/cache/' . $cacheName . '.php'; $cacheData = "<?php exit;//" . ...

PHP 2021-06-19 PM 2155℃ 0条
shell 进程守护

shell 进程守护

!/bin/shProject1 为进程名ps -fe|grep Project1 |grep -v grepif [ $? -ne 0 ]thenecho "start process....."/cmd/Project1#进程路径elseecho "runing....."fi

linux 2021-06-18 PM 1800℃ 0条
宝塔 Empty reply from server

宝塔 Empty reply from server

宝塔 Empty reply from server是 Nginx免费防火墙 5.0 的问题,卸载后任务正常运行了,

linux 2021-06-15 PM 1620℃ 0条
php远程获取网站的关键字信息(并附:php判断字符串编码)

php远程获取网站的关键字信息(并附:php判断字符串编码)

<meta http-equiv= "Content-Type" content= "text/html; charset=UTF-8" /> <?php function check_utf8( $checkString ){ if (preg_match( "/^([" . chr (228). "-" . chr (233). "]{1}[" . chr (128). "-" . chr (191). "]{1}[" ...

PHP 2021-06-13 PM 1811℃ 0条
php动态数组的用法

php动态数组的用法

// 创建连接 $con = new mysqli($servername, $username, $password, $dbname); // Check conection if ($con->connect_error) { die("连接失败: " . $con->conect_error); } $sql = "SELECT * FROM table limit 0,1000"; $result = $con->query($sql); if ($result->num_rows > 0) ...

PHP 2021-06-13 PM 1746℃ 0条