/**********************************************************
Clears files in the specified directory
**********************************************************/
function Clean_dir ($path) {
if (!is_dir ($path)) {
if (Is_file ($path)) {
Unlink ($path);
Install php4+ PERSONAL oracle8i under WIN98
Personal Oracle8i is a mature version of the Oralce database, which is simply a condensed version of Oracle8i. Allows programs or other system personnel to develop or learn from Oracle on a single machine,
Installing amp
Apt-get Install apache2 mysql-server php5 php5-mysql5
Configure Apache2 Default Site
Vi/etc/apache2/sites-enabled/000-default
Join a row
Redirectmatch ^/$/apache2-default/
Testing this step does not require
Modifying the Apache2
php5.3 or above can use the PHP management crontab planning tasks, let me first experience, there is a need to learn to understand the friends can enter the reference.
1. Using Php-crontab-manager to manage Scheduled tasksRequest php>=5.3
Examples
In PHP tutorial if you want to use it image processing function must be in the php.ini inside the GD library open Oh,
*/
Send header File
Header ("Content-type:image/png");
Create an image if the output fails
$im = @imagecreate (150,50) or Die
Chinese characters in PHP may be some friends feel very simple, but in use will find in the GBK encoding and UFT8 coding may be a little different oh, the following small part to introduce.
Chinese character regularization under GBK coding
1.
Apmserv is an integrated PHP MySQL Apache application development environment, after installation to help me configure the environment and there are phpmyadmin, below I would like to change the root password at the same time to change the phpMyAdmin
Read a lot of tutorials on the internet is only a part of it, if the connection database is only to write the connection data or query only query, the following article from PHP configuration MySQL connection and then to query data instance.
Let's
A php proportional generation of thumbnail code in this article image is the image you want to generate a picture address Oh, this is a PHP proportionally generated thumbnail code, just give you the picture he can generate a specified size of the
PHP Chinese character Verification Code generation program This is the PHP Chinese character verification code generator is very simple, the generation of Chinese character verification code needs to support the font, the following we use the
PHP Verification Code Program A PHP code program function, the principle is to use the PHP GD library to generate random numbers, and then create a session with a digital picture, it became a graphics verification code.
PHP Tutorial Verification
PHP Read Directory Image file This is a PHP read directory like file Oh, code, he used the Opendir to open the directory and then get the file suffix name, determine whether the specified file.
PHP Tutorial Read directory image fileThis paragraph is
The GET_MAGIC_QUOTES_GPC function is a way to determine if the data provided by the user is increased by a slash, which in the php.ini configuration file Oh, let me introduce the GET_MAGIC_QUOTES_GPC () function description.
GET_MAGIC_QUOTES_GPC
Here small to share some webmaster summed up to prevent SQL injection attack instances and experience, I hope this tutorial can provide you with a little help Oh.
First, the server-side configuration
Security, PHP code writing is on the one hand,
Recently mobile Internet hot we need to do a PC station with WAP station, to achieve if the user is a computer to access the WAP station automatically into the PC station, and vice versa, below I have compiled some code with you to see.
Method One:
This article to introduce a PHP Webshell scanning backdoor Trojan instance program, this can scan your website Trojan program Oh, this to everyone to find the site Trojan provides a great convenience, there is a need for friends to refer.
In the past, we used PHP to generate no background or the same color background verification code, but this kind of verification is easy for the machine to recognize, let me introduce some of the background of the generation of the code
Using PHP to filter the principle of malicious characters is very simple we just define the characters and then use the foreach traversal of the malicious word repertoires, using Strpost to detect whether the user submitted data in the malicious
Online editor FCKeditor 2.0PHP Environment trial
First, Introduction
November 30, 2004 launched the FCKeditor 2.0 RC1 version, according to its official website: This is the first stable version of the FCKeditor version 2.0. We can now consider the
A PHP smart image generation thumbnail class, can be automatically based on the size of your image to generate such proportions of the picture Oh, the need for friends can refer to.
The code is as follows
Copy Code
/*******
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