Skip to main content

T_PAAMAYIM_NEKUDOTAYIM PHP error

Posted in

Ok so i've hit this nasty php error T_PAAMAYIM_NEKUDOTAYIM that sounded like a language from another planet for me (found out that it's Hebrew for "missing double dots")

The problem is that with static class functions you can't do dynamic loading (or at least it didn't work for me)
So while this

  1. $module = $_GET['module']
  2. $stuff = new $module();
  3. $stuff->data;

works, you can't do
$module::data()
even if the name of the module is the name of the class.

try this

try this way

call_user_func(array($module, 'data'));

"T_PAAMAYIM_NEKUDOTAYIM"

"T_PAAMAYIM_NEKUDOTAYIM" means double colon in Hebrew.
well "Zend" are Israeli guys...

Got same error did you find

Got same error did you find the solution

None, it seems you can't do

None, it seems you can't do static calls.

Hi! I got

Hi!
I got T_PAAMAYIM_NEKUDOTAYIM error by typing _$REQUEST instead of the correct name! Check your spelling :-)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
4 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

If you need more help on the topic feel free to add a comment or create a new post on the Forum