PHP:后期全局变量的总长度是多少? [英] PHP: whats the total length of a post global variable?
问题描述
$ _ POST ['formInput'] =你好,我可以多久?
我正在创建一个站点,用户可以输入未知数量的字符到textarea中,可以是一个word文档中的2页。因此,如果有人知道除了使用全球邮政之外我还能做到这一点的其他方法吗? (它不能被保存在一个文件中,因为它不重要的数据,我不希望其他人找到)这将是非常有益的。
谢谢
检查您的php.ini文件是否为的post_max_size
。默认情况下,这通常约为8MB,但如果您使用共享主机,则可能会有所不同。
; PHP将接受的POST数据的最大大小。
post_max_size = 8M
如果您希望使用 $ _ POST
向服务器发送大量数据。为了进一步研究,我建议查看 POST方法上传在文档中。
I was wondering if anybody knows the total length that a post global could be. e.g:
$_POST['formInput'] = "hello world, how long can i be?";
I am creating a site where someone will enter an unknown amount of chars into a textarea, so potentially it could be 2 pages on a word document. So if anybody knows of any other methods of how i can do this apart from using a post global? (it cant be saved in a file, as its important data that i dont want other people to find) That would be very helpful.
Thanks
Check your php.ini for post_max_size
. This is typically about 8mb by default, but if you're on shared-hosting, it could definitely vary.
; Maximum size of POST data that PHP will accept. post_max_size = 8M
You'll have to use $_POST
if you wish to send large amounts of data to the server. For further study, I'd suggest checking out POST Method Uploads in the documentation.
这篇关于PHP:后期全局变量的总长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!