Cosmi Posted November 3, 2010 Share Posted November 3, 2010 Hello,What should I do to get the current URL of the product page? I want to use the Facebook "Like" button and I need the URL.Thank you! Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2010 Share Posted November 3, 2010 Use the following: 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] Link to comment Share on other sites More sharing options...
Cosmi Posted November 3, 2010 Author Share Posted November 3, 2010 Thanks. It works just fine. {php} echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; {/php} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now