Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 提交多维数组后损坏_Php_Html_Apache_Multidimensional Array_Zend Server - Fatal编程技术网

Php 提交多维数组后损坏

Php 提交多维数组后损坏,php,html,apache,multidimensional-array,zend-server,Php,Html,Apache,Multidimensional Array,Zend Server,我遇到了一个奇怪的问题,我真的不知道为什么会发生这种情况 采取这种形式: <?php print_r($_POST); ?> <html> <head> </head> <body> <form action="" method="post"> <input type="text" name="hello[a][b][c]" value="d"/> <

我遇到了一个奇怪的问题,我真的不知道为什么会发生这种情况

采取这种形式:

<?php
print_r($_POST);
?>
<html>
<head>
</head>
<body>
    <form action="" method="post">
            <input type="text" name="hello[a][b][c]" value="d"/>
            <input type="submit"/>
    </form>
</body>
</html>

当我在一台服务器上提交包含多维数组的表单时,我将其读取为:

Array ( [hello] => Array ( [0] => ) ) 数组( [你好]=>阵列( [0] => ) ) 在另一台服务器上,我得到以下信息:

Array ( [hello] => Array ( [a] => Array ( [b] => Array ( [c] => d ) ) ) ) 数组( [你好]=>阵列( [a] =>数组( [b] =>数组( [c] =>d ) ) ) ) 以下是服务器环境的详细信息:

服务器一:Ubuntu 14.04-TLS、PHP5.5.9.1和Apache 2.4.7-1ubuntu4.1 0
服务器二:Debian 7、PHP/5.5.13 ZendServer/7.0.0、, Apache/2.2.22(Debian)

有人知道这个问题或者有什么想法吗

亲切问候,, Christian我发现了这个问题

第一台服务器是通过DNS重定向访问的
客户端->www.x.com->www.z.com(服务器)
这两个域名都来自不同的公司
第二个是直接访问的
因此,在www.z.com上调用该表单后,它将一如既往地工作。
重定向未配置为A记录。当它是时,它工作起来没有问题。

我会看看php.ini。php配置中一定有一些东西。我以前没有看到第一个示例输出。您确定测试了相同的脚本吗?Ubuntu服务器中没有理由使用
[0]
。问题很好,可以使用php\u info?Upvote显示设置,以便考虑dns配置