Home  >  Article  >  Backend Development  >  fck picture cannot be displayed_PHP tutorial

fck picture cannot be displayed_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:52:391048browse

Let’s take a look at how to make fck display the pictures we uploaded normally.

Let’s take a look at how to make fck display the pictures we uploaded normally.


PHP_SELF"]?>" method="post">
Title:

include "fckeditor/fckeditor.php"; //Include files
$ofckeditor = new FCKeditor("fckeditor1"); //Create instance
$ofckeditor->BasePath = "./fckeditor/"; //Set the path of FCK
$ofckeditor->ToolbarSet = "Default"; //Set the editor toolbar type
$ofckeditor->Width="700px";
$ofckeditor->Height = "300px"; //Set the editor height
$ofckeditor->Create(); //Create editor
?>








echo $_POST["fckeditor1"];
?>

The path is wrong. .
Pay attention to your source code:

Look at your calling fck address: fckeditor/fckeditor.php
It means that your preview page and fck are not at the same level. Besides, by default, the source code of images uploaded by FCK should contain the complete URL.
It seems that your FCK has been changed.

Configure your fck and it will be OK.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632467.htmlTechArticleLet’s take a look at how to make fck display the pictures we upload normally. Let’s take a look at how to make fck display the pictures we uploaded normally. div id=wrapper fo...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn