Warning: strstr () [function. strstr]: Empty delimiterStrange: Is there a problem with a parameter in strstr of the php function?So I wrote a test example. The code is as follows:Copy code $ Text = "asdfghjklqwertyuiopzxcvbnm ";// $ Key = "g ";//
See some of these hints in the PHP error log:
[27-aug-2011 22:26:12] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on line 14
[27-aug-2011 22:26:18] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on
> When using PHP versions above PHP5.3, as long as the time involved will be reported in a "PHP warning:date () [function.date]: It is not safe to rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the
The Code is as follows:Copy codeThe Code is as follows:/*** Update invalid characters and sending/sending quota Information** @ Author* @ Copyright 2009-06-10*/Error_reporting (E_ERROR | E_WARNING | E_PARSE );Set_error_handler ('displayerrorhandler')
PHP warning:date (): It isn't safe to rely on the system's timezone settings. You are are *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you are used any of those methods and your are still getting
See the error log in PHP for some of these tips:
[27-aug-2011 22:26:12] PHP Warning:cannot use a scalar value as a array in/www/hx/enjoy.php in line 14
[27-aug-2011 22:26:18] PHP Warning:cannot use a scalar value as a array in/www/hx/enjoy.php in
The solution is to find the location of the error and then see which variable is not initialized and use it directly, and instantiate the variable first as an empty class. Such as:
Copy Code code as follows:
$CT = new StdClass ();
Modify
When using the strstr function in php today, the following error message is displayed: Warning: strstr () [function. strstr]: Empty delimiter. Later, the solution is found repeatedly. If you need it, you can refer to it.
Warning: strstr () [function.
The strtotime () function is a php date function. This problem occurs when the date. timezone in php. ini is not set. You only need to configure the time zone.
At the beginning of php5.1.0, the date. timezone option is added to php. ini, Which is
Www.2cto.com: In a word, the Temporary Folder permission is insufficient. Add the Temporary Folder write permission to the anonymous web account or group.
I just installed php in IIS. After the installation is complete, the test is displayed on
PHP prompts Creatingdefaultobjectfromemptyvalue, which is generally due to the PHP version upgrade, PHP5.4 or later versions usually report this error. the solution is to find the location where the error is reported and check which variable is used
The workaround is to find the location of the error and then see which variable is directly used without initialization, and instantiate the variable with an empty class first. Such as:
Copy CodeThe code is as follows: $ct = new StdClass ();
Modify
The following prompt appears when running phpinfo:PHP Warning: phpinfo () has been disabled for security reasons in XX. php on line XXThis section tells us that the phpinfo () function is disabled due to security considerations. If you have the
At the beginning of php5.1.0, the date. timezone option is added to php. ini, which is disabled by default. The display time is Greenwich Mean Time, which is exactly eight hours different from that in Beijing.Solution:Modify the php. Ini file and
The following warning message is reported when you run the php program:PHP Warning: date (): It is not safe to rely on the system's timezone settings. You are * required * to use the date. timezone setting or the date_default_timezone_set ()
The solution is to find the location where the error is reported and check which variable is directly used without initialization. The variable is first instantiated as an empty class. For example:Copy codeThe Code is as follows: $ ct = new stdClass
Failed loading/usr/local/Zend/lib/Optimizer-3.3.3/ZendOptimizer. so:/usr/local/Zend/lib/Optimizer-3.3.3/ZendOptimizer. so: cannot restore segment prot after reloc: Permission denied
It turns out this is a ghost of SELinux. There are two solutions:1.
PHP prompts creating default object from empty value of the problem, generally due to the PHP version of the upgrade reasons, PHP more than 5.4 version generally reported this errorThe solution is to find the location of the error and then see which
Apache is running normally and iis prompts error 500. what is the problem?
Include ('Conn/conn. php ');
Var_dump ($ mysqli );
$ SQL = "select * from user where username =? And password =? And var_zhibu =? ";
$ Stmt = $ mysqli-> prepare ($ SQL );
$
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.