Hi All,
I am working in an old website developed many years ago using PHP.
My job is to add some features and additions and bug fixing.
So far it's fine. Now the website faces the problem of
500 Internal error.
I had reported to the hosting company.
They said when they checked the site it's working fine.
and also suggested to check the "File Permissions" and look for any syntax errors.
I had checked with the file permissions and it's all set right.
And for syntax errors, directly I don't get a syntax error.
But when I use error_reporting to On, I receive notices and warnings.
one example is
I know below is the right way to use it
Does this might be the cause for the Internal Error?
or this should not be the problem.
Please move my thread to other section if this is not appropriate section.
Thanks so much...
I am working in an old website developed many years ago using PHP.
My job is to add some features and additions and bug fixing.
So far it's fine. Now the website faces the problem of
500 Internal error.
I had reported to the hosting company.
They said when they checked the site it's working fine.
and also suggested to check the "File Permissions" and look for any syntax errors.
I had checked with the file permissions and it's all set right.
And for syntax errors, directly I don't get a syntax error.
But when I use error_reporting to On, I receive notices and warnings.
one example is
Code:
$_POST[username]
Code:
$_POST['username']
or this should not be the problem.
Please move my thread to other section if this is not appropriate section.
Thanks so much...
Comment