doulu3399 2016-02-05 02:39
浏览 18
已采纳

将变量从.html传递到.php太大而不适合URL?

I am trying to pass a very large array from html to php. After converting to a string, it is too large to pass to a php via POST. My overall goal is to save the variable to a server-side file. Any tips for methods? Thanks in advanced.

  • 写回答

1条回答 默认 最新

  • dpr26232 2016-02-05 03:04
    关注

    When using POST method you are not passing data through URL, that's GET method. If you are passing data through POST and it's too big then you can increase pass through limit with the following flags in .htaccess.

    post_max_size - What is the size limit of a post request?

    max_input_vars - max_input_vars limited in PHP 5.2.17

    upload_max_filesize - How to set upload_max_filesize in .htaccess? (just in case)

    Difference between POST and GET - What is the difference between POST and GET?

    I think that should set you on the right path. Also, keep in mind this should all work locally but if you're using free hosting provider these limits may not be changed without contacting support.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度