每次运行脚本的这一部分时,stript都会停止工作。
$url = $this->getUrl . '?id=' . $this->apiKey . '&email=' . urlencode($this->email) . '&produkt[]=' . urlencode($this->product) . '&orderid=' . $this->order_id;
foreach ($this->products as $product) {
$url .= '&produkt[]=' . urlencode($product);
}
当我将$url = $this->getUr ... ...
更改为$url = http://blablabla.com/blabla... ...
时,一切正常。
虫子在哪里?
是的,将"php_flag display_errors on"设置到该文件夹中的.htaccess文件中,您就会看到问题所在。
来自
$url = $this->getUrl . '?id=' . $this->apiKey . '&email=' . urlencode($this->email) . '&produkt[]=' . urlencode($this->product) . '&orderid=' . $this->order_id;
foreach ($this->products as $product) {
$url .= '&produkt[]=' . urlencode($product);
}
至
$url = $getUrl . '?id=' . $apiKey . '&email=' . urlencode($this->email) . '&produkt[]=' . urlencode($product) . '&orderid=' . $order_id;
$this->
在我的脚本中没有定义,所以删除它后,脚本运行良好。但在创建url之前,每个人都必须定义$product
。它在我的剧本中起作用!