php - class in function name resulting in a 500 error? -
php - class in function name resulting in a 500 error? -
i've lost mind trying understand why local server (apache on ubuntu) started give 500 message.
it turned out problem caused function called classview()
. renamed classtemplateview()
still 500. i've tried stupidview()
(i getting tired) , worked again.
i've searched while haven't found saying class within function name "prohibited", it?
no, it's fine: "class" on own reserved word, not when it's part of word.
a quick test script:
<?php function classview() { echo 'test'; } classview();
echoes 'test' expected.
php apache naming-conventions
Comments
Post a Comment