Advertisement
Advertisement

新足迹

 找回密码
 注册
新足迹 › 门户 › AI 相关› 查看内容

PHP如何在命令行call function?

2011-12-9 21:00| 发布者: hfwang | 查看: 1509| 原文链接

已经有检查email address的正则表达式了,

需要把导出的所有email address的输入文件,检查下看看有没有违规的email address。

请教怎么创建一个命令行的php脚本去调用is_valid function?


非常感谢。


上级只说了这些:

This is quite an extensive change to the regex. Are we confident it will work with all existing  email addresses?

Perhaps a test jig to test against the result of:

SELECT DISTINCT c.email
FROM account a
INNER JOIN contact c ON c.id = a.contact_id
WHERE a.when_closed IS NULL
AND c.email IS NOT NULL
AND c.email <> ""
i.e. export the result set to a file and create a command line Php script to call the is_valid function
Advertisement
Advertisement


Advertisement
Advertisement
返回顶部