I added that code to both pages. The results are different:
WEBSITE PAGE
paris-balzar/
TESTING CODE the first fullsize URL is: balzar01_800p.jpg
the php_self is /powergallery/fakey.php
WORDPRESS PAGE
php-code-test/
TESTING CODE
the first fullsize URL is:
the php_self is fakey.php