1
I am with a legacy project, where all PHP files connect to the database through the file "oracle_ado.php"
This file is in the folder ".. /inc/" and the rest in the folder ".. /Prod/".
I am mounting another server for this application, where the files in the folder ".. /Prod/" do not find the file "oracle_ado.php"
The require is as follows...
require_once ('oracle_ado.php');
and changes to...
require_once ('../inc/oracle_ado.php');
the wheel application smoothly.
On the current server runs without the need to inform the path ".. /inc/", can anyone tell me what it might be? What’s left to configure on the new server?
Both Linux servers
It is a linux or windows server ?
– AnthraxisBR
Oops, sorry... it’s Linux, I’ll edit the question
– Rafael Weber
Navigate through the terminal to the root folder of an 'ls -l', from the command in the folder 'inc' and tbm from the same command in the folder 'Prod', do this in both Servers, and check that the file 'oracle_ado.php' did not end up in the folder Prod, I think the only explanation is to have mixed the files
– AnthraxisBR
The best thing would be to use one
autoloader
, so always calls only him instead of the classes.– rbz
Hello Raoni, because it is also I think... But I just wanted to avoid having to edit all the files.
– Rafael Weber
If you give an error_reporting (E_ALL) in the file when it doesn’t work, what response does it give you ?
– AnthraxisBR
What appeared was 22519, about ls -l, is exactly the same as the current server
– Rafael Weber