
AdAstraGames |

A phase locking weapon interferes with dimensional travel. A creature damaged by a phase locking weapon is affected as though by the dimensional anchor spell for 1 round.
A green ray springs from your hand. You must make a ranged touch attack to hit the target. Any creature or object struck by the ray is covered with a shimmering emerald field that completely blocks extradimensional travel. Forms of movement barred by a dimensional anchor include astral projection, blink, dimension door, ethereal jaunt, etherealness, gate, maze, plane shift, shadow walk, teleport, and similar spell-like abilities. The spell also prevents the use of a gate or teleportation circle for the duration of the spell.
A dimensional anchor does not interfere with the movement of creatures already in ethereal or astral form when the spell is cast, nor does it block extradimensional perception or attack forms. Also, dimensional anchor does not prevent summoned creatures from disappearing at the end of a summoning spell.
Would that field reveal the position of an invisible creature, or a creature in darkness?
My GUESS is that the answer is "no, there's already an ability that does that."

Ipslore the Red |

The creature affected is covered by the shimmering emerald field because the ability does not say "except for the shimmering emerald field." The shimmering emerald field is then turned invisible, because covering implies contact, which means it is also affected by invisibility, since it doesn't explicitly say it isn't.

Irontruth |

Well, the spell doesn't say how it affects an invisible creature, like Glitterdust does. The creature is covered, but how precisely?
At the very least if I were adjudicating this as a GM, I might retain the concealment modifier, but say that it's a DC 0 perception check to figure out which square(s) the creature is in. You could also reduce it to 20% or negate it entirely.