Help with a path

I’m having trouble with the correct path.

If I have the path to the video script on this page:

but the video script in on this page:

what would the correct path be?

Hi there ChrisjChrisj,

try it like this, perhaps…

<script src="../../player/js/player1.js"></script>


1 Like

or maybe like this:

<script src="/themes/default/player/js/player1.js"></script>

assuming that “/” is indeed the root directory.

If and only if you are using PHP then find out where you are and use …/, etc to the relative file otherwise hard-code the complete path.

echo getcwd();
// set relative path 

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.