我正在使用tinyMCe我的项目.一切正常,但现在我想限制将插入tinyMcetextarea 的字符数
tinyMCE.init({
// General options
mode : "textareas",
theme : "simple",
plugins : "autolink,lists,pagebreak,style,table,save,advhr,advimage,advlink,emotions,media,noneditable,nonbreaking",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect",
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,code,|,forecolor,backcolor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
max_chars : "10",
max_chars_indicator : "lengthBox",
theme_advanced_resizing : true
});
Run Code Online (Sandbox Code Playgroud)
我用了 :-
max_chars : "10",
max_chars_indicator : "lengthBox",
Run Code Online (Sandbox Code Playgroud)
但仍然没有工作.谢谢.
我想在存储在我们服务器上的浏览器上显示PDF文件.这是我的代码: -
$path = $_SERVER['DOCUMENT_ROOT'].folder_name.'/resources/uploads/pdf/pdf_label_'.$order['id'].'.pdf';
$filename = 'pdf_label_'.$order['id'].'.pdf';
$file = $path;
$filename = $filename;
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
@readfile($file);
Run Code Online (Sandbox Code Playgroud)
但它在浏览器上返回低于输出:
%PDF-1.4 % 5 0 obj >stream
Run Code Online (Sandbox Code Playgroud)
PDF文件显示:

