Tag: php

Linux Shell:使用 SendGrid Email API 发送邮件, SendGrid App for google cloud platform, php, phython, shell script 发送邮件

什么是 SendGrid 电子邮件服务? SendGrid 是一项基于云的电子邮件服务,该服务提供了可靠的事务电子邮件传递、伸缩性、实时分析以及可用于简化自定义集成的灵活的 API。 常见 SendGrid 使用方案包括: 自动向客户发送收据 管理用于每月向客户发送电子传单和特惠产品/服务的通讯组列表 收集诸如已阻止的电子邮件和客户响应性等项目的实时度量值 生成用于帮助确定趋势的报告 转发客户查询 以电子邮件的形式从应用程序发送通知 有关详细信息,请参阅 https://sendgrid.com。 创建 SendGrid 帐户 注册地址:sendgrid 免费客户每月可解锁 40k 封免费电子邮件。 通过每月的这 40k 封免费电子邮件… Read More

PHP: 通过字母大小写分割字符,大写字符分割到数组, php explode at capital letters?

I have strings like, $a = 'helloMister'; $b = 'doggyWaltz'; $c = 'bumWipe'; $d = 'pinkNips'; How can I explode at the capital letters, search on google for some time and came back with nothing! Thanks. 解决: If you want to split helloMister into hello and Mister you can use preg_split to split the string at a point just before the uppercase letter

为 Eclipse For JAVA 部署常见的插件(Plugin)- PHP, WEB TOOLS, FTPS, Maven

  1. Install a Maven 依次选择Eclipse菜单栏的“Help”菜单à“Instance NewSoftWare”菜单项,就会弹出如下对话窗口: 选择“Add..”按钮,又会弹出如下对话框: 这个对话框就是用于添加一个插件地址的。在“Name”对应的输入框里输入该操作的一个标识名。在“Location”对应的输入框里输入这个插件的安装地址。注:Maven的Eclipse插件地址为:http://download.eclipse.org/technology/m2e/releases。输入后,如下图所示: 输入完成后,点击右下角的“OK”按钮,就会弹出如下对话框: 这里需要选择想要安… Read More

PHP 加密用户密码 How to store passwords safely with PHP and MySQL

Do not store password as plain text Do not try to invent your own password security Do not ‘encrypt’ passwords Do not use MD5 Do not use a single site-wide salt What you should do Use a cryptographically strong hashing function like bcrypt (see PHP’s crypt() function). Use a random salt for each password. Use a slow hashing algorithm to make brute force