Gedit+mozilla Firefox
Use the above Notepad + browser to debug.
If a part of the PHP program goes wrong, the result of the entire program may not be displayed in the browser.
This makes it difficult to find a program error.
Is there any way to solve this problem?
Reply to discussion (solution)
To turn on PHP error notification function
Set the Display_errors=on in PHP.ini, and then restart the server.
Any PHP error will cause a 500 error if the error display function is not turned on (the server refuses to respond)
$y =a1.0;
Grammatical Error! Parse error:syntax error, unexpected '. 0 ' (t_dnumber)
To turn on PHP error notification function
Set the Display_errors=on in PHP.ini, and then restart the server.
1. In which directory?
2. How do I restart the server?
In your php file, write the following:
Phpinfo ();
Find loaded Configuration file and modify the php.ini file it loads.
Restart the service to open the list of your system services, locate Apache, then restart, or the command line will be OK.
In your php file, write the following:
Phpinfo ();
Find loaded Configuration file and modify the php.ini file it loads.
Restart the service to open the list of your system services, locate Apache, then restart, or the command line will be OK.
Which directory is 1.php.ini in?
2. What about the restart command?
Join in your program?? OK, no need to modify php.ini
Error_reporting (E_all);
Ini_set (' display_errors ', ' on ');
In your php file, write the following:
Phpinfo ();
Find loaded Configuration file and modify the php.ini file it loads.
Restart the service to open the list of your system services, locate Apache, then restart, or the command line will be OK.
Which directory is 1.php.ini in?
2. What about the restart command?
You're not under Windows, are you?
PHP.ini generally in the PHP folder root directory
Reboot directly find Apache in the System Services list and restart Sibang It's clear that you can do it right now.
The way to open the list of system services is to right-click on "Computer" or "My Computer" and select "Manage" services
Pro, Windows can not find the directory will not find files to find it?
In your php file, write the following:
Phpinfo ();
Find loaded Configuration file and modify the php.ini file it loads.
Restart the service to open the list of your system services, locate Apache, then restart, or the command line will be OK.
Which directory is 1.php.ini in?
2. What about the restart command?
You're not under Windows, are you?
PHP.ini generally in the PHP folder root directory
Reboot directly find Apache in the System Services list and restart Sibang It's clear that you can do it right now.
The way to open the list of system services is to right-click on "Computer" or "My Computer" and select "Manage" services
Ubuntu
Landlord sorry. I read the wrong post you this is not under Windows ..... The sweat of a ... I saw d:/xxxxx in a post just now.
Landlord sorry. I read the wrong post you this is not under Windows ..... The sweat of a ... I saw d:/xxxxx in a post just now.
/
Landlord sorry. I read the wrong post you this is not under Windows ..... The sweat of a ... I saw d:/xxxxx in a post just now.
,
Landlord sorry. I read the wrong post you this is not under Windows ..... The sweat of a ... I saw d:/xxxxx in a post just now.
,
Note Line seventh of the code, is this a string assignment or? Otherwise, as mentioned by #, an unknown error (no such definition exists). If it is a string assignment, it is written like this: $y = ' a1.0 ';
To turn on PHP error notification function
Set the Display_errors=on in PHP.ini, and then restart the server.
Ubuntu system
Which directory is the 1.php.ini file in?
2. What is the restart Server command?
Do not know whether your PHP is self-brought or later compiled, online search, I rarely play Linux, not very familiar.
Create a new file, such as info.php
View these two items after running
Configuration File (php.ini) path (the default php.ini path)
Loaded Configuration File (the php.ini path actually loaded)
Create a new file, such as info.php
View these two items after running
Configuration File (php.ini) path (the default php.ini path)
Loaded Configuration File (the php.ini path actually loaded)
Boss, is there something missing from my question? Can't go on? I didn't say that in #2, did I?
That's a grammatical mistake! If you do not open the error display, you will see 500 errors
If you set the error log, it will not be displayed. But you can see the error message in the error log.
In short, when a syntax error occurs, PHP quits running
Create a new file, such as info.php
View these two items after running
Configuration File (php.ini) path (the default php.ini path)
Loaded Configuration File (the php.ini path actually loaded)
Boss, is there something missing from my question? Can't go on? I didn't say that in #2, did I?
That's a grammatical mistake! If you do not open the error display, you will see 500 errors
If you set the error log, it will not be displayed. But you can see the error message in the error log.
In short, when a syntax error occurs, PHP quits running
Create a new file, such as info.php
View these two items after running
Configuration File (php.ini) path (the default php.ini path)
Loaded Configuration File (the php.ini path actually loaded)
Boss, is there something missing from my question? Can't go on?
Not this post ...
Please visit: http://bbs.csdn.net/topics/390507272
In your php file, write the following:
Phpinfo ();
Find loaded Configuration file and modify the php.ini file it loads.
Restart the service to open the list of your system services, locate Apache, then restart, or the command line will be OK.
Which directory is 1.php.ini in?
2. What about the restart command?
You're not under Windows, are you?
PHP.ini generally in the PHP folder root directory
Reboot directly find Apache in the System Services list and restart Sibang It's clear that you can do it right now.
The way to open the list of system services is to right-click on "Computer" or "My Computer" and select "Manage" services
,,,
Join in your program?? OK, no need to modify php.ini
Error_reporting (E_all);
Ini_set (' display_errors ', ' on ');
This method is not good either.
Mozilla Firefox browser, nothing is displayed.
Create a new file, such as info.php
View these two items after running
Configuration File (php.ini) path (the default php.ini path)
Loaded Configuration File (the php.ini path actually loaded)
1. Create a new file: info.php, where is this file stored?
2. Also modify the file: PHP.ini?