草庐IT

connect_failed

全部标签

php - 警告 : preg_match(): Compilation failed: unrecognized character after (? 或 (?-

我有一个以前的程序员编写的代码,一个抛出编译错误的正则表达式preg_match:$regex_t="/".$op."(?\\>[^".$op.$cl."]+)*".$cl."/s";preg_match($regex_t,$text,$inner);我收到的警告是:Warning:preg_match():Compilationfailed:unrecognizedcharacterafter(?or(?-atoffset4另外,我想提一下var_dump($regex_t)的值是:string'/\{(?\>[^\{\}]+)*\}/s'(length=21)

php - 拉维尔 5.6 : Table creation failed

我是Laravel的新手,我正在尝试使用Schema外观创建表。我使用命令创建迁移文件phpartisanmake:migrationcreate_products_define_standards_table--create=products_define_standards这是文件:increments('id');$table->string('code')->unique();$table->string('image');$table->timestamps();});}/***Reversethemigrations.**@returnvoid*/publicfunctio

php - preg_match 错误 : Compilation failed: missing terminating ] for character class

我在for循环中读取了一系列.txt文件。我在一些文本文件中放置了一个token,格式为[widget_]因此,例如,文本文件的全部内容可能是[widget_search]。另一个文本文件可能包含内容[widget_recent-posts]。其他人可能只有html格式的文本,根本没有token。在for循环中,我正在执行preg_match以查看文本文件的内容是否与我的标记模式匹配。如果匹配,我将执行一些条件代码。但是,当我运行跟踪测试以查看是否存在匹配时出现错误。错误是:警告:preg_match()[function.preg-match]:编译失败:在C:\xampplite\

php - SQLSTATE[08001] : [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: No connection could be made because the target machine actively refused it

我的学说存储库代码无法运行,但我能够正常访问数据库和读取表数据。我得到这个堆栈跟踪:EntityManager->getRepository('AppBundle:Person')insrc\AppBundle\Controller\PersonViewController.php(line18)publicfunctionindexAction(Request$request){$em=$this->getDoctrine()->getManager();$repo=$em->getRepository('AppBundle:Person');$persons=$repo->find

php - preg_match "Compilation failed: missing )"

这可能是一个愚蠢的错误,但我有一个正则表达式应该匹配什么阿拉拉afkdsf[]afadf43fds["guyish"]但不是以数字开头的字符串这是代码preg_match('~^[A-Za-z][A-Za-z0-9]*(\[(?P"(?:.*(?:(?\\\\)*\").*|.*)+(?:(?\\\\)*"))\]|\[\]|)$~',trim($item[0],"\r"),$matches)但是当我执行它时,我得到错误Compilationfailed:missing)atoffset95当我执行它时here它工作正常吗?代码有什么问题?更新可读的正则表达式:~^[A-Za-z][A

php - Gmail fsockopen() : SSL operation failed error with Codeigniter and XAMPP

Errormessage1:Message:fsockopen():SSLoperationfailedwithcode1.OpenSSLErrormessages:error:14090086:SSLroutines:ssl3_get_server_certificate:certificateverifyfailedFilename:libraries/Email.phpLineNumber:1962Errormessage2:Message:fsockopen():FailedtoenablecryptoErrormessage3:Message:fsockopen():unab

php - 出现错误 mysqli::real_connect(): (HY000/2002): 当我尝试在实时服务器上访问我的项目时没有这样的文件或目录

这个问题在这里已经有了答案:mysqli_real_connect():(HY000/2002):Nosuchfileordirectory(19个回答)关闭3个月前。我已将我的网站上传到服务器,然后我尝试访问,但代码点火器向我返回错误,我找不到任何答案。为什么会这样?我的配置数据库设置如下:$db['default']=array('dsn'=>'','hostname'=>'localhost','username'=>'netservice','password'=>'*********','database'=>'valedastrutas','dbdriver'=>'mysq

PHP fatal error : require_once(): Failed opening required 'Zend/Gdata/Extension.php'

由于某些奇怪的原因,我现在无法弄清楚,NoEmbed.php在尝试包含文件时失败并出现fatalerror。包含路径设置正确,我已经验证如下(就在NoEmbed.php中的require_once指令之前):$s=ini_get('include_path');$a=explode(':',$s);foreach($aAS$path){echo$path;if(file_exists($path.'/Zend/Gdata/Extension.php'))echo'...found';elseecho'...notfound';}在预期位置输出“found”。我必须承认,我目前无法想出发

php - Symfony 2 ERR_CONNECTION_RESET

我在没有供应商的情况下下载了symfony2.0.9。之后我执行phpbin/vendorsinstall来安装供应商。过程顺利。但是当我执行http://localhost/project/web/app.php我收到了Error101(net::ERR_CONNECTION_RESET)我不知道发生了什么。如果我在app.php中注释行$kernel->handle(Request::createFromGlobals())->send();响应更改为200好的。有人知道问题出在哪里吗?我在PHP5.3.9提前致谢。 最佳答案

PHP socket_connect() 权限被拒绝

好的,我已经有一个运行良好的php服务器,它使用我编写的这个小函数打开了一个AF_UNIXsocet。像这样调用$IPC_connector=socket_create_IPC('/tmp/connection');functionsocket_create_IPC($FILE){#CreateaAF_UNIXsocketif(!($socket=socket_create(AF_UNIX,SOCK_STREAM,0))){$errorcode=socket_last_error();$errormsg=socket_strerror($errorcode);die("Couldn't