Goodafternoon Gents,
I'm dev-ing a CMS for my 4 hobby sites, which is hosted on several servers.
So I figured out that the best way to keep them updated was to write a complete CMS in which I can connect to all the sites.
The only problem I got is that I had to rewrite the FileManager to manage read and write to FTP. This all works, and I will give the code to you all after I'm completely finished, but I still have some problems.
When I browse to all my folders and I finally click an Image I get a link like:
http://www.example.com/web/media/pictures/1-2-3-4.jpg
The only problem is, is that the image file is not located there, it is located at:
http://www.example.com/media/pictures/1-2-3-4.jpg (notice the /web is gone)
Anyone an idea how to do that?
----
The other thing is, when I connect I come in the root of my FTP -> /
But I would like to go directly to the folder I like, e.g. /web/media/
Though I would like the user not to see /web/media/ ... I would prefer they just see / .. and that they also cannot go out of that folder.
Is it possible?
Does anyone have a clue, is my question clear or do I give more input?
I hope you guys can help me out!
Tue, 02/17/2009 - 15:54
#1