我是流明的初学者,这在一定程度上是基于php中的laravel。我尝试使用命令创建一个流明项目。
流明新博客
并在创建文件夹的情况下在我的终端中接收到以下输出:
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages
我把Caught exception: could not find driver放进我的
function connect_to_server()
{
$serverName = DB_HOST;
$this->_connection = new PDO("odbc:Driver={SQL Server};Server=$serverName,1433; Database=".DB_NAME.";",DB_USER,DB_PASS);
// $this->_connection = new P
在第一航站楼输入:
php -v
我得到了这个:
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pgsql: Unable to initialize module
Module compiled
在将PHP升级到5.5.1之后,我得到了这个错误:
Fatal error: Class 'COM' not found in
C:\inetpub\wwwroot\ndsystems\database_engine\mssql_engine.php on line 184
mssql_engine.php文件中的第184行:
$this->COMConnection = new COM('ADODB.Connection'); //line 184
try {
$this->COMConnection->Open($connec
我使用以下命令将PHP 7.0升级为7.1:
1. sudo add-apt-repository ppa:ondrej/php
2. sudo apt-get update
3. sudo apt-get install php7.1
并从laravel.com运行此命令
composer create-project --prefer-dist laravel/laravel blog
运行此代码后,得到以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
-
我把下面的代码写成一个php文件。
<?php
interface people
{
public function take($s);
}
class engineer extends people
{
public function take($s){
echo $s;
}
}
?>
人是一个界面,工程师是人的延伸。但是当我运行这段代码时,错误是:
Fatal error: Class engineer cannot extend from interface people in E:\php5\Mywwwroot\b.php on l
如果我调用phpDocumentor来生成文档,那么在XSLT开始之前,所有这些都可以正常工作。然后我收到以下信息:
[phpDocumentor\Plugin\Core\Exception]
The XSL writer was unable to find your XSLTProcessor; please check if you have
installed the PHP XSL extension
这非常令人困惑,因为已经安装了XSLT支持PHP &是激活的。以下是通过Debian终端提供的PHP信息的屏幕截图:
xsl
XSL => enabled
libxsl
您好,当我想要更改类别中的某些内容时,我遇到了一个新错误,因为我单击了目录>管理类别
处理您的请求时出错。
错误日志报告附在下面,请告诉我解决方案
a:5:{i:0;s:94:"Source model "neoshopsettings/blockposition" not found for attribute "category_block_position"";i:1;s:4045:"#0 /home/mybest/public_html/app/code/core/Mage/Eav/Model/Entity/Attribut
我想使用gettext和poedit与php一起进行网站翻译。我可以让poedit工作,但是gettext似乎不能在本地的web环境MAMP中工作,至少我认为这就是问题所在。
我的规格:
OS: Windows 10
Gettext 0.21 with Libiconv 1.16 (installed with executable)
Dev Server: MAMP 4.2 (both apache and nginx server show the same error)
Dev Environment: PhpStorm (with MAMP local server set up)
P
OS: ( Aardvark)
我已经安装了灯堆栈和Laravel,当我在我的Laravel应用程序中尝试composer install时,我得到了以下错误。
- Installation request for phar-io/manifest 1.0.1 -> satisfiable by phar-io/manifest[1.0.1].
- phar-io/manifest 1.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
我用PHP创建了一个简单的客户机服务器代码,并在浏览器中通过Wamp服务器本地主机运行它。它可以工作,但是当我在cmd中运行时,输出如下所示:
c:\wamp\www\Converter>php testserver.php
PHP Fatal error: Call to undefined function socket_create() in C:\wamp\www\Converter\testserver.php on line 15
PHP Stack trace:
PHP 1. {main}() C:\wamp\www\Converter\testserver.php:
如何解决PHP启动警告:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions
/no-debug-non-zts-20090626/imap.so' - /usr/lib/php/extensions/no-debug-non-zts-20090626
/imap.so: cannot open shared object file: No such file or directory in Unknown on
line 0
PHP Warning:
我犯了个错误
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_intl.dll' - /usr/lib/php/20151012/php_intl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/p
2019/01/14 12:04:51 [error] 21549#21549: *3558 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class SphinxMWSearch contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SearchDatabase::doSearchTextInDB, SearchDatabase::doSearchTitleInDB)
问题:
我有一个Docker组合与一个nginx服务和一个PHP服务。当我试图打开dev项目的页面时,会遇到以下错误:
致命错误:调用第16行/usr/share/nginx/html/some_project/some_path/Bootstrap.php中的未定义函数bindtextdomain()
我发现这是一个缺少依赖的问题:php-gettext。
My配置:
在我的Dockerfile中,我尝试安装它:
FROM php:5.6.30-fpm
MAINTAINER DarckCrystale "xxx@xxx.xx"
# Here I try to ins