A very strange question about the include file

Source: Internet
Author: User
Tags try catch
A very odd question about the include file
Prawns, please ask a question:

I am writing a PHP page with all the functions in the local via localhost/. /index.php access, everything is OK.
Because it involves other people's access to the problem, so I copied the code to the server's/var/www, the result code run error, later on, is stuck here, but do not know why. The code is as follows:





<title></title>




echo "11111111";
Include_once ('./cebu_parser.php ');
Eccho "2222222"
Include_once ('./flight_info_2_json.php ');

$cebu _parser = new Cebu_parser ();

?>



On the server, you can only run to echo "111111111" To view the generated HTML code as follows:





<title></title>



11111111111


This means that the code only runs to the first sentence where Echo is.

I also replaced include_once with include, Require_once,require, all in one look.

The try catch method is also tried, but there is no information output.

I beg your doubts, thank you.
Server PHP

Share to:


------Solution--------------------
Please copy the code from your program file to paste it up
The code you posted has a syntax error and cannot be run at all!
------Solution--------------------
Second echo less semicolon
------Solution--------------------
I don't understand what's going to solve your problem.
But for the include actually nothing, understand the PHP kernel mechanism is good.
Http://www.laruence.com/2010/05/04/1450.html
You can refer to it, the writing is still good
------Solution--------------------
cebu_parser.php
Is this the exit?
------Solution--------------------
What code is in each file??? Analyze or debug the included files first
------Solution--------------------
Error_reporting (E_all);

If still not, post your cebu_parser.php file code
  • Related Article

    Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.