I am writing a php webpage. all the functions are local & nbsp; via & nbsp; localhost /.. /index. php access is normal. Because it involves access by others, I copied the code to/va on the server, which is very strange about the include file.
For more information, see:
I am writing a php webpage. all the functions are accessed locally through localhost/../index. php. everything works.
I copied the code to/var/www on the server because it was related to access by others. The result code was incorrect. later I saw that it was stuck here, but I don't know why. The code is as follows:
On the server, you can only run echo "111111111". the generated html code is as follows:
11111111111
That is to say, the code only runs to the first echo.
I also replaced include_once with include, require_once, and require.
I also tried the try catch method, but there is still no information output.
Thank you!
Server PHP shared:
------ Solution --------------------
Please copy and paste the code from your program file
The code you post has a syntax error and cannot be run at all!
------ Solution --------------------
The second echo has less semicolons
------ Solution --------------------
I don't know what the problem is.
However, there is nothing to do with include. it is good to understand the php kernel mechanism.
Http://www.laruence.com/2010/05/04/1450.html
For more information, see.
------ Solution --------------------
Cebu_parser.php
Is there exit?
------ Solution --------------------
What code is in each file ??? Analyze or debug included files first
------ Solution --------------------
Error_reporting (E_ALL );
If the problem persists, paste your cebu_parser.php file code.
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