The previous article of my blog explains how the reflection mechanism of PHP is going to be, if the reader is not clear about the reflection mechanism, you can search under or look at my blog post, is a good choice, we began to explain how to use
The company used the YII framework, and then learned, but there are several places have not understood, hope
There is such a method Yii::app ()->user->com_id Yii::app ()->user->real_name
This user table is our own added data table, then the method
When the user logs in, in addition to the default record session information, he added the following code,
Print $_session here to get the value, but the template page called Below is blank,
If you remove the two lines of code, the template
I want to use redirect to jump directly to the previous page after the judgment is over.
But redirect need to specify the URL ...
But I want to jump URL need a lot of parameters, I do not want to be so troublesome.
Is there anything I can do to make
Login: {$user _name}
The If effect is removed but not with judgment. I also printed the judging conditions above, also showed, but can not be judged because God horse
Reply to discussion (solution)
if ({$user _name}!=null) is wrong!
The file contains 2 files:
a.php
b.php
b Page Content:
1. Include_once (DirName (__file__). ' /a.php ');
2. Include_once ('./a.php ');
3. Include_once (a.php ');
Which way to call it?
Reply to discussion (solution)
The most concise is 3, of
I now want to use AJAX $post to the server-side value, how to get the value in Ueditor, my page load code is as follows:
The page can be displayed ueditor.
I now use JQ Ah JS through the id "blog_content" to get the value of alert out all is
LNMP environment, php.ini inside display_errors = Off
Within the code are:
Ini_set (' display_errors ', 1); error_reporting (E_all);
But the code is still running without error-level errors (the code is deliberately written in grammatical error).
A table B table C, table A and B conditions associated GID, B and C table associated CID, how do I put these 3 tables?
Condition is gid=20
Database type: MySQL
Reply to discussion (solution)
SELECT * from B LEFT join (A,C) on
When:
Class My_controller extends ci_controller{....}
Controller folder:
Class Add_shop extends my_controller{....}
This is all normal and able to access my methods and properties for customizing My_controller and framework Ci_contorller
Original address:
Http://172.16.46.40/api/handler.php/user/1/get_info/6
Now it needs to be configured in Nginx to finally get the result, that is
can be accessed by
HTTP://172.16.46.40/API/USER/1/GET_INFO/6 as normal access, how to configure in
Work needs to use PHP to develop a monitoring applet, since it is necessary to monitor the timing of execution.
Before I used a chrome plus a timed refresh of the small plug-in, placed on the server run, can also be implemented, is awkward.
The
Environment: Php+mysql
The existing database holds some latitude and longitude (100W or more) coordinate points,
What if I get all the information within 1 miles of the vicinity based on a coordinate point?
The Longitude field in the database
Class Mymemcache {private $memcache; /** * It is generally recommended that these 2 values be in the form of a constant */Public function __construct ($host = ' 192.102.1.8 ', $port = 6379) {$this->me Mcache = new Memcache ();
I downloaded the plugin to vs on the Internet,
Why create a PHP file, right-click on the page that appears
Phpinfo ();
?>
And no other content? Solving.
Reply to discussion (solution)
Who will tell me under, not grateful ...
Because you
Getting a binary array of a picture from a third-party interface resembles the following result:
$img _data = Array (255,11,2,0,112,4,...);
How do you translate the above array into a picture output?
Reply to discussion (solution)
This data
For example, to publish an article that belongs to Category B. A message is automatically inserted into the database.
When I look at my article, how do I get the page to show breadcrumb navigation? as follows, I am a super novice, a lot of knock
Date Operation
To facilitate storage, comparison, and delivery, we often need to use the Strtotime () function to convert dates into Unix timestamps, and use the date () function to convert dates to the usual time format only when displayed to the
Button
content
$ (' #mune_1 '). Hover (function () {
$ ('. Second_mune '). Show ();
},function () {
$ ('. Second_mune '). Hide ();
})
I modified this, because the mouse through the a tag and to display the content of the span is not on
Similar to Baidu inside, the input keyword query meaning similar to the content of the entry
Reply to discussion (solution)
Synonyms and synonyms are the knowledge you need to teach the program.To do this, you need to maintain a table with two
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