Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


PHP help

Reply to topic
Bike Chat Forums Index -> General Bike Chat
View previous topic : View next topic  
Author Message

MarsBar
World Chat Champion



Joined: 21 Aug 2002
Karma :

PostPosted: 23:29 - 06 Jul 2004    Post subject: PHP help Reply with quote

Thanks to Bendy I can now start work on my website. Never looked at PHP before so going in totally blind. Got this error message.
Code:
Fatal error: Cannot redeclare clear_parse() in /var/www/html/ig_shop/class.FastTemplate.php on line 661

Cheers,
Mark.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 23:47 - 06 Jul 2004    Post subject: Reply with quote

Open up in Dreamweaver or similar editor, scroll to line 661 and tell us what it says Thumbs Up
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 23:48 - 06 Jul 2004    Post subject: Reply with quote

judging byt he fact its only 661 lines long and that you say you dont know what your doing i am assuming that you are attempting to modify someone elses code.

This can often be more troublesome than doing it yourself from scratch!

it is looking to declare clear_parse() on line 661 after it has allready been decalred. i dont know php well enough to say if this is a method, function or object sound liek it is all part of a complex series of functions to perform tasks which you have edited and it now trying to decalre a variable twice. make sure any variables are claerd out before they are reused, especially if they relate to database connectivity.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

tgabber
Crazy Courier



Joined: 03 Jun 2004
Karma :

PostPosted: 23:55 - 06 Jul 2004    Post subject: Reply with quote

If you are a programmer, you'd understand the error message, if you're not a programmer you shouldn't be playing around with PHP as your first language.

If you insist on playing around with PHP, get a good book or try one of the numerous web tutorials.

Don't mean to be unhelpful, but your original question suggests you are seriously out of your depth. Sad
____________________
"It's all about dislocating expectation"
Kawasaki KMX125 -> Aprilia RS125 -> Kawasaki ZZR600
 Back to top
View user's profile Send private message You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 23:58 - 06 Jul 2004    Post subject: Reply with quote

I am a programmer, and i am constantly out of my depth and allways have been. often the best way to learn how to swim is to jump into the sea!
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 23:58 - 06 Jul 2004    Post subject: Reply with quote

Tgabber, with this sort of stuff, jumping in at the deep end is a good way to learn in my opinion. Worked for me with HTML and CSS ( a bit) and I have modded many PHP scripts and have installed numerous add ons to my own forum in PHP yet I don't even understand the code.

Bit of general web coding knowledge and some playing around and you pick things up Laughing
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

tgabber
Crazy Courier



Joined: 03 Jun 2004
Karma :

PostPosted: 00:10 - 07 Jul 2004    Post subject: Reply with quote

YamsR6 wrote:
Tgabber, with this sort of stuff, jumping in at the deep end is a good way to learn in my opinion. Worked for me with HTML and CSS ( a bit) and I have modded many PHP scripts and have installed numerous add ons to my own forum in PHP yet I don't even understand the code.


I agree, and maybe I'm being a bit hard on MarsBar, but the concept of function/variable declaration is such a basic one in programming that if you don't understand it, then I think a 661 line (or more) script is going to cause a lot of problems.
____________________
"It's all about dislocating expectation"
Kawasaki KMX125 -> Aprilia RS125 -> Kawasaki ZZR600
 Back to top
View user's profile Send private message You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 00:20 - 07 Jul 2004    Post subject: Reply with quote

Yeah which is why he is asking for help... then he'll learn this bit and continue to learn (the hard way maybe) it's how I learn, I can't be arsed with books or anything other than for reference. If I want to do something specific I go learn it there and then, nothing more nothing less, learn as I require something done.. which is what MarsBar seems to be doing here so hopefully he'll be alright with it, but obviously as anyone, will need a bit of help...

Personally, despite doing lots of PHP coding, I don't know what that error means, I could most probably ( think I have actually... ) fix it, but not without seeing code and playing around...

Maybe not the best way, but meh... Laughing
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

tgabber
Crazy Courier



Joined: 03 Jun 2004
Karma :

PostPosted: 00:27 - 07 Jul 2004    Post subject: Reply with quote

Ok, well I'll just leave it to other people to help.

I'm just in a bad mood cos of the RAC thing (see other thread...)
____________________
"It's all about dislocating expectation"
Kawasaki KMX125 -> Aprilia RS125 -> Kawasaki ZZR600
 Back to top
View user's profile Send private message You must be logged in to rate posts

MarsBar
World Chat Champion



Joined: 21 Aug 2002
Karma :

PostPosted: 11:29 - 07 Jul 2004    Post subject: Reply with quote

DaFrostyOne wrote:
judging byt he fact its only 661 lines long and that you say you dont know what your doing i am assuming that you are attempting to modify someone elses code.

Not modify, I just uploaded the pages and got this error msg.
tgabber wrote:
If you are a programmer, you'd understand the error message, if you're not a programmer you shouldn't be playing around with PHP as your first language.

I do program but not in PHP hence why I ask for help! Rolling Eyes Fluent in ASP. I suggest you get some facts before you open your mouth next time.
YamsR6 wrote:
... scroll to line 661 and tell us what it says Thumbs Up

Code:
unset($this->PARSEVARS["$Ref"]);

YamsR6 wrote:
Tgabber, with this sort of stuff, jumping in at the deep end is a good way to learn in my opinion.

How I came to learn ASP.
tgabber wrote:
and maybe I'm being a bit hard on MarsBar

Rolling Eyes
YamsR6 wrote:
Yeah which is why he is asking for help...

Thanks for being more helpfull and understanding mate.
tgabber wrote:
Ok, well I'll just leave it to other people to help.

Please do! Laughing
 Back to top
View user's profile Send private message You must be logged in to rate posts

MarsBar
World Chat Champion



Joined: 21 Aug 2002
Karma :

PostPosted: 12:08 - 08 Jul 2004    Post subject: Reply with quote

So nobody can help me then? Crying or Very sad
 Back to top
View user's profile Send private message You must be logged in to rate posts

Bendy
Mrs Sensible



Joined: 10 Jun 2002
Karma :

PostPosted: 12:10 - 08 Jul 2004    Post subject: Reply with quote

TBH it's rather hard to help when given a random bit of code, and that's it.

What is it you're trying to install?
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 21 years, 143 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> General Bike Chat All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.07 Sec - Server Load: 0.85 - MySQL Queries: 14 - Page Size: 75.31 Kb