is any function/property in PHP like js:location.href, to give the current url, to get compared, for producing highlight menu items ?
a local php server in a laptop needs internet connection to work locally only ?
is any function/property in PHP like js:location.href, to give the current url, to get compared, for producing highlight menu items ?
a local php server in a laptop needs internet connection to work locally only ?
I got the redirect part, but can you rephrase the rest of it?
To redirect in php:
Code:<?php header("Location: location.php"); ?>
Jeremy | jfein.net
I do NOT Redirection but a statement that assigns current URL To a var like javascript's location.href ?
So you have a button - and when you click it it will take you some where? Or, it will tell you the URL of the page your currently at?
Jeremy | jfein.net
Will this variable be good for you?
PHP Code:$_SERVER['SCRIPT_NAME']
More generally, any information you need similar to that (at least that is available in PHP) should be somewhere in one of these variables:
http://www.php.net/manual/en/reserved.variables.php
Look at $_SERVER.
(post, get, cookie, session, etc. are useful too, but those are for other purposes than general information about the environment.)
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
There is a list here: http://uk2.php.net/reserved.variables.server
$_SERVER['SCRIPT_NAME'] = Contains the current script's path. This is useful for pages which need to point to themselves. The __FILE__ constant contains the full path and filename of the current (i.e. included) file.
Bookmarks