Jump to content

[SOLVED] external file not working?


sandbudd

Recommended Posts

For example, if you have a file structure like so:

 

index.php -> javascript.js

                  another_javascript.js

 

If calling the javascript.js directly, and the javascript.js script references another_javascript.js as src="another_javascript.js", it'll work. But if you're including it from the root and using this method rather than src="http://www.example.com/dir/another_javascript.com", when including the javascript.js, it'll be looking for another_javascript.js in the wrong directory.

 

It's kind of hard to explain. So yeah, are you calling any other files or anything, or are you getting an error?

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.