Magic constants not working
Posted: Mon Mar 15, 2010 10:16 am
I have an interesting/frustrating situation. I have some code that works on one server but doesn't work on another server. That in itself isn't terribly shocking. It's WHAT isn't working that's deeply puzzling:
On the server where the code works, I have PHP 5.3.0. Where it doesn't work, 5.2.10. Any idea why this could be happening?
Thanks,
Jason
At appears that magic constants don't work anymore. I don't get it.Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home/jason/ard/api_examples/api/kintera_api.php on line 27
On the server where the code works, I have PHP 5.3.0. Where it doesn't work, 5.2.10. Any idea why this could be happening?
Thanks,
Jason