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

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

How to know if online site made with PHP
Hello,
I see some sites that does not display extensions at all , for example:

www.site.co

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

import table with dependency
Hi

What is the best way to import table back which has dependency?

SQL> cre

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

COOIS - Saving Object Overview WIP Status layouts
COOIS - Would like to be able to save the layout of an Object Overview - WIP Status report. There i

Does deleting the spmlog directory critical?
Hi Everyone,

Please, hope you could help me. We're having problems with the SAP backup. I

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

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