Analysis:
We use a file (Data.dat) to store voting columns. Each column occupies one row.
This way, you can add and subtract the columns you want to vote for.
We then use a file (Votes.dat) to store our poll results.
And record the latest voter's IP
This is a php-made feedback form, a little modification can also be used to send a program on the Internet, mainly to let visitors fill out the form, with PHP processing sent to the administrator's mailbox, and send a confirmation letter to the
PHP5.2.0 's memory management has been greatly improved, and in some cases the problem of memory not being released does not exist.
Test PHP script (mem.php), I use echo n>> and sleep to control the script at some stage to detect the state of the
The PHP script side of the urban settings can be set under PHP.ini date.timezone key value of ' Asia/shanghai ' can be. However, generally the shared virtual host itself does not modify php.ini permissions. At this point, you should join the public
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");
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)
Integrated Discuz Pass: A way to integrate Dede with Discuz's own pass and file download
First thanks to Plato for providing such a good free programOn the forum to see a lot of people want to integrate discuz. I think Plato would definitely get a
MySQL supports a large number of column types, which can be divided into 3 categories: numeric types, date and time types, and string (character) types. This section first gives an overview of the available types, summarizes the storage requirements
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
1, instantiation Dbbak need to tell it two things: where the data server ($connectid), back to which directory ($backupDir):
Require_once (' dbbak.php ');
Require_once (' tablebak.php ');
$connectid = mysql_connect (' localhost ', ' root ', ' 123456
Copyright can be set to hide in CSS. The file cannot be deleted because it is Zend, and it is not recommended.
1. Hide the copyright method under X-space personal space
Modify/css/space.css to find the following code:
/* Footer
Iconv function Library can complete the conversion between various character sets, which is an indispensable base Function library in PHP programming.
1, download Libiconv function library http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz;
2,
Send cookies with the header
Header ("Set-cookie:testcookie= Chinese; path=/; Domain=.phpv.net; Expires= ". Gmstrftime ("%A,%d-%b-%y%h:%m:%s GMT ", Time () +9600));
Please put path=/; Domain=.phpv.net: Change to your own (delete them without
Php+mysql (php5 +mysql 4.1) is a simple open source XNA aggregation with the effects such as:
http://xna.spvrk.com
A simple aggregation program, with phpMyAdmin import cms_xna.sql, modify config.inc.php in the database address can use,
--------------------------------------------------------
Wind 13 outdated first
Reprint please indicate the author and source
------------------------------------------------------
1. How to modify the default publication as a dynamic page;
This is
From the beginning of the ASP to PHP, feel that one of the powerful PHP is a rich built-in functions, such as the previous study of the PHP date and time function, read and write the relevant functions of the file, and so on all show that PHP more
Building a dBASE data table
int dbase_create (string filename,array fields)
Open dBASE Data Sheet
int Dbase_open (string filename,int flags)
Close a dBASE data table
Boolean dbase_close (int dbase_identifier)
Clean up dBASE Data sheets
BOOL
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