In LINUX, if the array is written as $ _ SESSION [userid], an error is returned. it can be found in WINDOWS Server. why? Solution
Source: Internet
Author: User
In LINUX, if the array is written as $ _ SESSION [userid], an error is returned. in WINDOWS, the error is displayed. why !!! Urgent RT, PHP: The quotation marks in the array, so you should add the quotation marks. This is so tangled that we should have put quotation marks ., OK, first, if you can add it, then do the second thing on the 11 th floor. if there is any difficulty, the difference between the server as mentioned above should be php. in ini LINUX, if the array is written as $ _ SESSION [userid], an error is returned. it can be found in WINDOWS Server. why !!! Urgent
RT
------ Solution --------------------
PHP: quotation marks in the array
------ Solution --------------------
Then you should add quotation marks. This is so tangled that quotation marks should have been added.
------ Solution --------------------
OK,
First, add if you can, as stated on the 11 th floor.
Second, if you have any difficulties, follow the nagging instructions.
The server difference should be caused by different php. ini or. htaccess.
------ Solution --------------------
Get into habit $ _ SESSION ['var']; that's all. people suggest that you are also right. win is relatively loose. if you don't want to be so demanding from the beginning, such as case sensitivity or something, there will be a variety of weird things you will find in Linux.
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