Also, if the input data is illegal and the script is not detected, abort will make you unhappy.
That? What do we do?
Oh, don't worry, many processes to help you!
So, what is this for?
Advantages:
1. Using multiple processes, the kernel is
1. PHP __file__ Constants (How to get the root directory)
The dirname (__file___) function returns the path where the script is located.
For example, the file b.php contains the following content:
$basedir = DirName (__file__);
?>
If b.php is
Delete Directory
Class Del_path
{
function Wm_chief_delpath ($del _path)
{
if (!file_exists ($del _path))//target directory does not exist then establish
{echo "directory does not exist"; return false;}
$hand =opendir ($del _path);
$i = 0;
while
PHP has a lot of file system related functions, not only to help you open the file, you can also display directory content, move files and so on. Many people even use PHP to write out a Web-based file manager.
The first thing you need to do is
Ext.: coolcode.cn
A few days ago wrote a normal display page in any character set method, the introduction is very simple, that is, the first 128 characters outside the character set are used in NCR to express, but the specific how to convert I did
One of the most frequently asked questions in the PHP mailing list might be: "How do I install PHP on my windows machine?" "Then maybe I can help answer that question." When you're done properly, you'll find it's good to develop a PHP program under
Copy CodeThe code is as follows:
function Yzm ($name, $width, $height) {Header ("Content-type:image/png");Srand (Double) microtime () *1000000);//sow a seed that generates random numbers to facilitate the use of random number generation
A few days ago I asked in the Oso forum whether this source program, no one reply. Finally decided to transplant a function like this, thanks to the Netizen Keyes provides the Delphi source code for transplant. The method is called $TXT=BIG5TOGB
Regular expressions
There are two sets of regular expression libraries in PHP, which are functionally similar, but with slightly different execution efficiency:
The set is provided by the Pcre (Perl Compatible Regular Expression) library. A function
$bookSQL =sprintf ("UPDATE book SET pass=%s WHERE id=%d",
Getsqlvaluestring ($_post[' list '], "text"),
Getsqlvaluestring ($_get[' id '], "int"));
Getsqlvaluestring This function can be replaced by other functions
But here's the function of sprintf (
Let's start by explaining why I'm using Navicat, the first reason, because it's a good MySQL GUI tool, and more importantly, it can import some external data sources into the MySQL database. Because my data source is Excel data, I want to use
Many times, we register personal information on the Internet, after submitting the page, we must wait for the page to refresh to tell us whether the registration is successful, when the network is poor, if the registration of a lot of things, after
/* banner.php
This PHP3 rolling program is designed by Anton Olsen (aolsen@graphweb.com), you are free to modify and use this program, and freely spread it, if you have more important changes to it, please write an e-mail.
In this program, the
Although the LAMP combination is good, if you want to set up a web hosting server that supports PHP, ASP, ASP, JSP, Perl, or Windows 2003, IIS 6 is the best. There are a lot of articles on the web that describe the configuration of PHP on IIS 6, but
PHP print output array content and structure function Print_r and var_dump
Print_r () function
Example:
Run the example output:
Array ( [0] = 1 [1] = 2 [2] = 3)
Var_dump () function
Example:
Run the example output:
Array (3) {
When you write access to MySQL database program, is not very troublesome: a large set of functions and parameters, but also to check the results of the call, the more headaches is that each program contains the database name, user, password, etc.,
This forum used a total of less than 200 lines of code, execution speed quite fast. Running examples in: Http://www.hnpts.ha.cn/forum
MySQL Database: yxforum
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null |
PHP5 includes some of the following important features:
• Support for the new object model and many new features of the Zend engine.
• Fully rewritten XML support with extended performance around the excellent LIBXML2 library (http://www.xmlsoft.org/
1. Mobile phone number login, very simple
Add mobile fields to two tables in Pre_common_member,pre_ucenter_members
The discovery login call is the UC Uc_user_login interface method, this method in the uc_client/client.php file,
Then trace, find
As an IT industry more than 10 years old yards, plan to start a news subscription class Open source project, the purpose is three:
1. Comprehensive use of recent years to learn all kinds of development knowledge, improve themselves;
2. Share the
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.