Sliipeetais Posted December 5, 2003 Report Posted December 5, 2003 (edited) Kaa ieguut adresi, zem kuras atrodas php skripts (tas pats, kursh meegjina to adresi ieguut :) ) ? Edited December 5, 2003 by Sliipeetais
Sliipeetais Posted December 5, 2003 Author Report Posted December 5, 2003 laikam jau shaadi: $HTTP_HOST
CryRat Posted December 5, 2003 Report Posted December 5, 2003 precīzāk: $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']) ;)
CooLynX Posted December 5, 2003 Report Posted December 5, 2003 shajaa sakaraa noder divas adreses: http://lv.php.net/manual/en/language.varia....predefined.php http://lv.php.net/manual/en/reserved.variables.php 'PHP_SELF' The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF']in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. If PHP is running as a command-line processor, this variable is not available. 'SCRIPT_FILENAME' The absolute pathname of the currently executing script. 'SCRIPT_NAME' Contains the current script's path. This is useful for pages which need to point to themselves. 'REQUEST_URI' The URI which was given in order to access this page; for instance, '/index.html'. atkariibaa no vajadziibas izveelies atbilstosho parametru
Recommended Posts