echo 'http://'. $_SERVER[HTTP_HOST] . $_SERVER['REQUEST_URI'];
Labels
- bootstrap (1)
- css (4)
- jquery (16)
- Live Demo (14)
- Others (2)
- PHP (4)
- prestashop 1.6 (7)
- Topic - Advance (7)
- Topic - basic (27)
- Topic - Semi Advance (16)
- wordpress (6)
- wordpress plugins (1)
- YII (14)
Thursday, October 30, 2014
Get current link or url including parameters in php
The code below shows how to get the current url or link and the parameters of a page.
for example we can get http://sample.com/?id=1&name=juan exactly the same. This is very useful in anchor with links
Labels:
PHP,
Topic - basic
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment