Please suggest me solution to image/link upload in editor???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rasmita
Forum Newbie
Posts: 11
Joined: Wed Nov 19, 2008 5:38 am

Please suggest me solution to image/link upload in editor???

Post by rasmita »

I have been working on cms for a site, where I have used an editor. Here there is a option for image upload through the editor, where it must take a relative path such as /testfiles(foldername)/filename.jpg but unfortunately it is taking an absolute path such as http://74.35.24.18(hostname)/~sitename/test/filename.jpg.It is happening same for links/url to be uploaded from the server.

My Question is : Is this problem is for site url where "~" is used because I have changed the configue of the editor but no change, the problem is the same for image/link upload in the editor. Please suggest me any solution for this problem.

Editor used is Fckeditor....
User avatar
LanceEh
Forum Commoner
Posts: 46
Joined: Tue Feb 17, 2009 11:53 am
Location: Florida

Re: Please suggest me solution to image/link upload in editor???

Post by LanceEh »

Can you edit it manually.

Change the <img src=" to whatever you need?

Note: By the way, this isn't a PHP question.

Take care.
Post Reply