From the PHP100, the function is very powerful. Almost every detail is taken into account to share with you! ~~~PHP/****************************************************************************** parameter Description: $max _file_size: Upload file
Push data from other programs to the php program, and then judge whether the data exists. If the data exists, exit. If the data does not exist, insert the data into the database and return the processing result to the data source. when the traffic
Today, I improved my file Upload systems for several other websites.Php code, no js, file type determined by suffix name, non-mime judgment.Create up. php with the following code: The code is as follows:Copy code $ Uptype = array ("jar", "zip ");
I have been using the gadgets I wrote a year ago and it is very convenient.For the purpose of being simple and practical, the program does not display any interface after it is started. Instead, it creates another desktop and switches between the
From the PHP100, the function is very powerful. Almost every detail is taken into account to share with you! ~~~
"Content-type" content= "text/html; Charset=utf-8 "/>
/************************************************************************
As you know, there are a lot of dynamic link libraries in Windows systems (files with a. dll suffix, DLL is the dynamic link library). This dynamic link library, unlike the static function library, its functions are not part of the execution program
A regular web site, when you need to upload pictures, often need to add their own site logo watermark on the picture. So how do you accomplish this? Let's start with the principle of how to add a watermark to a PHP picture.
Build the graph by
This is written for Oracle, can be used on different computers, because it will automatically read the current computer environment variables, so as to obtain the Oracle installation path, the only point is that the program is running in the process
[Root@localhost ~]# Ls-l
Total 152
-rw-r--r--1 root root 2915 08-03 06:16 A
-RW-------1 root root 1086 07-29 18:35anaconda-ks.cfg
................................................
Line 1th: Total
The number after total is the sum of space
The realization of watermark function is mainly depend on these function function operation
1.imagecreatefromjpeg//Open JPG picture 2.imagecreatefromgif//Open GIF picture3.imagecreatefrompng//Open PNG picture4.imagecreatefromwbmp//Open wbmp picture
Parameter description:
$max _file_size: Upload file size limit, unit byte
$destination _folder: Upload file path
$watermark: Whether additional watermark (1 for Watermark, other for no watermark);
Instructions for use:
1. Remove the
Program
If you are familiar with PHP's GD library, it is not difficult to read this article!/******************************************************************************Parameter description:$max _file_size: Upload file size limit, unit
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.