Jump to content

HELP how to call root directory from a folder within??


Wideawake

Recommended Posts

Ok so I tried installing a script of a test site. Got everthing working except the .phps which are in a different folder. Ok so my index pulls info like this and it works

<?
include("_header.php");
$title = "mysite ;)";
include ('title.php');
?>

this is in the root folder. but my other pages inside of folders within the root, are set up the same way and dont pull the info like it should. I can place those pages in the root and the work, but within another folder they dont. Im sure its a easy fix, but im a complete n00b and cluess. Any help would be greatly appreciated.
Thx,
Mike
Link to comment
Share on other sites

[quote author=redarrow link=topic=101597 .msg402206#msg402206 date=1153693589]
example ok.

include="header.php";
include("header.php");
require_once("header.php ");
require("include.php");

[/quote]

huh? u lost me.... the example I posted works fine in the root, but the .phps in folders within the root it doesn't work. I being a n00b can only guess theres a command to tell it to look in the root or one directory up. but I'm new to al this.

say the example I posted above is my index.php, it works in the root, but if I move to say folder /includes it doesn't pull those like it should. any suggestions. I need help quick ;)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.