Login   Register  
PHP Classes
elePHPant
Icontem

Class Error under PHP Version 5.2.4 (Zend: 2.2.0)

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

      RSA  >  All threads  >  Class Error under PHP Version 5.2.4 (Zend: 2.2.0)  >  (Un) Subscribe thread alerts  
Subject:Class Error under PHP Version 5.2.4 (Zend: 2.2.0)
Summary:Error in php.class.php
Messages:3
Author:bastian bickelhaupt
Date:2008-01-26 09:42:33
Update:2008-11-26 22:37:15
 

  1. Class Error under PHP Version 5.2.4 (Zend: 2.2.0)   Reply  
Picture of bastian bickelhaupt
bastian bickelhaupt
2008-01-26 09:42:33
Hello,

I uploaded the RSA class to my webserver which runs under PHP Version: 5.2.4 (Zend: 2.2.0)!

When i open the rsa.class.php, there is following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /kunden/franken-business.net/hosting/10851/binary-watch-your-style.com/ekomi/rsa.class.php on line 27

I dont understand this ... i didn't change anything! please can anybody help me.
best regards, bastian

  2. Re: Class Error under PHP Version 5.2.4 (Zend: 2.2.0)   Reply  
Picture of produkgagal2
produkgagal2
2008-05-07 17:29:00 - In reply to message 1 from bastian bickelhaupt
i've the same message too when running example.php on localhost,the message such as like this

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in c:\program files\apache group\apache\htdocs\test2\rsa.class.php on line 27

can the author help us?

  3. Re: Class Error under PHP Version 5.2.4 (Zend: 2.2.0)   Reply  
Picture of rudie dirkx
rudie dirkx
2008-11-26 22:37:15 - In reply to message 2 from produkgagal2
Remove the "public" statement from that line and all other lines that use it in the same way. Try again.