Jump to content

$system_path = "../system/"; ? Help !

- - - - -

  • Please log in to reply
1 reply to this topic

#1
mooapo

mooapo

    Newbie

  • Members
  • Pip
  • 6 posts
Hi, how are you doing? I am a student, and clearly not a good one at that. Lol But anyways, I am having an issue with this ' $system_path = "../system/"; ', can anyone explain what and how one goes about doing this....

// Path to the directory containing your backend files

$system_path = "../system/";



Thank you.....:confused:

#2
SoN9ne

SoN9ne

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
$system_path = "../system/";
$system_path is being defined as having the current path from the current file.
For example:
Your folder setup is:
public_html
- index.php
system

$system_path = "../system/";
$system_path now points to the system folder.

the ../ indicated up one directory.
so you could go up multiple directories by using:
../../ (this is up 2 directories from the current directory the file is in)
../../../ (this is up 3 directories)

Does this make sense to you or should I explain it a different way?
"Life would be so much easier if we only had the source code."




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users