Problem with fckeditor while giving url link to any file

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
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Problem with fckeditor while giving url link to any file

Post by manojsemwal1 »

Hai iam using fckeditor its having problem with insert picture and hyperlink when i insert the pic in the fckeditor and save it after save it the pic is not displaying when i check the code it show like.......

<p><img alt="\"\\"\\\\"\\\\"\\"\"" width="\"\\"\\\\"300\\\\"\\"\"" height="\"\\"\\\\"308\\\\"\\"\"" src="\"../userfiles/image/computer-kb-mouse.jpg\"" /></p>
<h3>Type the title here</h3>
<p>Type the text here</p>


While its working in localhost and when i upload it linux server its having the above code...........

Pl Help

thanks
User avatar
ganesh_dabhade
Forum Newbie
Posts: 19
Joined: Sun Feb 06, 2011 12:42 am
Contact:

Re: Problem with fckeditor while giving url link to any file

Post by ganesh_dabhade »

Check the case (UPPER and/or lower) of file and folder names as the linux is very case sensitive.
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: Problem with fckeditor while giving url link to any file

Post by manojsemwal1 »

i saw it its ok fine

but still the problem is same i had checked the config.php file and try to change the
$Config['UserFilesPath'] = '/userfiles/' ;
$Config['UserFilesAbsolutePath'] = '';

but the problem is same.

when i submit the content and see the hyperlink its getting some /and quote like
<p><a href="\"userfiles/file/crc%20name.pdf\"">Manoj</a></p>

how to solve this..................
User avatar
ganesh_dabhade
Forum Newbie
Posts: 19
Joined: Sun Feb 06, 2011 12:42 am
Contact:

Re: Problem with fckeditor while giving url link to any file

Post by ganesh_dabhade »

change this
<p><a href="\"userfiles/file/crc%20name.pdf\"">Manoj</a></p>
to this
<p><a href="userfiles/file/crc%20name.pdf">Manoj</a></p>

the %20 represents a space and I really don't know whether %20 works on linux server or not.
Post Reply