Sliipeetais Posted December 5, 2003 Report Share 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 Link to comment Share on other sites More sharing options...
Sliipeetais Posted December 5, 2003 Author Report Share Posted December 5, 2003 laikam jau shaadi: $HTTP_HOST Link to comment Share on other sites More sharing options...
CryRat Posted December 5, 2003 Report Share Posted December 5, 2003 precīzāk: $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']) ;) Link to comment Share on other sites More sharing options...
CooLynX Posted December 5, 2003 Report Share 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 Link to comment Share on other sites More sharing options...
jb4 Posted December 5, 2003 Report Share Posted December 5, 2003 realpath('./'); Link to comment Share on other sites More sharing options...
Recommended Posts