草庐IT

fatal_handler

全部标签

php - fatal error : Uncaught Error: Call to undefined function mysql_connect()

我正在尝试与XAMPP和MySQL服务器进行简单连接,但每当我尝试输入数据或连接到数据库时,都会收到此错误。Fatalerror:UncaughtError:Calltoundefinedfunctionmysql_connect()inC:\xampp\htdocs\register.php:22Stacktrace:#0{main}throwninC:\xampp\htdocs\register.phponline22第22行示例:$link=mysql_connect($mysql_hostname,$mysql_username); 最佳答案

PHP fatal error : Cannot access empty property

我是php的新手,我已经执行了下面的代码。my_value[]=$value;}functionset_value($value){//ErroroccurredfromhereasUndefinedvariable:my_value$this->$my_value=$value;}}$a=newmy_class('a');$a->my_value[]='b';$a->set_value('c');$a->my_class('d');foreach($a->my_valueas&$value){echo$value;}?>我得到以下错误。可能是什么错误?Notice:Undefined

php - fatal error : Call to undefined function curl_init()

base64_encode($data),'key'=>IMGUR_API_KEY);$timeout=30;$curl=curl_init();curl_setopt($curl,CURLOPT_URL,'http://api.imgur.com/2/upload.xml');curl_setopt($curl,CURLOPT_TIMEOUT,$timeout);curl_setopt($curl,CURLOPT_POST,1);curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);curl_setopt($curl,CURLOPT_POSTFIEL

php - fatal error : Call to undefined function mcrypt_encrypt()

注意:MCrypt支持所依赖的库已多年未更新,不应再将MCrypt视为一种可行或安全的数据加密方法。更重要的是,MCrypt在PHP5中已被弃用,并在PHP7中完全删除。如果您有任何运行MCrypt的代码,您应该重构它以使用更现代的加密库。有谁知道为什么当我在下面运行以下代码时显示此错误消息:(Calltoundefinedfunctionmcrypt_encrypt())?我是否遗漏了一些步骤,或者在此代码可以工作之前我必须在PHP中进行任何设置?$key='passwordto(en/de)crypt';$string='stringtobeencrypted';$test=mcr

php - fatal error : Maximum execution time of 300 seconds exceeded

我不断收到这个PHP错误:Fatalerror:Maximumexecutiontimeof300secondsexceeded我尝试将我的max_execution_time和max_input_time在php.ini(apache和cli)中设置为0、-1和4000秒。我仍然收到错误消息:Fatalerror:Maximumexecutiontimeof300secondsexceeded在我收到此消息之前,我的脚本运行了300多秒我正在通过命令行运行脚本。我还检查了我的phpinfo(),看看我正在使用哪个php.ini。更有趣的是,我尝试将max_execution_time

PHP memcached fatal error : Class 'Memcache' not found

我粘贴了php.net中的示例在php中使用memcached,我得到:Fatalerror:Class'Memcache'notfound我的php.ini中有这个:[memcache]memcache.hash_strategy="consistent"memcache.max_failover_attemps=100memcache.allow_failover=1以下是分别来自php-i和php-m的信息:php-i|grep-imemcachememcachedmemcachedsupport=>enabledlibmemcachedversion=>0.37Register

c++ - Visual Studio : LINK : fatal error LNK1181: cannot open input file

一段时间以来,我一直在VisualStudio2010中遇到一个奇怪的错误。我有一个解决方案,其中包含一个编译为静态库的项目,以及另一个非常简单但依赖于该库的项目。有时,最近几天非常频繁,在重建解决方案或仅使用1-3个更改的源文件编译后,我收到以下错误:2>LINK:fatalerrorLNK1181:cannotopeninputfile'thelibrary.lib'==========RebuildAll:1succeeded,1failed,0skipped==========编译thelibrary.lib是成功的,没有任何错误或警告。我已尝试清洁解决方案,但这并不总是有效。

c++ - fatal error LNK1104 : cannot open file 'libboost_system-vc110-mt-gd-1_51.lib'

看来我不能让它工作。我制作了一个简单的控制台应用程序(依赖于websocket++库),它需要Boost库..但是当我尝试编译时,我得到:fatalerrorLNK1104:cannotopenfile'libboost_system-vc110-mt-gd-1_51.lib'但是,我做了bjam,它在(boost_root)/stage/libs中创建了库,并将库的路径链接到编译器C++/Additionnals包含.如果我查看(boost_root)/stage/libs文件libboost_system-vc110-mt-gd-1_51.lib不存在。它被称为libboost_s

c++ - fatal error : "No Target Architecture" in Visual Studio

当我尝试在Win32或x64模式下使用VisualStudio2010编译我的c++项目时,我收到以下错误:>C:\ProgramFiles(x86)\MicrosoftSDKs\Windows\v7.0A\include\winnt.h(135):fatalerrorC1189:#error:"NoTargetArchitecture"我的预处理器定义说WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)是什么导致了这个错误,我该如何解决?//winnt.h:lines127-136,MSVSsaysthisisaninactiveprep

php - 如何解决 "Fatal error: Class ' MySQLi' not found”?

我正在做一个教程并收到此错误:Fatalerror:Class'MySQLi'notfound(LONGURL)online8第8行的代码是:$mysqli=newMySQLi($db_server,$db_user,$db_pass,$db_name);我在网上看到有人说要在我的phpinfo()中打开它,但是“mysqli”下面没有列出任何东西。另外,我正在运行PHP版本5.2.5 最佳答案 听起来你只需要installMySQLi.如果您认为您已经这样做了,但仍然有问题,请发布您的操作系统和任何其他可能有助于进一步诊断的信息。