Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Hi,

I'm trying to set up the demo version of wwwthreads (php) for a spin. I believe I have all the right variables plunke into the various config files, but when running the create tables script, I get the following error returned to me:

Parse error: parse error in /usr/local/apache/htdocs/ise/threads/wwwthreads/config.inc.php on line 197


I'm runing PHP 3.0.15 on a freebsd box. Any recommendations?


Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
More than likely it is a missing " or ; or maybe a quote in one of the variables that wasn't escaped. For starters you will want to take a look at the settings that you changed and make sure everything is quoted or escaped properly.


UBB.threads Developer
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I looked through the config files and could not find any errors that you suggested.

I the line the error is reffering to is as follows:

$config{'allowfiles'} = ".zip,.txt,.gif,.jpg,.jpeg,.bmp";

Looks kosher to me.

I've attached the config.in.php file

Attachments
29154-config.txt.php (0 Bytes, 14 downloads)

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Ah, that was my mistake for not fixing the php demo. That line should look like $config[allowfiles] = ..., you need to change the {' to [ and the '} to ].


UBB.threads Developer
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Yup, that would be it.

Thanks!

The next problem I am having, which has nothing to do with WWWThreads I think, is getting sendmail to work with PHP. I can't get my password, cause php isn't sending it to me. Do you have any experaince to lend on how to tweak php with the php.ini config file?

Thanks!


Sponsored Links
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Check also:

Parse error: parse error in showflat.php on line 635
Parse error: parse error n showflat.php on line 712




Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
and

Parse error: parse error in showthreaded.php on line 693
Parse error: parse error in showthreaded.php on line 770



Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
This is probably an incompatibility with the version of PHP you are running. These lines refer to a function called "str_replace" which may not have been available in the early versions of PHP.

-------------------
Scream
WWWThreads


UBB.threads Developer

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,156
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2063
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 1
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)