I've stitched up Sina's API to get some data from Weibo. This is the link I have pieced together:
Https://api.weibo.com/2/statuses/repost_timeline.json?id=3681834027857481&page=1&count=100&access_ Token=2.00oa6w2chiarmb96820f87ebenjkee
If you enter
Create c.php file under/test folder, content
namespace Test\driver;
Class C
{
function test ()
{
echo "C";
}
}
?>
/Under Build test.php file, content
Untitled Document
Include "test/c.php";
Use Test\driver;
$c =new C
All kinds of labels, no rules, mostly or the order of attributes is unclear
Like this but there are several kinds of attribute order, but also to get the ID href class three attribute values, stored in \1 \2 \3 (I use the preg_replace,
Refers to the variable name "sticky" together, how to describe it well ...
For example, some variables are called $a 1 $a 2 $a 3
I want to
for (i=0;i
What to do?
Do not use arrays ...
Reply to discussion (solution)
$a 1=1, $a 2=2,
There is a test database, there is a student table student, there are three fields, Class,name,score, respectively, the class, name, score, Q: Query each class pass number and the number of failed, the output format is class, the number of passing,
Every time I write code at the front desk to add articles, it is very troublesome and tiring. I want to write a function in the background, enter the title, the content can be published directly. I want to use the file to read. Then use the regular
Set up a Xdebug debugging environment, but always open on the report this error, online someone said is phpserver off can, but this is remote debugging, do not know what the Linux phpserver is a what east, passing guidance!
Web launch already
Form
The array that is submitted to the spool is printed out like this
String (5) "Array" How to display the value
Reply to discussion (solution)
How did you print it?
Print_r ($_post[' Listorder ');
You're echo out of this?
You
I have a login page that uses LDAP ...
Controller
Public Function Actionlogin () { $model = new LoginForm; If it is AJAX validation request if (isset ($_post[' Ajax ')) && $_post[' ajax '] = = = ' LoginForm ') {
Boss, to ask you questions, hope advice
Brief introduction:
I use AJAX login, after successful landing, the UserID record session, and jump to the inside page
Problem:
Always prompt for session timeout or invalid when jumping to inner page
Class A {public Function __construct () {echo "A construct";} } Class B extends A { } $b =new B ();? >
Why the result is a construct
Reply to discussion (solution)
If your handout is not a mistake, then you can only say "mentor" is
There is a snippet of PHP code, as below, want to ask La_pre. What is this usage? What does the code mean? Can you help me explain?
Private $db;
Private $role _table;
Private $admin _table;
Private $admin _log;
function __construct ()
{
Global $db;
Function: Point open
and then use AJAX to display the data, select the desired data, the data value returned to the form document.getElementById (aa) = 11;
Before the IE6 can be achieved,,, now under 360 or Firefox cannot be implemented,,,
Php-cgi.exe How to add to the Windows service inside, Php+nginx integration encountered problems
Reply to discussion (solution)
is not a concept at all, php-cgi is an application, a service is a special program, and the application does not
Run the Discuz Forum program under the nginx+php architecture. All run in a compiled and installed manner.
However, the browser occasionally appears with the following error:
View Nginx log found error:
[ERROR] 14439#0: *3072 recv () failed (10
User login can write log
User left (Close page), how to query with PHP, write log
Reply to discussion (solution)
should not
This can only be JS to judge to pass to PHP processing
PHP is not able to detect.
Users close the browser can
Original PHP?:
echo "HGHGHGHG";
?>
This??? HTML in the device:
echo "hghghghg"; ?-->
So it's everybody? My PHP configuration???
Success? Line Phpinfo
For another?? Yes, you can. mysql Access
On the same target? www.
And the
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