下面的正则表达式在我的测试服务器上运行良好,但在我的托管服务器上只返回一个空字符串。
$text = preg_replace('~[^\\pL\d]+~u', $use, $text);
现在我很确定这归结于PCRE的托管服务器版本没有启用Unicode属性支持。两个版本的不同之处如下:
我的服务器:
PCRE version 7.8 2008-09-05
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
I
Public Async Function Kick(ByVal user As IGuildUser, <Remainder> ByVal reason As String) As Task
Dim guild = Context.Guild
Dim bot = Context.Client
Dim message = Context.Message
Dim u = Context.User
'Channel Info
Dim _client As New DiscordSocketClie
问题是,我使用iframe通过https上的POST处理登录表单,但是托管iframe的父服务器是http (虽然在同一个域中)
这可行吗?
我还不能对此进行测试,因为我只能在我们的登台环境中使用https。
谢谢
function process_form(f){
var l = $("iframe#loginFrame");
if(l.length==0){
f.attr("target","loginFrame");
$('<iframe src=