Jump to content

I can't access config.php with include_once


fer987

Recommended Posts

Hi! I am new to PHP and I googled a lot before coming here.

 

I have trouble accessing localhost/community/admin/board_functions.php from a folder which path is localhost/community/boards/test/index.php, which script is the one below.

 

What path should I put on require_once to access the script?

 

Thanks in advance

 

<?php

require_once "..admin/board_functions.php";

$board_location = explode("\\", __DIR__);

$board_name = $board_location[5];

$board_title = board_title($board_name);

echo $board_title;

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.