How to define "Absolute Path WITHOUT trailing slashes " in the following case.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilya Kraft
    New Member
    • Jan 2011
    • 134

    How to define "Absolute Path WITHOUT trailing slashes " in the following case.

    Hello,

    I recently came over a nice tutorial of voting system. The problem is that in one of the steps it requires to define a path to the directory of this voting system.
    The Folder that contains this system is called Pulse.
    Inside this folder is a file named pulse.config.ph p.
    Inside pulse.config.ph p is where I need to define a path.
    In the following line:
    Code:
    define('PULSE_DIR', '[B][U]//DEFINE HERE[/U][/B]'); // absolute path of the dir where Pulse is; WITHOUT trailing slash
    Normally I would define it like this ../Pulse
    But here it asks to define it without SLASH and I have no idea how to do it. If anyone could help it would be great.

    For additional info here is the tutorial Voting Tutorial
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    with trailing slash: ../Pulse/
    without trailing slash: ../Pulse

    Comment

    Working...