Before we just write PHP, do backstage, need administrator authentication. This is generally done with cookies, especially PHP enthusiasts who have just contacted PHP:
admin/login.php
if (User name&&Password is correct) {Setcookie(' admin ',1,
Many organizations have adopted Apach and PHP as their Web application environment. The use of PHP in Web Services mode may seem more difficult. But in fact, with Nusoap, you can easily apply PHP to build soap's client and server side.
An example
Finished PHP4 call JavaBean, and want to try to call COM, began to think that it is very difficult, I wrote an active DLL in the PHP4 call, the immediate success, more convenient than the call JavaBean, the following my steps.
One: Write an ActiveX
master server Settings
The Apache server requires a variety of settings to define itself using various parameters to provide Web services. In the case of using a virtual host, the settings are also the default settings for the virtual host, in
If you want to generate a word verification code we must have a well-done word library, the following I have prepared a TXT file, which put a lot of words, we just create a random read to the birth achievement ko.
Specific
The code is as
The Apache Server1_3_12_win32 version is referenced here.
ServerType Standalone
#设置服务器的形式是单独启动 (standalone), or by the inetd of the Internet servo program to start. The former is generally used.
ServerRoot "D:/apache"
#设置服务器的Home目录, the settings
There are built-in functions available in PHP for escaping some common output targets, including client, database tutorials, and URLs.
It's important to be foolproof if you're going to write an algorithm of your own. It is necessary to find a
Anywhere liuxiLzl@163.net
PHP installation procedures, the Internet has a lot of information, are very detailed. However, since the installation of free software such as apache,php does not have a friendly user interface like commercial software,
This article to introduce PHPCMS 2008 the latest vulnerability graphic test detailed, there is a need to understand the students can enter the reference reference.
Phpcms2008 is a Web site content management system based on PHP+MYSQL architecture
The following $username, $password refers to the user name and password, $sitekey the site scrambling code.
Password settings
When submitting, use JavaScript to process
T_code0.value = MD5 (username.value "|" Passwd.value);
Passwd.value = ";
PHP tutorial several ways to prevent injection
Actually it turns out that we need to filter some of our common keywords and conform to such as:
select,insert,update,delete,and,*, wait.
Example:
function Inject_check ($sql _str) {Return eregi ('
In PHP we provide a function var_export he can directly put the PHP code into a file OH.
The code is as follows
Copy Code
Var_export ($times, true); Cannot write to file after not added$fp = fopen (' aa.txt ', ' w+
One of the prerequisites is that our page must be a PHP type of page, if you generate HTML static page This method is not ok oh, let's look at the PHP implementation of the code to prohibit IP segment access to the site.
The code is as
This article introduces the module configuration that PHP cannot load in its own environment, and now we are looking for a solution and some minor problems caused by the solution according to the problem. Today when the configuration of PHP, found
One, MySQL tutorial driver mysqlndAll along, the PHP tutorial is connected to MySQL via MySQL client, and now MySQL has officially launched the PHP version of the MySQL client, and this mysqlnd effectively reduce memory usage and improve performance.
For PHP environment friends to share about PHP need to prohibit some dangerous functions, friends can according to their own needs to prohibit the use of functional functions.
Phpinfo ()Function Description: Output PHP environment information and
What is Hessian?
I do not know how to read this word, the phonetic transcription is [hes] read Hesse.
Hessian is a lightweight, remote data Exchange tool that provides the functionality of RMI (remote method calls) using a simple method. Simpler and
PHP filter for unsafe HTMLUse PHP to filter the code in HTML that might be exploited to introduce external dangerous content. Sometimes, you need to let users submit HTML content,
To enrich the information that users post, of course, some of the
Phplib can also do a lot of other things, such as database classes. This article is just a brief introduction to Phplib. There are many classes and features that are not mentioned. You can go to http://phplib.netuse.de to get more help
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