草庐IT

missing-symbols

全部标签

php - 使用符号链接(symbolic link)删除 .php 扩展名 -> 提供原始 .php 文件

我已经为我的index.php创建了一个符号链接(symboliclink)(使用ln-sindex.php测试)来尝试获得一个没有.php扩展名的“更漂亮”的url。但是,当我访问https://myservername.com/test我得到的是原始php文件,而不是解释后的内容。如果可能的话,我想避免必须打开mod_rewrite,因为它只针对这一个文件(我使用的是CodeIgniter框架,它为其余文件执行url转换)。有没有办法让apache读取真正的目标文件而不是符号链接(symboliclink)来确定它是一个php脚本?有没有更好的方法来实现这一点?

php - Composer 安装 : the json extension is missing

我在Linux终端中写道:curl-shttps://getcomposer.org/installer|php它说:#!/usr/bin/envphpSomesettingsonyourmachinemakeComposerunabletoworkproperly.Makesurethatyoufixtheissueslistedbelowandrunthisscriptagain:Thejsonextensionismissing.Installitorrecompilephpwithout--disable-json我这样做了:apt-getinstallphp5-json所以,

phpMyAdmin - 错误 : (The mysqli extension is missing) after upgrading php 5. 6 到 php 7

通过这种方式将php5.6升级到php7后,ubuntu16.04上的phpmyadmin出现问题:sudoadd-apt-repositoryppa:ondrej/phpsudoapt-getupdatesudoapt-getinstallphp7.0php5.6php5.6-mysqlphp-gettextphp5.6-mbstringphp-mbstringphp7.0-mbstringphp-xdebuglibapache2-mod-php5.6libapache2-mod-php7.0在这个命令之后:sudoa2dismodphp5.6;sudoa2enmodphp7.0;s

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\

Nginx 和 Dropbox 文件夹内的符号链接(symbolic link)根目录导致 "File not found."

原始问题Imetastrangeproblemwithnginx+php-fpm.Ifmyrootdirectorysettosomethinglike~/playground/apps/foo/public/,everythingworksfine.IfIsymlink~/playgroundto~/Dropbox/playgroundNginxrendersa"Filenotfound."string.Ifirstthoughtthatitwasapermissionsproblem,butitisn't(doublecheckedwithasimplephpfile)Somyqu

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 - $serviceUrl : Caught Exception: Missing serviceUrl configuration value

我正在用PHP脚本创建RequestReport。我似乎被$serviceUrl的问题困住了——这给了我很好的时尚"CaughtException:MissingserviceUrlconfigurationvalue.YoumayobtainalistofvalidMWSURLsbyconsultingtheMWSDeveloper'sGuide,orreviewingthesamplecodepublishedalongsidethislibrary.ResponseStatusCode:-1ErrorCode:InvalidServiceUrlErrorType:RequestI

php - mod_php APC 被符号链接(symbolic link)混淆,包含相同的文件两次 - 为什么?

我为文件夹(比如website)设置了一个Apachevhost,它是另一个链接到当前版本文件夹(比如website_N)的符号链接(symboliclink)其中N是版本号(website->website_123)。部署新版本时,将创建另一个名为website_N+1的文件夹,当其内容准备就绪时,将重新创建website符号链接(symboliclink)以链接到该新文件夹(website->website124).这个设置似乎混淆了APC的包含缓存。有时(不总是,这很烦人)在新部署之后,应用程序中的以下符号链接(symboliclink)开关include和require指令开始

php - Laravel 应用程序共享托管,存储文件夹符号链接(symbolic link)问题

我已经在本地PC上创建了符号链接(symboliclink),它工作正常,但我已经将它上传到共享主机,它在那里不起作用。基本上我在存储文件夹root/storage/public/images/中有图像我想通过获取来显示它们$path=asset('storage/images/'.$item->image);所以问题出在这种方式的共享主机上$path=asset('storage/images/'.$item->image);从域目录而不是父目录获取,因此无法在共享主机上创建符号链接(symboliclink),所以我应该怎么做才能从父目录获取图像。我是laravel的初学者,可以帮

php - Facebook 错误 "Missing redirect_uri parameter."

Kohana_Exception[0]:Errorfetchingremotehttps://graph.facebook.com/oauth/access_token?client_id=&client_secret=&code=&redirect_uri=http%3A%2F%2F%2Flogin%3Fmethod%3Dfboauth%26redirect_uri%3Dhttp%253A%252F%252F%252F[status400]{"error":{"type":"OAuthException","message":"Missingredirect_uriparameter