Ben ne oluyor emin olun .. belki basit bir şey kaçırmadım.
In my connectvars.php file, I connect to the database using the variables in my config.php folder. Here's the hierarchy:
admin(folder)
config.php
includes(folder)
connectvars.php
index.php
I want to get information from config.php to use in connectvars.php, so I use:
require_once("../admin/config.php");
But everytime I do this I get Warning: require_once(../admin/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/a8879415/public_html/includes/connectvars.php on line 2
AMA ben yazarken: require_once("admin/config.php");, çalışır.
Ben o config.php almak, admin inmek, sonra bir seviye yukarı gitmek zorunda düşündüm. Peki nasıl sadece o config.php olsun admin klasörüne gitmek gerekir geliyor?