chwebdesigns Posted March 12, 2008 Share Posted March 12, 2008 is there a way of reading the current url and then attatching that for a link to bookmark it in facebook for example. (if this makes sense) cheers. ch p.s. sorry if this seems like a stupid question!!! :S Quote Link to comment Share on other sites More sharing options...
soycharliente Posted March 12, 2008 Share Posted March 12, 2008 You could grab the full URL using $_SERVER most likely. I'm not sure I understand what you mean by bookmarking it in something like Facebook though. Quote Link to comment Share on other sites More sharing options...
chwebdesigns Posted March 13, 2008 Author Share Posted March 13, 2008 well to bookmark a site in facebook, you need the http://www.facebook.com/sharer.php?u=YOUR URL and i wondered whether there was a quick way to use this link in a template so that the php code reads the current URL , and then imputs it into the facebook URL to bookmark it Hope this makes more sense Quote Link to comment Share on other sites More sharing options...
discomatt Posted March 13, 2008 Share Posted March 13, 2008 $this_page = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; Give that a shot. Quote Link to comment Share on other sites More sharing options...
chwebdesigns Posted March 13, 2008 Author Share Posted March 13, 2008 that's great thanks SOLVED Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.