如何在部分
中拆分大字符串我有一个非常大的字符串,我不能发送它们
到我的php文件
我收到错误:此网址太大
我发送它们
Dim bigstr = "TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAAAj0J2aZ7HzyWex88lnsfPJbslgyXKx88lnsfLJwbHzyXnjZslhsfPJbslwyW6x88luyXfJQrHzyW7JYclmsfPJbslnyWax88luyWLJZrHzyVJpY2hnsfPJAAAAAAAAAABQRQAATAEFABYd4U0AAAAAAAAAAOAAAwELAQkAAM4AAAC4AAAAAAAA/ZoAAAAQAAAA4AAAAABAAAAQAAAAAgAABQAAAAAAAAAFAAAAAAAAAACQAwAABAAAAAAAAAIAAIUAABAAABAAAAAAEAAAEAAAAAAAABAAAADwgAAMwAAANTsAADIAAAAAPACAPSWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQ4gAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAkAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC50ZXh0AAAAS8wAAAAQAAAAzgAAAAQAAAAAAAAAAAAAAAAAACAAAGAucmRhdGEAAHUbAAAA4AAAABwAAADSAAAAAAAAAAAAAAAAAABAAABALmRhdGEAAADY2QEAAAABAAACAAAA7gAAAAAAAAAAAAAAAAAAQAAAwC5DUlQAAAAAEAAAAADgAgAAAgAAAPAAAAAAAAAAAAAAAAAAAEAAAEAucnNyYwAAAPSWAAAA8AIAAJgAAADyAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAID5QHMWgPkgcwYPrdDTsOLwsH6H4DhH9P4w8H6H4vCw8zMzMzMzMzMzMzMzMzMzItEJAiLTCQQC8iLTCQMdQmLRCQE9HCEABT9GL2ItEJAj3ZCQUA9iLRCQI9ED01vCEADMzMzMzMzMzMzMzMxXVlMz / 4tEJBQLwH0UR4tUJBD32Pfag9gAiUQkFIlUJBCLRCQcC8B9FEeLVCQY99j32oPYAIlEJByJVCQYC8B1GItMJBiLR ................................"
抱歉,我忘记了 我想用vbscript发送该字符串 我正在使用:vbs代码:
Set o = CreateObject("MSXML2.XMLHTTP")
phpfile = "data.php?action=write&data="
ff = site & ee & str
o.open "GET",ff, False
o.send
php代码:
<?php
$action = $_GET['action'];
$data = $_GET['data'];
if ($action == "write"){
unlink("data.txt");
$open = fopen("data.txt", 'a');
fwrite($open, $data);
fclose($open);
}
现在我想把那个大字符串分成几部分并用循环发送它们
或任何其他解决方案
抱歉我的英文不好答案 0 :(得分:0)
某些网络浏览器仅支持字符串中的最大字符数(您的字符串长度约为27.700个字符)。 Here是指向有关浏览器上的网址限制的文章的链接。
所以这里有一个问题:您是否真的需要将所有信息发送到您的PHP页面? 可能的解决方案:尝试将重复字符(例如所有A&#缩小)缩小为较短的版本。 &#34; Ax467&#34;而不是467次&#34; A&#34;在字符串中。和/或尝试过滤掉一些标准信息,或用更短的字符串替换它。 (27.700个字符很多)