Ok, now I put it in a different location, ABOVE the php directory, so that I'm not running anything in the php directory that I'm trying to chmod.
Still, I get that same message.
Warning: chmod(): Operation not permitted in /home/ukndoit/public_html/test.php(9) : eval()'d code on line 1
So, is there a reason I cannot chmod a directory?