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