url reload

From: Date: Fri, 08 Jul 2005 01:40:20 +0000
Subject: url reload
Groups: php.general 
Request: Send a blank email to php-general+get-218326@lists.php.net to get a copy of this message
This should be pretty simple but I cant find any info on it at the site. I am writing a function that will create a anchor, but I want it to call the same page it is on. Is there a way to get the current php page I am on so that when I output my anchor for that correct page. so if I call it from index.php the link will say: index.php?var=data but if I can the same function from say photos.php then the link would be: photos.php?var=data...... thanks

« previous php.general (#218326) next »