Forum Moderators: coopster
<?php
# Determine the current base URL
if(!isset($_SERVER['REQUEST_URI'])) {
$psps_base_url = $_SERVER['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) { $psps_base_url .= $HTTP_SERVER_VARS['QUERY_STRING']; }
} else {
$psps_base_url = $_SERVER['REQUEST_URI'];
}
$psps_parameters = '';
foreach ($_REQUEST as $key => $value) {
if (strpos($key,"psps_") > -1 ) {
$psps_parameters .= '&'.$key.'='.urlencode($value);
$psps_base_url = str_replace('&'.$key.'='.urlencode($value), "", $psps_base_url);
$psps_base_url = str_replace($key.'='.urlencode($value), "", $psps_base_url);
}
}
$psps_parameters .= "&psps_show_search=true";
$psps_parameters .= "&psps_show_navigation=true";
$psps_parameters .= "&psps_show_products=true";
$psps_url = "?psps_base_url=".urlencode($psps_base_url);
$psps_url="http://example.com/shops/php/654zcsroiuyfiiwvnfqc06xax$psps_url$psps_parameters";
# Include the shop
if (function_exists('curl_init')) {
$shop=curl_init();
curl_setopt($shop,CURLOPT_URL,$psps_url);
curl_exec($shop);
curl_close($shop);
} else {
readfile($psps_url);
}
?>
[edited by: eelixduppy at 2:28 am (utc) on June 28, 2008]
[edit reason] example.com [/edit]
I think you should be able to solve the problem on your side, but first you'll need to know how you can access the array with the information. What the name of that array is and how it is constructed. Once you know the name a simple var_dump() will tell you more about how it is composed.