
12-27-2004, 10:49 AM
|
|
Aspiring Evangelist
|
|
Join Date: Jun 2003
Posts: 377
|
|
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="")
|

12-27-2004, 10:56 AM
|
|
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...
|

12-27-2004, 10:59 AM
|
|
Aspiring Evangelist
|
|
Join Date: Jun 2003
Posts: 377
|
|
|

12-27-2004, 01:23 PM
|
|
Junior Guru
|
|
Join Date: Sep 2003
Posts: 242
|
|
|

12-27-2004, 01:29 PM
|
|
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?
|

12-27-2004, 02:08 PM
|
|
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.
|

12-27-2004, 02:09 PM
|
|
Aspiring Evangelist
|
|
Join Date: Jun 2003
Posts: 377
|
|
Maybe the author was mixing his languages?
|

12-27-2004, 02:10 PM
|
|
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).
|

12-29-2004, 09:10 PM
|
|
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.
|

12-30-2004, 10:29 AM
|
|
Junior Guru
|
|
Join Date: Jul 2004
Location: NY
Posts: 216
|
|
I'll take a look at it today
|

12-30-2004, 10:35 AM
|
|
Aspiring Evangelist
|
|
Join Date: Jun 2003
Posts: 377
|
|
Thanks, I will be interested in the results you find.
|

12-30-2004, 10:39 AM
|
|
Junior Guru
|
|
Join Date: Jul 2004
Location: NY
Posts: 216
|
|
|

12-30-2004, 10:42 AM
|
|
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.
|

12-30-2004, 10:47 AM
|
|
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
|

12-30-2004, 10:49 AM
|
|
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?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|