Login   Register  
PHP Classes
elePHPant
Icontem

problem with php4

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Forums Integrator  >  All threads  >  problem with php4  >  (Un) Subscribe thread alerts  
Subject:problem with php4
Summary:not compatible with php4 ?
Messages:2
Author:bora ISMEN
Date:2006-04-14 21:53:16
Update:2006-07-25 11:03:05
 

  1. problem with php4   Reply   Report abuse  
Picture of bora ISMEN
bora ISMEN
2006-04-14 21:53:16
well in the documantation it tells also works with php4 look below but there is no information about it i am runing php4 and when i use the phpbb.php (unmodified) i get this error

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/myhome/a.php on line 4

can anyone help me with this ?

  2. Re: problem with php4   Reply   Report abuse  
Picture of Piotr Malinski
Piotr Malinski
2006-07-25 11:03:05 - In reply to message 1 from bora ISMEN
you have to edit the class file and remove the "public" modifier and change "function __construct" to "function CLASSNAME" :) make the class syntex php4 compatible