PHP Classes

help :S

Recommend this page to a friend!

      SSH in PHP  >  All threads  >  help :S  >  (Un) Subscribe thread alerts  
Subject:help :S
Summary:doesnt work
Messages:5
Author:Andrew
Date:2005-08-21 10:52:52
Update:2006-08-17 21:39:32
 

  1. help :S   Reply   Report abuse  
Picture of Andrew Andrew - 2005-08-21 10:52:52
Whenever i try to use this code i get errors, i uploaded the files exactly as they are and i just get unexpected { on line 10
line 10 is
try {

what am i doing wrong?

thanks

  2. Re: help :S   Reply   Report abuse  
Picture of Martin Filip Martin Filip - 2005-08-21 13:55:43 - In reply to message 1 from Andrew
hi,

what version of PHP are you running? this looks like you are trying to run this class on php < 5 ... you need at least PHP 5 and higher because it uses exceptions, which are AFAIK not supported on older versions.

  3. Re: help :S   Reply   Report abuse  
Picture of Andrew Andrew - 2005-08-21 14:42:37 - In reply to message 2 from Martin Filip
that explains it, im running version 4.3.11.

dont know what i could do about that as my site is hosted and i cant update it myself

thanks for your help :)

  4. Re: help :S   Reply   Report abuse  
Picture of Martin Filip Martin Filip - 2005-08-21 15:32:08 - In reply to message 3 from Andrew
I think, that it shouldn't be really difficult to adopt this class for php 4. Just try to replace exceptions with some other error handling method.

  5. Re: help :S   Reply   Report abuse  
Picture of dino dino - 2006-08-17 21:39:32 - In reply to message 4 from Martin Filip
a haw php v 5.0 is not work ???