草庐IT

library-path

全部标签

php - PHP include_path 主值从何而来?

通过phpinfo,我得到以下include_pathMasterValue。.:/usr/share/pear:/usr/share/php似乎没有在任何地方设置...phpini已将所有include_path(s)注释掉,我的应用程序没有手动设置它,apacheconf/phpconf/其他各种conf/ini没有设置它,没有搜索set_include_path或phpvalue或ini_set等时的结果。还有什么地方可以设置“include_path”吗?我特别询问有关主值的问题。(我在CentOS5.4上) 最佳答案 来自

php - set_include_path() 不适用于相对 require()

我正在“要求”一个文件,该文件有自己的require()调用。但是调用set_include_path()并不适用于require()中的相对路径。不幸的是,我无法控制所需的代码文件。C:/myapp/index.php-我的代码set_include_path(get_include_path().';C:/app/subfolder');require('C:/app/subfolder/index.php');C:/app/subfolder/index.php-第三方代码(无控制)require('../config.php');//RequirefilelocatedatC:

php - fatal error : Class 'Memcached' not found in/my/path

当我尝试时:$mc=newMemcached();我明白了Fatalerror:Class'Memcached'notfoundin/my/pathphpinfo说/etc/php5/apache2/conf.d/20-memcached.ini作为附加的.ini文件加载。这个文件的内容是这个:;uncommentthenextlinetoenablethemoduleextension=memcached.sodpkg--get-选择|grep内存缓存libmemcached6installmemcachedinstallphp5-memcachedinstall库本图Apache2

php - 如何将多个 url/path 合并到多维数组中?

我有这样的数组:$path=array([0]=>site\projects\terrace_and_balcony\mexico.jpg[1]=>site\projects\terrace_and_balcony\new_york.jpg[2]=>site\projects\terrace_and_balcony\berlin.jpg[3]=>site\projects\terrace_and_balcony\Kentucky.jpg[4]=>site\projects\terrace_and_balcony\Utah.jpg[5]=>site\projects\terrace_an

php - 无法设置 PHP include_path

我已经在var/www/html中上传了我所有的文件,在我的一个php文件中我有这一行:require_once('libraries/stripe/init.php');我的文件夹结构如下:www-html/-libraries->Stripe->init.php-register.php我不断收到此错误消息:Warning:require_once(libraries/Stripe/init.php):failedtoopenstream:Nosuchfileordirectoryin/var/www/html/register.phponline116Fatalerror:req

php - WAMP: "' php' 未被识别为内部或外部命令可运行程序或批处理文件”,尽管添加了 PATH

当我在CMD中运行PHP时,我收到此错误消息:'php'isnotrecognizedasaninternalorexternalcommandoperableprogramorbatchfile路径已经添加,我遵循了本教程:http://perials.com/install-composer-on-windows-and-wamp/C:\ProgramFiles(x86)\Lenovo\FusionEngine;C:\ProgramFiles(x86)\NVIDIACorporation\PhysX\Common;C:\ProgramFiles(x86)\Intel\iCLSCli

php - 我如何使用 GD Library 扭曲图像?

我想将图像倾斜成梯形。左右边缘需要上下笔直;顶部和左侧边缘需要有角度。我不知道最好的方法是什么。我正在使用GD库和PHP。谁能指出我正确的方向?谢谢,杰森 最佳答案 试试这个: 关于php-我如何使用GDLibrary扭曲图像?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/1650358/

php - 如何在 PHPSESSID cookie 中设置 PATH?

我的服务器上运行着许多项目,所有这些项目都使用PHPsession进行身份验证。现在,由于PHPSESSIDcookie将cookie路径设置为set-cookieheader中的“/”,因此该cookie在整个域中都可用,而我只需要它对当前应用程序可用。因此,出现了以下问题:登录mysite.com/application-1的用户会自动登录mysite.com/application-2mysite.com/application-3mysite.com/application-4..等等那么,如何设置PHPSESSIDcookie的路径? 最佳答案

php - Silex check_path 验证用户登录的代码

我目前正在关注SecurityServiceProvider上的Silex教程.我有登录表单,使用此代码将我的check_path设置为/login_check:$app->register(newSilex\Provider\SecurityServiceProvider(),array('security.firewalls'=>array('admin'=>array('pattern'=>'^/contacts/add','form'=>array('login_path'=>'/login','check_path'=>'/login_check'),'users'=>arr

php: 加载 oracle 驱动程序给出错误 "Unable to load dynamic library - The specified procedure could not be found."

我似乎对PHP有一个奇怪的问题。我已经将一堆软件从一台服务器迁移到另一台服务器。在服务器上,一些脚本与Oracle建立连接,因此为了能够建立连接,安装了oracle客户端并准备了一个tnsnames文件。来自sql*plus的连接有效。一些脚本使用PDO,因此我在php.ini中启用了extension=php_pdo_oci.dll。这些脚本就像一个魅力。其他一些脚本使用像oci_connect这样的函数,这些需要像php_oci8.dll这样的扩展。使用xammp(我用作apache/php/mysql包)php_oci8_12c.dll已交付,所以我认为扩展就足够了。启动服务器时