get url?


Posted on 16th Feb 2014 07:03 pm by admin

how do i get the url of the page i'm currently on, on my website.. i think its get header.. how do i do that?

Posted on 25th May, 2014
Admin
Hope this solves your problem. Try this.



<?php
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo $url;
?>

Posted on 20th Dec, 2022
Boss Lyric
Puff Puff Lyrics Just like this you can create the link of any post...

Your Answer:

Login to answer
263 Like 8 Dislike
Previous forums Next forums
Other forums

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

PHP and MySQL Question/Help
I have a MySQL db with all my servers and all their details like server name, IP, OS, RAM etc etc 26

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error

I have a parse error in this query help..
Code: $query1="INSERT INTO `rating` (`item_name`, `rating`, `ip_address`, `date_rated`) VALUES

The repetition structure: the while statement not working
New programming student, have assignment as follows:
A restaurant has 4 lunch combos for custom

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash