php skins help

php skins help

Posted by: beaniesmom
Posted on: 2006-07-02 16:27:00

My daughter is trying to set up her website using skins using PHP. She is self-taught. She is following a tutorial that is asking for things to be put in the "ROOT DIRECTORY" and it is asking absolute paths to be specified. Her domain is hosted at dream host.

The instructions ask that she create a folder named skins in her root directory. Then, she needs to specify a path to her skins, ie.

<?php
$pathtoskins = "/home/username/public_html/skins/";
$defaultskin = 1;

Questions: in this context is the root the parent of her domain name directory or is it her domain name directory itself? What should her path to skins string look like?

Thanks,
Ignorant Mom

Re: php skins help

Posted by: ardco
Posted on: 2006-07-03 01:44:00

> $pathtoskins = "/home/username/public_html/skins/";

On Dreamhost, public_html is about the same as your domain directory, so I'd suggest using:

$pathtoskins = "/home/username/example.com/skins/";

where username = beanie or whatever the username actually is.

So, in context, they're using "root" as the domain directory.

Oh, and I'm guessing this is the tutorial:

http://www.tutorialtastic.co.uk/page/skinning_your_website

What I Like About

Re: php skins help

Posted by: scjessey
Posted on: 2006-07-03 05:32:00

In reply to:

$pathtoskins = "/home/username/example.com/skins/";


Or this, which is identical:

$pathtoskins = $_SERVER['DOCUMENT_ROOT']."/skins/";

--------
Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code SCJESSEY97

Tags: skinsroot directoryabsolute pathsphppathdomainaskhelp