This has really been bugging me. I can’t figure out a php function that returns the path of the page that the script executed on (so if that url was turned into a link, it would just come back to the same page you clicked the link from)
Is there one? And if so, what is it called (a few examples would be helpful). I need this script because I run a mostly html site, but lately I’ve been adding php files for more functionality (I really don’t know php, so I’ve been using free downloads off the web). I got a really simple guestbook program and I’ve edited to my needs, I just need to be able be notified by email when someone posts. I found the email function, but then realized that within the email I’d have to have some way to identify which guestbook was edited, so I figured that if the code automatically generated the url of the page that the script executed on, I could easily determine what folder it was in. You see, I have the need for about 25+ guestbooks within my web, and it gets kinda hard to track them all. And because I need 25 of them, I need to be able to easily duplicate them with minimal page changes, so if I need to always find the php code that tells the email what to say and edit that to also note what guestbook it is, or add a hidden field and edit it for each guestbook, it would greatly compound the time I spend on this. Thank you!