Our site www.viart.com is operated by latest Viart Shop 5.8.28 with default Clear design
Topic Information
CMartell (Guest)
CMartell (Guest)
The output of the PHP running in my custom block appears above the Header.
 
How can I make it go directly into the block and not above the header?
 
I've also tried a custom page... same thing, output went above the header.
 
I've tried using block_info .= that didn't help....
 
Does anyone have an answer for this??
 
CM
 
ewoud (Guest)
ewoud (Guest)
I got the same error, viart is looking into this. I'll let you know when they come up with a solution.
 
CMartell (Guest)
CMartell (Guest)
Thanks ewoud! I'll be happy to get a solution to this!
 
ewoud (Guest)
ewoud (Guest)
me too! but it seems to take a bit longer than expected. I'm having a hard time getting this solved, anjula told me that the developer is looking into it but have not heard anything since...
I'll keep you posted!
e
 
ewoud (Guest)
ewoud (Guest)
Hi C,
tis is what they came up with so far. I haven't tried this with a php script yet, just replace the url with the one where your script is located. hope it helps,
e
 
here it goes:
<?php
 
$ch = @curl_init();
if ($ch) {
curl_setopt($ch, CURLOPT_URL, "http://yourdomain.com/yourscriptdir/demo.html"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
}
 
$block_body .= $response;
 
 
?>
 
crmartell (Guest)
crmartell (Guest)
The above code works... but not if the extension is HTML... it has to be a PHP extension. At least that's the only way I could get it working.