Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dj Aero, capnbob, Morgan, id242), 46 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#177906 - 02/07/07 07:51 AM What is wrong with this code?
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Hi,

I can't spot a problem - yet it errors out - if I take out the php at the top and bottom it works fine.

 Code:
<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";

$wrapper_id = $style_array['wrappers'];                 

$tbopen = $wrappers[$wrapper_id]['open'];
$tbclose = $wrappers[$wrapper_id]['close'];   

echo <<<EOF

		<table width="100%" border="0" align="center">
		<tr>
		<td align="center"> <map name="boxmap">   <area shape="rect" coords="13,68,137,80" href="http://rcm-uk.amazon.co.uk/e/cm/privacy-policy.html?o=2" target="_top">   <area coords="0,0,10000,10000" href="http://www.amazon.co.uk/b?node=16243861&tag=ecruise&camp=1698&creative=6674&linkCode=ez&adid=0TBKPNVXA6JT6DQX1NZ6&" target="_top"> </map>   <img src="http://rcm-images.amazon.com/images/G/01/02/02/associates/maitri/easylinks/150x80-hp7-uk.gif" width="150" height="80" border="0" usemap="#boxmap"></td>
		<td align="center"><i><b>Forum Stats & Figures</b></i></td>
		<td align="center"><script language="javascript">
var uri = 'http://impgb.tradedoubler.com/imp?type(js)g(856510)a(68759)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script></td>
	</tr>
	</table>
	EOF;
?>


I'll be darned if I can spot it.

Thanks.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#177910 - 02/07/07 10:55 AM Re: What is wrong with this code? [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It's the EOF; at the end. That cannot have any spaces before or after it, and it has a tab before it. Make sure it's the only thing on that line and you should be good.
Top
#177917 - 02/07/07 02:38 PM Re: What is wrong with this code? [Re: Rick]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
argh - thanks \:\)
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image