- Feb 14, 2004
- 50,753
- 6,780
- 136
I'm working on a project with multiple images and Flash files that are in a shared directory on the server. I need to be able to reference them from subdirectories. Question 1: Is using the absolute path the best way? If so, see next question. If not, please share your insights.
Question 2: when using absolute paths, how do you perform testing without actually loading it on the server? Most of the servers I use are remotely hosted. I don't want to have to upload everything just to make sure it all works because I can do that locally on my computer, but if I do the testing on my computer, I don't want to have to go through each file and edit the pathname on the computer to the absolute path name of the server. I don't know if there is a workaround for this, so maybe just uploading and testing or renaming are the best (and only) options. For example:
On my PC:
/files/flashmovie.swf
/projects/coolstuff.html
In coolstuff.html: embed ../files/flashmovies.swf
On the server:
www.mysite.com/files/flashmovie.swf
www.mysite.com/projects/coolstuff.html
In coolstuff.html: embed www.mysite.com/files/flashmovies.swf
It's either upload and test OR rename on upload, from what I see. Alternatives = ?
Question 2: when using absolute paths, how do you perform testing without actually loading it on the server? Most of the servers I use are remotely hosted. I don't want to have to upload everything just to make sure it all works because I can do that locally on my computer, but if I do the testing on my computer, I don't want to have to go through each file and edit the pathname on the computer to the absolute path name of the server. I don't know if there is a workaround for this, so maybe just uploading and testing or renaming are the best (and only) options. For example:
On my PC:
/files/flashmovie.swf
/projects/coolstuff.html
In coolstuff.html: embed ../files/flashmovies.swf
On the server:
www.mysite.com/files/flashmovie.swf
www.mysite.com/projects/coolstuff.html
In coolstuff.html: embed www.mysite.com/files/flashmovies.swf
It's either upload and test OR rename on upload, from what I see. Alternatives = ?