The leader wants me to plan a web design contest and the Flash creation contest, the request must realize the online registration and the upload work. By freebsd+apache+php+mysql+ftp I realized that requirement.
The idea of online registration and
Tomorrow will start the final exam, and then the day after tomorrow to return to Fuzhou, because the home has not installed the network, therefore, there must be a period of time can not come to the forum, in this before, I think, I gave the novice
Extracts a function from the Gregarius. You can automatically convert a relative path in a Web page to an absolute path.
function Relative_to_absolute ($content, $feed _url) {
Preg_match ('/(HTTP|HTTPS|FTP): \/\//', $feed _url, $protocol);
$server
Copy CodeThe code is as follows:
Compatible with PHP4 PHP5Program author Zhang Jian 52linux.com (I love Linux)Contact Method 733905@qq.com QQ 733905Simple Call method/*
Include ("ugs.php"); You can download this ugs.phps and rename it to ugs.php$
Pear is a php extension and application library, contains a lot of useful classes, after installing the php5.0, pear is not actually installed, the installation method is as follows:
1. In the PHP directory, double-click Go-pear.bat.
2. Follow the
Translator Note: This article is formerly known as "Creating a multi-file Upload Script in PHP". I think this article is written in general, the code is not very professional, but it is relatively short, and a time can not find a better article, the
1, PHP fragment four kinds of representations.
Standard Tags:
Short Tags:
Need to set short _open_tag=on in php.ini, default is on
ASP Tags: need to set asp_tags=on in php.ini, default is off
Script Tags:
2. PHP variables and data types
1)
Everyone's learning style is different, the purpose of writing this article is to share their own learning process, for reference only, do not blindly use other people's learning methods, find their own useful learning methods
Original: Negoo (Fang
The function of string manipulation in PHP is much more, it is important to have the following:
(1) echo,print,printf,sprintf
The first two functions are output strings. If there is a variable name in the string, it is replaced with its value.
The
PHP's basic syntax format and C-like, did not learn C's friends spend a few minutes to see how others write the source code, the basic familiar with the format.
----------------------------------------------------
Get down to the chase.
5 programs
Super Paging Class 2.0 release, support custom style, default 4 display modes
See the Forum on the People asked Baidu page category, so a few weeks ago the page category posted out.
2.0 relative 1.0 corrections are as follows:
1. Support PHP4 and
I use the ADODB full version of the time, the server unexpectedly does not support,
I almost wrote a class on my own, and I realized the ADODB function so that I didn't have to change my program.
But now I use the adodb-lite, this is a simplified
Include_once ("./comm/smarty.class.php"); Contains the Smarty class file
$smarty = new Smarty (); Establish the Smarty instance object $smarty
$smarty->templates ("./templates"); Set up a template directory
$smarty->templates_c ("./templates_c");
PHP enables NFS sharing for multi-server session sharing
In the preface, the problem of multi-server sharing is presented by the NIO Warrior, and the original data of the server sharing session with PHP is shown.
One way is to use NFS to share the
discuz!5.0 Forum display style PHP code highlighting plugin,
The PHP code syntax coloring, like the PHP comrades can easily see the code.
Also added HTML code to run the function.
This plugin was modified on the basis of a previous comrade's discuz!4
The following program lists the data for that ID after you enter it. Then you can modify it and write it later.
Data updates for Databases
if (Isset ($id))
{
if (!mysql_connect ("localhost", "username", "password"))
{echo "Cannot join
If the option to open remote content is supported, PHP can actually get the content of a Web page with fopen or file_get_contents, but the default function has a disadvantage of not getting the HTTP header, which is inconvenient in some special
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