Syntax Error

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 27, 2009   (RSS)

By Kenny - July 27, 2009

I need a bit a help from one of the PHP gurus out there.

I am trying to use Thumboo! to auto generate thumbnails of websites for me.

It gives me the code:

<?php
$thumboo_api = "c66572badbeea3d3718655f94f66b430";
$thumboo_url = "http://www.sagentic.com";
$thumoo_params = "u=".urlencode("http://".$_SERVER["HTTP_HOST"].
$_SERVER["REQUEST_URI"])."&su=".urlencode($thumboo_url)."&c=medium&api=".$thumboo_api;
@readfile("http://counter.goingup.com/thumboo/snapshot.php?".$thumoo_params);?>


So I'm thinking I can just replace the http://www.sagentic.com with <?php echo $portfolioRecord['external_link'] ?> and everything will work great.

Instead, I get Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sagenti/public_html/portfolio/client.php on line 156


Any ideas?

Kenny

Re: [sagentic] Syntax Error

By Dave - July 27, 2009

Hi Kenny,

Wow, that's neat! :) Try this:

<?php
$thumboo_api = "c66572badbeea3d3718655f94f66b430";
$thumboo_url = $portfolioRecord['external_link'];
$thumoo_params = "u=".urlencode("http://".$_SERVER["HTTP_HOST"].
$_SERVER["REQUEST_URI"])."&su=".urlencode($thumboo_url)."&c=medium&api=".$thumboo_api;
@readfile("http://counter.goingup.com/thumboo/snapshot.php?".$thumoo_params);
?>


Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com