Jump to content

directory location help


herghost

Recommended Posts

Hi all,

 

I am having some problems with a tiny piece of code in .js

// Images Directory
imagesDir = "/wysiwyg/icons/";

 

On my wamp server, this link points to localhost/wysiwyg/icons/ - however it should appear like this localhost/mydirectory/subdirectory/wysiwyg/icons/

 

I know I could just type this in, however this script is going to be made available to different people on different domains. For the php in my scripts I have set a variable called $baseurl, which will be set on install. Is there anyway of parsing this value into the .js script? Or creating something similar?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/194385-directory-location-help/
Share on other sites

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.