Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.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 标题位置在chrome上的工作不一致?_Php_Html_Header_Location - Fatal编程技术网

Php 标题位置在chrome上的工作不一致?

Php 标题位置在chrome上的工作不一致?,php,html,header,location,Php,Html,Header,Location,所以我有一个在服务器上运行的网店,它在我能接触到的每台电脑上都运行良好。但由于某些原因,客户在支付网站的一个标题位置上仍然存在问题。我检查了所有代码,并尝试了100种不同的方式打破支付链接,但没有找到一个 我想是校长的位置:。。。或者事实上,它是连续三个,中间有一些只使用php的验证页面,这可能会给版本带来一些麻烦,但我只是猜测 剪掉index.php文件 ob_start(); require_once($Content_Path); $zpfw_page_output = ob_get_co

所以我有一个在服务器上运行的网店,它在我能接触到的每台电脑上都运行良好。但由于某些原因,客户在支付网站的一个标题位置上仍然存在问题。我检查了所有代码,并尝试了100种不同的方式打破支付链接,但没有找到一个

我想是校长的位置:。。。或者事实上,它是连续三个,中间有一些只使用php的验证页面,这可能会给版本带来一些麻烦,但我只是猜测

剪掉index.php文件

ob_start();
require_once($Content_Path);
$zpfw_page_output = ob_get_contents();
ob_end_clean();


//************************************************
// Include the requested header / footer / etc..
//************************************************

//Here we include the HEADER HTML.
require_once($Config['AbsolutePath'] . '_headers/' .        $Config['HeaderFilename']);


//Here we include the PHP PAGE.
echo $zpfw_page_output;


//Here we include the FOOTER HTML.
require_once($Config['AbsolutePath'] . '_footers/' . $Config['FooterFilename']);
内容页面是唯一改变$Content_路径的东西,因此客户将他想要购买的热门产品放在购物篮中并进行结账,现在我们页面上的每一篇帖子都会转到posttogethandler,以使其对seo友好。indexpages使用前两个参数www.google.nl/module/page/test 要更改内容路径,请更改用作参数的所有内容$\u Get[Param1]=“test”

posttogethandler.php:

<?php
if(isset($_POST))
{
    include '../../../_bootstrap.php';
    if(!empty($_POST['m']) && !empty($_POST['c']))
    {
        $post_string = '';
        foreach($_POST as $key => $postitem)
        {
            if($key == 'm')
            {

            }
            elseif($key== 'c')
            {

            }
            else
            {
                $post_string = $post_string.$postitem.'/';
            }
        }
    header('location:'.$Config['AbsoluteURL'].$_POST['m'].'/'.$_POST['c'].'/'.$post_string);
    }
}
对于创建mollie付款并再次发送给付款人的实际检查,我将稍微缩短它,以仅包含它通过的代码,如果没有错误,则此文件中不存在echo命令

<?php
$mollie = new Mollie_API_Client();
$mollie->setApiKey($Config['Mollie']['Api_Key']);

if(!empty($_GET['param1']) && $_GET['param1'] == 'checkout' && !empty($_SESSION['Customer_ID']))
{

/* alot of checks and inserts into mysql database to keep track */


if(!empty($_GET['param3']) && $_GET['param3'] == 'secretcode')
{
    //for skipping payment
    header('Location: ' . $Config['AbsoluteURL'] . 'account/order/' . $uniqueID);
    exit;
}
else
{
    $payment = $mollie->payments->create(array(
        "amount"      => mollieCartPriceIncTaxes($_SESSION['cart'],$_SESSION['Customer_ID'])[0],
        "description" => "Payment for ...",
        "redirectUrl" => $Config['AbsoluteURL']."account/order/payment/".$uniqueID."",
        "webhookUrl" => $Config['AbsoluteURL']."cart/checkout/webhook"
    ));
    $payment = $mollie->payments->get($payment->id);

    zp_mysqli_query("Update orders set Order_MollieID = '".$mysqli->real_escape_string($payment->id)."' where Order_ID = '".$mysqli->real_escape_string($uniqueID)."'");

    if(!empty($_SESSION['pick_up']))
    {
        unset($_SESSION['pick_up']);
    }

    header("Location: " . $payment->getPaymentUrl()."/#");
    exit;
}
}
我会在几个小时后再编辑一些,现在就要走了。这是托管在服务器上的,所以我已经检查了html代码是否先发送,但在我试图打开网站的任何pc上都找不到,也没有遇到任何问题

任何指点都将不胜感激

编辑:

重定向到域外的页面似乎有问题。我正在重新制作页面,这样按钮就可以直接链接到付款页面。这似乎奏效了