|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP and HTML doesn't work together- WHY?
When I combine php and html as below:
PHP Code:
It works on my browser. But if there are any errors on my php part, the page is just blank. What could be the other reason for this blank? P.S: I have the display_errors= On in my php.ini ( both in C:/Windows and C:/PHP) Thanks |
|
#2
|
|||
|
|||
|
the problem is with the error settings. you also need to set error_reporting to E_ALL in php.ini.
|
|
#3
|
|||
|
|||
|
Code:
error_reporting = E_ALL & ~E_NOTICE ; ; - Show all errors, except for notices ; ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT ; ; - Show only errors ; ;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR ; ; - Show all errors, except coding standards warnings ; error_reporting = E_ALL Guess the error_reporting is set. |
|
#4
|
|||
|
|||
|
if you just made the changes, then you would need to restart the server for them to take effect. you can also check out a phpinfo() page to double check your error settings and also check out which php.ini file is being loaded in case there is an extra one somewhere (such as in the windows folder).
|
|
#5
|
|||
|
|||
|
Thank you, the restart worked.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > PHP and HTML doesn't work together- WHY? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|