PHP Output current date time and week
$week = Array (day, one, two, three, four, five, vi);
echo Date (Y year M D Day). Week. $week [Date (w)];
Results for Saturday, April 16, 2011
?>
http://www.bkjia.com/PHPjc/478838.html www.bkjia.com
Work needs, write a simple is to use the PHP image and watermark function function.
/*
Image plus watermark function
$imag _url as the path to the image to be watermarked
$str the string to be added to the picture
The storage path
Array_reverse ()Reverse sort function
The function passes in a parameter as an array, returning an array that is the same as the passed-in parameter value but in the opposite order.
$a = array (1,2,3,4,5);
$a = array_reverse ($a);
for ($i =0; $i
function Zhuanhuan () {
$urlodd = Explode (//,$_get["url"],2);//The link is divided into 2 segments,//front is the first paragraph, Next is the second paragraph.
$head = Strtolower ($urlodd[0]); //php is case sensitive, first uniform
Open PHP.ini, first find
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
Area, there are several parameters that affect file uploads:
File_uploads = on; switch to allow uploading of files over HTTP. The default is on, which is
PHP is an efficient network programming language, because it has the advantages of flexible writing, fast running, and quickly become the preferred language for Web programmers. So how do you become a good PHP developer?
To become a PHP programmer
function Zhuanhuan () {
$urlodd =explode (//,$_get["url"],2),//The link is divided into 2 segments,//front is the first paragraph, followed by the second paragraph
$head =strtolower ($urlodd [0]);//php sensitive to case, the first uniform conversion
As long as you install some third-party library files and have some geometrical knowledge, you can use PHP to create and manipulate images. Creating dynamic images with PHP is a pretty easy thing to do. Below, I will explain in detail how to
Reading and writing Extensible Markup Language (XML) in PHP may seem a bit scary. In fact, XML and all of its related technologies can be scary, but reading and writing XML in PHP is not necessarily a scary task. First, you need to learn a little
Note that iterators are a better abstraction than object sets, because we can let infiniteiterators,norewinditerators and so on, without being consistent with normal array arrays, so iterator lacks functions such as the count () function.
A complete
Features of PHP include:
Open Source: All of the PHP source code is actually available.
PHP is free of charge.
PHP Convenience: PHP is very convenient, easy to learn
Server-based: PHP is a server-side script that can run under UNIX, LINUX,
Comparison form [Url=javascript:;] Post[/url] and Fsockopen submit two different ways of difference.
Form Post Mode submission case
$_post and [url=javascript:;] Php[/url]://input can fetch a value, $HTTP _raw_post_data is empty
$_post organizes
1. Mobile Terminal with WAP user agent function (such as WAP mobile phone), send WAP service request to a website through a micro browser running inside. The request is intercepted by WAP Gateway, and the information content is encoded and
iconv function: The requirement to convert character encoding of a string
Syntax: string
Iconv(String In_charset, String out_charset, String str)
When using this function for string encoding conversions, it is important to note that if you convert
EOF is a very important concept, and almost every major programming language provides built-in functions to verify that the parser has reached the file EOF. In PHP, this function is feof (). The feof () function is used to determine whether the end
This paper introduces the differences between common regular matching functions of PHP, mainly Str_replace, Str_ireplace, Substr_replace, Preg_replace, Preg_match, Preg_match_all, Preg_ Quote, Preg_split, Ereg_replace, Eregi_replace, Preg_replace,
Using PHP Apache programming, in the default settings, PHP coding error is not prompted, which is very inconvenient for development. You can use the following steps to open an error prompt:
1. Open the php.ini file.
Take my Ubuntu example, this
When the server does not open Fsockopen function, with Fsockopen will prompt undefine Fsockopen, the solution is as follows:
The first step: in the php.ini (position needless to say where, presumably use this function should have some understanding
Look at the introduction of Datastore, and began to use the MVC way to write PHP, so want to take PHP to write a model for Redis, you can achieve some of the basic functions of datastore ... So I came across a problem-.-
PHP __class__ Such things
PHP implementation of static HTML page statistics views Instance code
News.html
Record access times
act.php
$db = mysql_connect (Localhost,root, 123456) or Die ("Connection Database Failed");mysql_select_db (Zend, $db);mysql_query ("SET
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