Re: PHP5.3 -> PHP7.0 Forms targeting a handler in the php dir work but not if using an include file in current dir

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <[email protected]>
On 15/09/2021 11:50, Bo Berglund wrote:
> On Wed, 15 Sep 2021 10:41:09 +0100, Ashley Sheridan <[email protected]>
> wrote:
>
>> What do your error logs say? When you run into problems like this,
>> always go to the error logs as the first thing, as the logs will almost
>> always be giving useful information about what the exact issue is.
> Where can I find the error logs?
> Note that I have no control over the server so /var/log is not accessible.
> This is a webhosted server run by Network Solutions...
>
> I expected that errors would be displayed ion screen since I have the setting:
>
> ini_set('display_errors', '1');
>
> in the php files.
>
> But the screen just gets totally blank.

A blank screen is a sure indication of an error, and as you've seen, 
ini_set('display_errors', '1') alone isn't enough to force errors to 
show on the screen. You can add the following to also set the level of 
errors to show, as that might be set to something different on the 
server in the php.ini, which is why you're not seeing what you expect on 
screen, although it's not advised to have them shown on a production 
server for security reasons:

error_reporting(E_ALL);

You should have access to the error logs on your hosting though. The 
exact location can be determined from a phpinfo() call, but if you're 
struggling accessing them, you should ask the hosting company, as logs 
are something you need always.
>
-- 
Ashley Sheridan
https://www.ashleysheridan.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.