last day (15 days later) » 

12:10 PM
1
A: Location or path issues on PHP

pr1nc3Your header.php should be: <?php require_once('../config.php'); ?> since config.php is outside of the include folder so you need to move one step back (go to the root of your project) and then access it.

 
dong so it's showing me that error when loading the project first index.php page: Warning: require_once(../config.php): failed to open stream: No such file or directory in D:\xampp\htdocs\job-tasks\include\header.php on line 1
 
can you try require_once __DIR__. '/config.php'
 
no luck then... (
 
what is the error? Is it the same?
 
require_once(D:\xampp\htdocs\job-tasks\include/config.php): failed to open stream: No such file or directory in D:\xampp\htdocs\job-tasks\include\header.php on line 1
 
12:10 PM
Can you switch from require_once to simple require?
 
same error. Is there any way? I mean can change folder structure in some way?
 
hey there
the problem you have occurs from require_once coflicting with each other
is your project on github or somewhere you can share?
 
well I can share with you
can I get your email address?
 
ViktorasD1991
that's my user id in github
 
found your id but how can I share my code with you. It's on my localhost now
 
12:13 PM
push to a repository
make a repo
push your code , send me link
 
okay
wait a mins
 
Ok will do
 
Thanks
 
12:48 PM
fixed it
will push to the repo
you need to give me access to push to master
 
how can I do this?
 
In the settings
give access to my account
or make your repo public
Ah it's a global change to all your endpoints nothing big i will edit my answer you can do it yourself.
 
its already public
 
Give me 5 mins to update the answer
Updated my answer
and tested it localy works fine
After you test it if it works fine what you asked please don't forget to accept my answer for future users as well
 
1:08 PM
okay
 

last day (15 days later) »