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

Problem with DB connection
Hello there! I'm new to this forum and I'm new to PHP coding also. I wrote something that doesn't ma

Converting numbers to months
The porgram works -just need the last function(month_convert_ to convert numbers to months -thanks.

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

mysql_query returning boolean instead of mysql ressource
Hi,

I seem to have a weird issue with the php command mysql_query. I pass 2 arguments the que

Help with simple query
Hi,

I'm trying to do a Query with a Union where I want to print the number of rows $tc conta

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

Shuffle between users ??
I have multiple $users in table. I need to send them $message.

I need to send the next messag

Check premium expire
Hi,

I am making a simple file hosting site and want to check if users premium subscriptions h

Drawing Images in classes
I'm quite new to Object Oriented PHP. What I'm trying to do is draw some images but also have other

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