English 中文(简体)
通过PHP将文件上载到SQL(GoDaddy Unix)
原标题:Uploading files over 20MB via PHP to mySQL (GoDaddy Unix)

我正试图修改现有的PHP代码、我的SQL数据库和在GoDaddy的服务器环境(php.ini和.htaccess),允许超额卸载20页: 1B(新限为30页: 1)。 目前,当我卸载超过8页: 1B的物品时,PHP代码显然会执行(我知道这一点,因为有一个最新查询表明上载的结果),PHP、SQL或服务器没有出现错误,但也没有上载。

我在php.ini档案中确定了以下参数:

memory_limit = 100页: 1  
post_max_size = 30页: 1  
file_uploads = On  
upload_max_filesize = 30页: 1  
max_execution_time = 0  
max_input_time = 0

我的查阅文件说:

LimitRequestBody 0

我的PHP代码在8个甲基溴下运行良好的文档,但我对为何根本不发生任何事情感到不安。 我检查了文件上载地点(在我插入/更新数据进入我的SQL之前,将文件上载到服务器档案系统),8个以上的档案从来就没有这样做。 因此,我的想法是,这是失败的。

任何人都有我失踪的想法?

预先感谢任何投入。

页: 1

EDIT:

OK - 感到可以免费给我 du! 我正在Sphp5中工作。 软体原始文件php.ini(至少在这一服务器上——不知道其他服务器是否真的)仅用于5种版本。 在第5版中,你必须使用php5.ini。

As per the GoDaddy support document: http://help.godaddy.com/article/1475

问题回答

利用“Candreinfo”文档对限额的界定进行核查。 仅提出载有以下内容的档案,并称其为你所喜欢的(Candre php的延伸......):

<?php phpinfo(); ?>

根据这一员额(http://wordpress.org/support/topic/upload_max_filesize-increase-on-godaddy) 您需要加入另一行:

suPHP_ConfigPath php.ini




相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签