javascript - PHP Get URL Of Current Page, Not Script -


i realise might duplicate don't think is. i've looked everywhere.

what i'm attempting url of page user on, i'm attempting in separately loaded page.

$('#sitestatus').load('/_backend/account/accountstatus.php');

i want load script div works out current page of url.

at moment doing $url = "{$_server['request_uri']}"; returns /_backend/account/ , i'm unsure why.

any appreciated.

thanks @prasad using print_r($_server); showed array of use , turns out $_server['http_referer'] needed.

thanks.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -