English 中文(简体)
PHP 5.2 preg_match()汇编失败
原标题:PHP 5.2 preg_match() compilation failure

非常感谢一些帮助。 我的服务器边的更新使我发表了评论,以留下两个验证错误。 第一是:预先警报:前言: 汇编失败:在[此处的文字位置和行文错误]中,在品级的次序范围为13所抵消——其次为主题核对,相抵14。

它在电子邮件地址支票上这样做:

if (preg_match( /[^a-zA-Z0-9_-.]/ , $_POST[ txtEmail ]))

检查:

if (preg_match( /[^a-zA-Z0-9:?-. ]/ , $_POST[ txtSubject ]))

我不熟悉购买力平价,但可以切割和 past! 我的网站是浏览的,它把评论表带给我们,使我们在主办本组织更新后开始出现错误。 提前感谢。

问题回答

页: 1 它具有特殊的意义,因为错误信息背后。 在负数之前使用斜体:

preg_match( /[^a-zA-Z0-9_-.]/ 

(代之,<代码>-可能是特性组的第一或最后一件事,因此失去其特殊职能)。)

if (preg_match( /[^a-zA-Z0-9_.-]/ , $_POST[ txtEmail ]))

if (preg_match( /[^a-zA-Z0-9:?.-]/ , $_POST[ txtSubject ]))




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签