发送$ _GET变量时遇到了一个有趣的问题。这是一个很长的变数。
我尝试发送的内容(不起作用):
http://site.com/test.php?url=http%253A%252F%252Ffilecrown.com%252Fkf3f6sh97d1v%252FAnda_-_Bartok_-_Children.part1.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252Ft3chpybkpv3u%252FAnda_-_Bartok_-_Children.part2.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F1u9ajwa44u8y%252FAnda_-_Bartok_-_Children.part3.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F9v5hak7ssv3u%252FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%252614%252628.part1.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252Flul0nem8awsk%252FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%252614%252628.part2.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F93t2hhk973r0%252FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%252614%252628.part3.rar.html
print_r($ _ GET)输出:
Array ()
我尝试发送(工作):
http://site.com/test.php?url=http%253A%252F%252Ffilecrown.com%252Fkf3f6sh97d1v%252FAnda_-_Bartok_-_Children.part1.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252Ft3chpybkpv3u%252FAnda_-_Bartok_-_Children.part2.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F1u9ajwa44u8y%252FAnda_-_Bartok_-_Children.part3.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F9v5hak7ssv3u%252FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%252614%252628.part1.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252Flul0nem8awsk%252FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%252614%252628.part2.rar.html%250Ahttp%253A%252F%252Ffilecrown.com%252F93t2h
print_r($ _ GET)输出:
Array ( [url] => http%3A%2F%2Ffilecrown.com%2Fkf3f6sh97d1v%2FAnda_-_Bartok_-_Children.part1.rar.html%0Ahttp%3A%2F%2Ffilecrown.com%2Ft3chpybkpv3u%2FAnda_-_Bartok_-_Children.part2.rar.html%0Ahttp%3A%2F%2Ffilecrown.com%2F1u9ajwa44u8y%2FAnda_-_Bartok_-_Children.part3.rar.html%0Ahttp%3A%2F%2Ffilecrown.com%2F9v5hak7ssv3u%2FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%2614%2628.part1.rar.html%0Ahttp%3A%2F%2Ffilecrown.com%2Flul0nem8awsk%2FAnda_-_Beethoven_-_Piano_Sonatas_Nos.7%2614%2628.part2.rar.html%0Ahttp%3A%2F%2Ffilecrown.com%2F93t2h )
单个$ _GET变量大小是否有限制?我很困惑为什么它会停止工作到某一点。
答案 0 :(得分:2)
答案 1 :(得分:0)
我不确定GET变量的限制是多少,该限制是由您使用的浏览器确定的,我建议如果您必须发送大量信息,则应使用POST而不是GET。
答案 2 :(得分:0)