2009-10-12 48 views
0

我已经使用codeigniter和jquery uploadify为我的图片库。它在我的本地主机上正常工作。我的问题是当我上传到服务器。codeigniter和jquery uploadify

任何帮助将不胜感激。

在此先感谢

的错误是:

我的项目
'Data Loaded: <p>The path to the image is not correct.</p><p>Your server does not support the GD function required to process this type of image.</p>' 

根(codeiguploadify)

这里是链接 http://webberzsoft.com/clients/codeiguploadify/

我已经尝试过改变我文件夹放到'文件夹'中:'clients/codeiguploadify/uploads',但仍然没有工作。

<script type="text/javascript"> 
$(document).ready(function() { 
    $("#fileInput2").uploadify({ 
     'uploader'  : 'flash/uploadify.swf', 
     'script'   : 'uploadify/uploadify.php', 
     'cancelImg'  : 'flash/cancel.png', 
     'folder'   : 'uploads', 
     'multi'   : true  
    }); 
}); 

回答

0

从错误

Your server does not support the GD function required to process this type of image 

我想说你的本地主机具有所需的GD库包,和您的其他服务器也没有。你可以仔细检查PHP访问GD

您可以使用下面的PHP代码检查这(taken from here):

<?php 
/* Displays details of GD support on your server */ 
echo '<div style="margin: 10px;">'; 
echo '<p style="color: #444444; font-size: 130%;">GD is '; 
if (function_exists("gd_info")) { 
    echo '<span style="color: #00AA00; font-weight: bold;">supported</span> by your server!</p>'; 
    $gd = gd_info(); 
    foreach ($gd as $k => $v) { 
     echo '<div style="width: 340px; border-bottom: 1px solid #DDDDDD; padding: 2px;">'; 
     echo '<span style="float: left;width: 300px;">' . $k . '</span> '; 
     if ($v) 
      echo '<span style="color: #00AA00; font-weight: bold;">Yes</span>'; 
     else 
      echo '<span style="color: #EE0000; font-weight: bold;">No</span>'; 
     echo '<div style="clear:both;"><!-- --></div></div>'; 
    } 
} else { 
    echo '<span style="color: #EE0000; font-weight: bold;">not supported</span> by your server!</p>'; 
} 
echo '<p>by <a href="http://www.dagondesign.com">dagondesign.com</a></p>'; 
echo '</div>'; 
?>