I'm new in PHP. I run file.php on my PC with Firefox but I don't know how see error. What I can add to see it, is possible if I have this file on pc and not on server?
$apikey = "xxx7d7391d1e68e9680e6";
voxmail_user_subscribe(array('mail' => 'email@example.com','privacy' => 1));
**'firstname.lastname@example.org','privacy' => 1));?>**
Those directives can be set in lots of different places, as explained at Runtime Configuration. You need to be aware of the different syntaxes:
If you set them from PHP code, you have to compose valid PHP code, e.g.:
<?php error_reporting(E_ALL); ini_set('display_errors', true);
If you set it in PHP configuration files (
.user.ini) you have to use valid *.ini syntax:
error_reporting = E_ALL display_errors = On
If you set it in Apache configuration files (
.htaccess) you have to use valid apache syntax:
php_value error_reporting E_ALL php_flag display_errors On
It's worth noting that errors that prevent PHP code from running (such as parse errors) cannot be set from within PHP code.
My advice is to configure your local system-wide file for development (display all errors, log none) and configure your project for dual configuration (display in development, log in production).
Answer to updated question:
can't see any obvious reason why your code should trigger errors and notices. Are you sure it does? Have you tried with something that should trigger one such as
If you can see PHP code in the browser, your code is not running at all.