|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Best way to get the path of a page
What the best way to get the path to a script? If the script is located on:
http://www.mysite.com/some/path/to/script.php how would i best get "/some/path/to/" out of it?
__________________
Tivo Codes, Hacking the Tivo, and Adding a Second Drive to Your Tivo. All this information at www.TivoSpy.com ! |
|
#2
|
||||
|
||||
|
try using $_SERVER['PHP_SELF']
From PHP documentation: Quote:
Does this help at all? Refer to: PHP:Predefined Variables |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Best way to get the path of a page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|