Erecting a simple web site for download (2)
At present, lamp construction is completed
Peanut shells are open!
Making Directory/usr/local/phlinux ...Mkdir:cannot Create directory '/usr/local/phlinux ': File existsCopying data ...Runing phlinux for
TP jumps from template to another controller
Main page, I used a IndexAction.class.php.
Login page, is used MemberAction.class.php
The home page has a hyperlink called "Sign in". A little login, jump to memberaction inside the login method.
User
about PHP words outside the question
Learn PHP for half a year!
Want to take a postgraduate examination, predecessors can say, which direction is the future good?
------Solution--------------------
This post was last edited by phpnewnew on 2012-12-16
Linux can be implemented through the system of PHP shutdown, restart?!
Server host is CentOS, each reboot, shutdown will have to connect through the client, want to ask whether the PHP page can be implemented on the system shutdown, restart
Problems with bool and = = Operations
An example of this is provided in the official PHP manual:
Beware of certain control behavior with Boolean and non Boolean values:
Consider the 0 could by any parameters including itselfVar_dump (0 = = 1);
curl_setopt set too much, will it have an impact?
$ch = Curl_init ();curl_setopt ($ch, Curlopt_url, $URL);curl_setopt ($ch, Curlopt_returntransfer, 1);curl_setopt ($ch, curlopt_encoding, gzip);Curl_close ($ch);
Curl Crawl site, some sites with
Phpcms the problem of jumping between templates
Ask for phpcms cooked prawns: Not phpcms controller do two times, just fill in some templates, and modify the homepage template.
If you add a link to the homepage, such as: jump, how can you jump to
Using htmlentities Chinese to utf-8 problem
$str = "Chinese";
echo Json_encode ($STR);
Shown as:
[NULL]
So I'm going to use htmlentities to turn around:
$str =htmlentities ($str, utf-8);
echo Json_encode ($STR);
And it turned out to be a very
Help windowsxp system PHP build
I'm going to build a PHP environment, but now I'm not asking the master to teach the system to be windowsxp.
------Solution--------------------
Download an integrated environment on the go
------Solution---------------
100 points to ask: Picture loading-User experience
For example, want to do a waterfall layout of the photo wall, but because of the picture too much, resulting in slow loading, has used the lazy loading, but also with the screen scrolling load,
The number is replaced by a few *
The result is similar to the form of Liu * * *.
My idea is that the first 1 surname, directly intercepted, and then after a few names replaced with *, and then re-reorganization, this idea should be correct?
But
PHP actively send files
Recently want to do a thing, the user sent the file to my own server, and then send the file to another server (reduce the burden), how do I do?
------Solution--------------------
"My own server" is the local server, "Another
The problem of encryption algorithm and encryption mode in MCrypt
1, learn PHP encryption and decryption, want to know what these cryptographic algorithms and encryption mode is the principle of what, should see what data?
2, what is the basis of
Use MySQL to do the operation and use PHP to do the operation, which excellent
There are a few useful functions in MYSQL.
Is it better to write the operation directly in the SQL statement, or to take the data out of MYSQL, and use the PHP function
Find a match in HTML format!!
1
2
Can I use regular matching to make such an HTML code? I will not write the regular, go online to see a little basic tutorial, match out the result only
Inside the
Do not prefix table names in thinkphp join
If the table name is Think_work
So how do you write in the join?
Is
$Model->join (' Right join work on artist.id = work.artist_id ')->select ();
Still is
$Model->join (' Right join think_work on
Substitution of one character in a string in PHP
For example: $author = "| Cerebral palsy | Causes of cerebral palsy in children | Congenital factors of cerebral palsy |"
Modified to: $author = "cerebral palsy, the cause of cerebral palsy in
Some of the Configure parameters when compiling PHP?
See there is such a word. "Some configure parameters when compiling PHP" but is PHP not an explanatory language? How does it have to be compiled to say?
------Solution--------------------
This
The custom function is called multiple times on the same page, and the same value is obtained
I customize a function Pici (), which is to get the value of the Pi field under a serial number, and then +1 (value 0+1=1 when there is no record of this
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