# --------------------------------------------------------
# The structure of the data table ' menu '
# --------------------------------------------------------
CREATE TABLE Menu (
menu_id Int (one) not NULL auto_increment,
Menu varchar (not
Phpchina server Relocation, I will basically not go, only with agents, depressed. But with agents incredibly can not post, replies. As a moderator, deeply regret, today with agents to see a few posts, by the way here to answer.
1, we say the URL
What is MVC?
Remember the first interview Phper (PHP is for me to quickly get started with another Web development language), people ask me mvc, I only know that M is Model,v is View,c is controller, specific to other knowledge I was ignorant, the
PHP is very difficult to implement the upload progress bar is because when we upload files to the server, we have to wait until all the files are sent to the server, the corresponding PHP files are executed. Before that, the file data is stored in a
Today carefully studied the next GD of some related technology, handy also study GD Chinese garbled problem.
Using the GD library to output Chinese strings, it is useless to call imagestring. You need to use the Imagettftext () function. The
So I think that in the master-slave database design, all session-related tables should be treated with special treatment. That is: All session data tables can be updated and queried, when a user visits the site, the user is bound to the specified
requireThe use of methods such as
require("MyRequireFile.php");。 This function is usually placed at the front of the PHP program, and before the PHP program executes, it is read into the file specified by require to make it a part of the PHP program'
Shorida (Krazynio at hotmail.com), 2006.04.06, reprint Please specify the source
I. Introduction of Memcached
In many occasions, we will hear the name memcached, but many students just heard, and have not used or actually understand, only know it
1. Do not rely on the Register global Variables feature (register_globals)
Registering a global variable has made PHP very easy to use, but it also reduces security (which often breaks security). It is recommended that the Register_globals command
The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys is not overwritten.
Today I see PHP manual again, only to know
Copy CodeThe code is as follows:
$a = Array ("A" = "Apple",
Configuration of the primary site (basic configuration)
(1) Basic configuration:
ServerRoot "/mnt/software/apache2" #你的apache软件安装的位置. Other specified directory if no absolute path is specified, the directory is relative to that directory.
Pidfile
Just today friend XJB also encountered this problem, so wrote this note, the description of the problem and the resolution of the record.
Problem Description: Web-style, can link MySQL, but at the command line, but prompted:
Fatal error:undefined
function nesting, the name is a bit tangled, perhaps not very well understood. A more common special case of nested functions: Recursive functions, that is, functions nest themselves. Always thought that in PHP can not have too many function nesting,
Copy CodeThe code is as follows:
Judging remote Files
function Check_remote_file_exists ($url)
{
$curl = Curl_init ($url);
Do not retrieve data
curl_setopt ($curl, Curlopt_nobody, true);
Send Request
$result = curl_exec ($curl);
$found = false;
If
$TPL =new Smarty ();//Create a new Smarty object, I use the
Smarty-3.1.6Version
1. Set the Smarty template path $tpl->
Settemplatedir (); By default
templates2. Set the Smarty template compilation path $tpl->
Setcompiledir (); By default
Templates_c3
Copy CodeThe code is as follows:
Class person{
The following is the person's member property
var $name;
Man's name
var $sex;
Man's Sex
var $age;
The age of the person
Define a constructor method parameter for name $name, gender $sex and age
This is a problem, a client's corresponding server may execute 1 seconds or 1 minutes, so that the browser will always be waiting, if the program is slow to execute, the user may not be patient to shut down the browser.
And sometimes we do not need
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