home directory for localhost

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
Any one whats the exact address for the home directory if we are running the script in our localhost.cos i want to test my script package called ska links and in the installation phase it asks for the home directory i know its /home/username/bla/ like that.but get stucked with the localhost . :(
 

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
guys i want the address of localhost which is var/www/ yours is for an online hosted site.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
...

localhost:

/home/username/public_html/

or

/home/username/www/
 
F

Fahad

Guest
He means where the default document root is.
You don't have write access to it anyway, so that script won't work.
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Make a PHP script with this code:

PHP:
<?
echo $_SERVER['DOCUMENT_ROOT'];
?>
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
it all depends on your operating system and webserver. apache and lighttpd have different webroots, as well as archlinux and debian.

try what vigge said, but depending on your configuration, it may or may not work properly
 
Top