lore_lanu Posted November 27, 2009 Share Posted November 27, 2009 EDIT: Never mind, I just updated to php 5. Hey all, I'm currently experimenting with php object interfaces. However, whenever I try to implement one, I get a php error. interface iTemplate { public function setVariable($name, $var); public function getHtml($template); } The error is: Parse error: parse error, unexpected T_STRING in /path/test.php on line 1 What am I doing wrong? If it matters, my server is running php version 4.3.11. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
trq Posted November 28, 2009 Share Posted November 28, 2009 Interfaces are not part of php4. You really should start using php5, were not too far off php6. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.