Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Jake, id242, SD, gliderdad), 32 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/24/07
Posts: 171
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#21832 - 11/28/00 04:57 PM Addpost.php
Anonymous
Unregistered

Went to add a new post to test out the board (first post of the board) and got:

Parse error: parse error in /usr/local/etc/httpd/htdocs/wwwthreads-php/addpost.php on line 375
Needless to say, I haven't touched any of the code (yet) <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
<P ID="edit"><FONT><EM>Edited by LoneVVolf on 11/28/00 01:57 PM.</EM></FONT>
Top
#21833 - 11/28/00 05:00 PM Re: Addpost.php
Anonymous
Unregistered

Looks like you had an extra comma at the end of 374. This is tested, right? <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />
Top
#21834 - 11/28/00 05:01 PM Re: Addpost.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
What version of PHP are you running? This could have something to do with the $GLOBALS problem in the last thread and also this portion of the code. I'm developing on PHP4 but trying to make it run under PHP3 as well.
I'm guessing you are running PHP3, if so you can make the following change. Line 374 of addpost you will see this:
18 => array(0=>"images/icons/wink.gif", 1 => "$lang[ICON_WINK]"),
Get rid of that trailing comma. In PHP3 it doesn't allow for an array declaration to end in a comma.
Sorry for the troubles, but at least this will let me fix the problems with PHP3. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />

-------------------

Scream

WWWThreads Developer
Top
#21835 - 11/28/00 05:07 PM Re: Addpost.php
Anonymous
Unregistered

Actually, I'm apparently running a beta of PHP4. I guess that has to do with the problems...unfortunately, I have no control over the software on the server...it's a hosting service. *sigh* I'm getting many parse errors. I think PHP4 (final) must be very forgiving. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
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
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

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