我在codeignter看来这样做.
我做错了什么?请帮帮我.提前致谢
编辑: -
我做的事情如下:
foreach($orders as $order){
$path = $_SERVER['DOCUMENT_ROOT'].folder_name.'/resources/uploads/pdf/pdf_label_'.$order['id'].'.pdf';
$filename = 'pdf_label_'.$order['id'].'.pdf';
$file = $path;
$filename = $filename;
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
echo file_get_contents($file);
}
Run Code Online (Sandbox Code Playgroud)
那么如何在浏览器上显示多个文件?
编辑2: -
因此,根据下面的答案,我必须使用phpmerger合并多个PDF文件并显示到浏览器中.我浏览了这个网站http://pdfmerger.codeplex.com/但无法用于codeignter.任何人都可以帮我在我的编码器中使用这个phpmerger
我正在使用DOMPDF将html转换为PDF,转换后我将该PDF文件发送到用户邮件ID.
一切都很完美,但在PDF文件中,我无法看到我网站的徽标图像.我还在stackoverflow中搜索以前的问题,例如: - 使用dompdf, dompdf和img标签的pdf图像中的错误,图像不会显示
我还设置DOMPDF_ENABLE_REMOTE要TRUE与DOMPDF_PDF_BACKEND以CPDF
我的图片标签是: -
<img src="http://www.example.com/clients/myprojects/images/logo.png" alt="" /></a>
我正在提供我的网站的完整路径,但它仍然没有在我的PDF文件中显示图像.
提前致谢.
我正在使用嵌入式,它工作正常,但问题是对于某些视频它给出了错误 - not a valid key.我知道我们必须在他们的网站上注册并支付一些钱用于密钥但是,我不想这样做.是否有任何其他解决方案为视频嵌入代码,以便我可以把我的代码放在嵌入以外的其他代码上.如果是,请帮助我,或者如果可能请提供一些示例来执行此操作.密钥的代码如下所示.
$pro = new Embedly_API(array(
'key' => 'xxxxxxxxxxxxxxxx', //need a pro key for this
'user_agent' => 'Mozilla/5.0 (compatible; mytestapp/1.0)'
));
Run Code Online (Sandbox Code Playgroud)
提前致谢.
我有一个问题,curl没有显示在我正在使用的phpinfo wampserver(64 bit)但是当我打开PHP然后PHP扩展时php_curl,我的wamp服务器前面有一个刻度,但仍然没有在phpinfo中显示curl.谁能帮我?
我在这里使用TinyMCE是我的代码: -
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced"
});
Run Code Online (Sandbox Code Playgroud)
这是我的HTML代码: -
<textarea name="terms" id="elm1" rows="15" cols="30" width="100%" ></textarea>
Run Code Online (Sandbox Code Playgroud)
问题是,当我做这样的事情时,我没有得到这个textarea的帖子值: -
print_r($_POST['terms']);
Run Code Online (Sandbox Code Playgroud) 情况如下:
我有一个项目,我想在localhost上运行http://www.coye.com/,我已经设置了一个虚拟主机,运行方式如下:
F:\ xampp\apache\conf\extra\httpd-vhosts.conf:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "F:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "F:/xampp/htdocs/coye"
ServerName coye.com
ServerAlias www.coye.com
RewriteEngine on
#Added New by Sandeep - Start
RewriteCond %{HTTP_HOST} !^www.coye\.com$ [NC]
RewriteRule ^(.*)$ http://www.coye.com$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/images
RewriteCond %{REQUEST_URI} !^/css
RewriteCond %{REQUEST_URI} !^/js
RewriteCond %{REQUEST_URI} !^/fckeditor
RewriteCond %{REQUEST_URI} !^/securityimage
RewriteCond %{REQUEST_URI} !^/sitemap.txt
RewriteRule ^/(.*)$ /index.php?request=$1 [PT,QSA,L]
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
C:\ WINDOWS\SYSTEM32\DRIVERS\ETC \主机
127.0.0.1 localhost
127.0.0.1 coye.com
127.0.0.1 www.coye.com
127.0.0.1 api.coye.com
127.0.0.1 merchant.coye.com
127.0.0.1 admin.coye.com
Run Code Online (Sandbox Code Playgroud)
现在我想跑,PHPMyadmim但无法通过 …
我正在使用Zurb Css框架,如基础文档中所述.zurb.com/docs/forms.php 我使用了与下面提供的相同的代码
<label for="customDropdown">Dropdown Label</label>
<select style="display:none;" id="customDropdown">
<option SELECTED>This is a dropdown</option>
<option>This is another option</option>
<option>Look, a third option</option>
</select>
<div class="custom dropdown">
<a href="#" class="current">This is a dropdown</a>
<a href="#" class="selector"></a>
<ul>
<li>This is a dropdown</li>
<li>This is another option</li>
<li>Look, a third option</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
但我看不到任何下拉,上面的代码是从他们的网站上复制粘贴的.
谢谢.
我找到了一个有用的jQuery插件,用于在这个链接Jput插件中以简单的方式将JSON数据附加到HTML内容
但是我想知道如何通过ajax发送和获取json数据?请帮我.提前致谢.
我的代码: -
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $gacookie);
curl_setopt($ch, CURLOPT_URL,"http://merchants.rediff.com/productsajax?callback=jQuery".$twentyone_digit."_".$thirteen_digit."&take=10&skip=10&page=2&pageSize=10&_=".$thirteen_digit."");
$response = curl_exec ($ch);
var_dump($response);
Run Code Online (Sandbox Code Playgroud)
它返回: -
string(4093) "jQuery859123095956361597167_5643376418178([{"total":53,"ProductID":12959659,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Forward March Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL036","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl036.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959543,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Womens Right Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL034","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl034.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959504,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Success Mantra Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL033","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl033.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959375,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Strength is Life Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL032","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl032.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959086,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Service to Man is God Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL031","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl031.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959053,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Respect Women -Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL030","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl030.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12959026,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect Grey Vivekananda Women","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL029","margin_percent":"20","utime":"07-AUG-2014 15:27:33","ProductImage":"http://imshopping.rediff.com/imgshop/100-100/shopping/pixs/17588/v/vypl029.jpg","Inventory":"10","jobstatus":"Submitted"},{"total":53,"ProductID":12958976,"IsParent":"1","published":"1","ProductName":"Vivekananda Youth Connect I wear Strength Womens Tshirt","Availibility":true,"ListPrice":"499","WebPrice":"499","vendorSKU":"VYPL028","margin_percent":"20","utime":"07-AUG-2014 …Run Code Online (Sandbox Code Playgroud) php ×7
html ×4
codeigniter ×2
javascript ×2
jquery ×2
tinymce ×2
ajax ×1
api ×1
arrays ×1
curl ×1
dompdf ×1
json ×1
pdf ×1
phpmyadmin ×1
rte ×1
string ×1
video ×1
virtualhost ×1
wamp ×1
xampp ×1