hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Unexpected T_STRING
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Unexpected T_STRING

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-27-2004, 10:49 AM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Question

Unexpected T_STRING


I am trying to install a file that says that there is a parse error in line 18 (bold) below, but I cannot see what is causing this error. Can anyone find it? Thanks much.

<?php
//login
require "class.view.php";
global $no_core;
$no_core = true;
class install extends view{
function __construct()
{
if(file_exists("classes/class.settings.php"))
{
header("Location: index.php");
exit;
}

parent::__construct();
}

public function show($error="")

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote


Sponsored Links
  #2  
Old 12-27-2004, 10:56 AM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
try error=NULL?

Maybe

Peace,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote
  #3  
Old 12-27-2004, 10:59 AM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Error stil exists

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
Sponsored Links
  #4  
Old 12-27-2004, 01:23 PM
Kamejoko Kamejoko is offline
Junior Guru
 
Join Date: Sep 2003
Posts: 242
Remove public

Reply With Quote
  #5  
Old 12-27-2004, 01:29 PM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Yes, that works thanks. A host of other bugs seems to of opened up though. If anyone wants to help me install I am trying to get this script to work: http://trychess.sourceforge.net/ It enables you to play online chess with someone via your server, but the support for it seems desolate.

Lastly, why was 'public' causing the problem?

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
  #6  
Old 12-27-2004, 02:08 PM
dbzgod dbzgod is offline
Aspiring Evangelist
 
Join Date: Jul 2001
Posts: 424
Correct me if I am wrong, but there are no 'public' or 'private' methods in PHP. In PHP, everything is a public method. In other languages, Visual Basic for example, you can declare methods as being private or public.

Reply With Quote
  #7  
Old 12-27-2004, 02:09 PM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Maybe the author was mixing his languages?

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
  #8  
Old 12-27-2004, 02:10 PM
Kamejoko Kamejoko is offline
Junior Guru
 
Join Date: Sep 2003
Posts: 242
AFAIK, there are no "public" or "private" directives in PHP, at least up to PHP 4 (didn't look into PHP 5).

Reply With Quote
  #9  
Old 12-29-2004, 09:10 PM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Darn, then the author did in fact mix up his code. I can't believe someone put something on Source Forge like that for download and not even test it.

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
  #10  
Old 12-30-2004, 10:29 AM
FrozenWire FrozenWire is offline
Junior Guru
 
Join Date: Jul 2004
Location: NY
Posts: 216
I'll take a look at it today

__________________
Bryan
VPSstats | vps stats, reviews, and tips.

Reply With Quote
  #11  
Old 12-30-2004, 10:35 AM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Thanks, I will be interested in the results you find.

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
  #12  
Old 12-30-2004, 10:39 AM
FrozenWire FrozenWire is offline
Junior Guru
 
Join Date: Jul 2004
Location: NY
Posts: 216
Are you running PHP5?

__________________
Bryan
VPSstats | vps stats, reviews, and tips.

Reply With Quote
  #13  
Old 12-30-2004, 10:42 AM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
Ummm... PHP 4.3, and I guess this may be the reason as I just saw that he said that he built it to 'test' version 5 features.

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
  #14  
Old 12-30-2004, 10:47 AM
FrozenWire FrozenWire is offline
Junior Guru
 
Join Date: Jul 2004
Location: NY
Posts: 216
yea. im having trouble with the install part.

i got nothing to do at work so i will play with it.

haha

__________________
Bryan
VPSstats | vps stats, reviews, and tips.

Reply With Quote
  #15  
Old 12-30-2004, 10:49 AM
gamemaster gamemaster is offline
Aspiring Evangelist
 
Join Date: Jun 2003
Posts: 377
I found that removing 'public' from all files helps with the install. You are running PHP 5?

__________________
Services: SMF Theme Creation | Game / Clan Server Design

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Massive Change to the Web Culture is Just around the Corner, Offering Exciting Opportunities to Hosters Blog 2013-03-28 07:50:12
LogicBoxes Launches Service for New gTLD Operators Web Hosting News 2013-03-22 10:36:23
ICANN 45: New gTLD Overview and Information for Applicants with ICANN CSO Kurt Pritz Web Hosting News 2012-10-15 14:01:26
Cloud Host VPS.net Boosts Power and Elasticity of Cloud Server Offerings Web Hosting News 2012-08-01 11:36:10
Will ICANN's New gTLD Application System Downtime Affect Web Hosts? Web Hosting News 2012-04-30 16:37:55


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?