TinyPortal

Development => Support => Topic started by: clothahump on May 07, 2007, 11:50:14 AM

Title: Parse Error in phpbox
Post by: clothahump on May 07, 2007, 11:50:14 AM
I am trying to implement a Block for random image from Menalto Gallery, following php throws a parse error with or without tags?
<?php @readfile('http://www.foxcombevale.co.uk/Gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>
Title: Re: Parse Error in phpbox
Post by: Zetan on May 07, 2007, 11:56:14 AM
Remove the tags
<?php 
?>

So you are left with:
@readfile('http://www.foxcombevale.co.uk/Gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title');

Title: Re: Parse Error in phpbox
Post by: clothahump on May 07, 2007, 12:39:37 PM
That did it, many thanks Zetan. :)
Title: Re: Parse Error in phpbox
Post by: Zetan on May 07, 2007, 12:50:09 PM
You're welcome... I tested it on my site just to make sure it worked  :)