Welcome to Lethal Pink, a personal site of a not so personal woman. Here in my little web world you will find a variety of things to spark your interests. Have a look around and comment if you feel compelled. Got a question? Feel free to ask and I'll answer at my discretion. Enjoy your time and come back soon!
The name's Charity, aka CeCe. Happily married. Gemini. Proud Christian. Dog lover. Obnoxiously loud. Fatally flawed. Random. Brutally honest. Girl gamer. TV addict. Fanfic writer. Music lover. Wannabe DJ. Former dancer. Forever Nerdy. Mildly obsessive. Way compulsive. Wanna know more?
 

PHP Absolute Path

To find the absolute path to your root directory open a new page in your text editor and paste this code:

<?php echo $_SERVER['DOCUMENT_ROOT']; ?>

Save this file as absolutepath.php. Now connect to your FTP server and upload the file to your root directory. Go to http://www.yoursite.com/absolutepath.php in your web browser and you should see your absolute path displayed on the screen! If your site is hosted as a subdomain or whatever you will also need to include the name of your folder to the end of your path. For example if your subdomain folder is your name then your path will be something like /home/user/public_html/yourname/.



← previous | refresh | forward →


LethalPink is powered by WordPress © 2011 unless stated otherwise