I have a php file for example file2.php in the subdirectory of script_client, in the head of file I include “../../include/connection.php”. On my localhost it works fine. But when I put it on the server, it always shows “failed to open stream: No such file or directory”, I don’t understand why. Can anyone help me?
- Directory1
- include
- connection.php
- file1.php
- script
- script_client
- file2.php
- script_client
- include
Check your permitions or, instead, do it from server root