The role of a profile in a template is to define variables for the front-end design page, primarily to control the appearance of the template, regardless of the PHP program.
Steps to use:
1, use $tpl->configs_dir= "directory"//Specify the directory
The official given pseudo-static rules to try again no, below I give a solution, hope to help you:
Httpd.ini
[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect Httpd.ini and Httpd.parse.errors files
# from accessing
OK, because the organization needs, and recently started to go to PHP, business logic is OK, mainly the boss requires the data access layer to add login authentication.
In fact, this requirement is reasonable, the Internet service requires the upper
The general situation is php.ini configuration problem, according to the following configuration item again set again, and then restart the server, try!
(1) Setting the extension path
Find Extension_dir have this line
; extension_dir = "./"
Add
Definition and usage
The mysql_real_escape_string () function escapes special characters in strings used in SQL statements.
The following characters are affected:
\x00
\ n
\ r
\
'
"
\x1a
If successful, the function returns the escaped string. If it
1. Sys_getloadavg () function
SYS_GETLOADAVT () can obtain the system load condition. The function returns an array of three elements, each representing the average load for the system in the past 1, 5, and 15 minutes.
Instead of letting the
PHP error categories, mainly in the following three major categories:
1. Syntax errors
The program usually displays an error message when it is executed. This type of error prevents the page PHP script from performing other tasks. Such as:
Echo 100.
Definition and usage
The Addcslashes () function adds a backslash before the specified character.
Grammar addcslashes (string,characters)string is required. Specifies the string to check.Characters is optional. Specifies the range of characters or
Cannot Find-lltdl, compile PHP and make a mistake.
php "usr bin ld cannot find Lltdl" error occurred during the make process, with detailed errors as follows:
/usr/bin/ld:cannot Find-lltdl
Collect2:ld returned 1 exit status
Make: * * * [libphp5.la]
In the company encountered two PHP small problems, close-up, so that later see can be resolved.
Sleep (10); If it is not placed inside the for loop, it will continue to execute under the process without waiting.
Mb_strlen (Val, "Utf-8");It is also
Today, when learning unit tests in the YII framework, the following error is always encountered when running the "phpunit unit/dbtest.php" command.
PHP notice:please no longer include "phpunit/framework.php". In/usr/share/php/phpunit/framework.php
1. Any number of arguments to the function
You probably know that PHP allows you to define a default parameter for a function. But you may not know that PHP also allows you to define a function of a completely arbitrary parameter
The following is
The magic reference occurs when the $_get,$_post,$_cookie is passed
1.
Condition: Magic_quotes_gpc=off
The string written to the database has not been processed by any filtering. The string read from the database has not been processed.
Data: $data =
Author: aolinks
For most Web applications, a database is a very basic part. If you're using PHP, you're probably also using the Mysql-lamp series as an important part.
For many beginners, using PHP can easily write code with specific features in
PHP code
discuz! SESSION mechanism explained in X
In discuz! X in as always, the session does not use PHP's own session mechanism, but the system of a set of self-contained mechanism.
You can see two SESSION tables in the database:
One is
An array syntax
Defines an array of arrays ()
You can use the array () language structure to create a new array. It accepts any number of key (key) = = VALUES (value) pairs separated by commas.
Array (key = value
, ...
)
Key (Key) is an integer or
1, the Libmysql.dll file is missing in the System32 (C:\windows\system32) directory of the system, the workaround is to locate the Libmysql.dll in the PHP directory and copy the Libmysql.dll to C + + windows\ System32 directory, and then restart the
Using the PHP language to determine the browser type is actually very simple.
Because the browser is connected to the server, it will send some content containing their own information (browser type, language).
Our main analysis here is
1. The configuration file involved:
/etc/php5/apache2/php.ini
2. Specific line:
Display_errors =
error_reporting =
3. Remember to restart the service
Error reporting for PHPThere are many configuration settings in the php.ini file. You should have
Since the birth of PHP by the vast number of programming enthusiasts like to become a good helper of small and medium-sized webmaster, and training a large number of PHP programmers, but with the more extensive application of PHP, many times has not
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service