View previous topic :: View next topic |
Author |
Message |
Taffman -
Joined: 16 Sep 2004 Posts: 35 Location: Welwyn Garden City, UK
|
Posted: Fri Jul 15, 2005 1:37 pm Post subject: Server Path Definition |
|
|
I'm having a problem in correctly defining the server path in a config.ini application file.
the application has been installed in the root.
The dos path is the usual: C:\Prgram Files\Abyss web Server\htdocs
The ini file wants to see something like:
$site_root = "/full/path/from/root/to/directory";
How do I fill this in?
Nothing i try seems to work unless there is another problem.
Maybe I should set a vertuaal path to this?
Any help would be much appreciated. |
|
Back to top |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Jul 15, 2005 4:42 pm Post subject: Re: Server Path Definition |
|
|
Taffman,
Fill it that way:
Code: |
$site_root = "C:\\Prgram Files\\Abyss web Server\\htdocs";
|
Note the double \ instead of a single \ since this charcater has a special meaning in PHP. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
k1ll3rdr4g0n -
Joined: 04 Jul 2004 Posts: 609
|
Posted: Sat Jul 16, 2005 6:08 am Post subject: Re: Server Path Definition |
|
|
aprelium wrote: | Taffman,
Fill it that way:
Code: |
$site_root = "C:\\Prgram Files\\Abyss web Server\\htdocs";
|
Note the double \ instead of a single \ since this charcater has a special meaning in PHP. |
Aprelium, could you explain whats the difference between using c:\ and using c:\\ because my scripts work perfectly if I use one or the other. O.o. _________________
 |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jul 16, 2005 1:34 pm Post subject: Re: Server Path Definition |
|
|
k1ll3rdr4g0n wrote: |
Aprelium, could you explain whats the difference between using c:\ and using c:\\ because my scripts work perfectly if I use one or the other. O.o. |
From http://www.php.net/manual/en/language.types.string.php :
Quote: |
To specify a literal single quote, you will need to escape it with a backslash (\), like in many other languages. If a backslash needs to occur before a single quote or at the end of the string, you need to double it. Note that if you try to escape any other character, the backslash will also be printed! So usually there is no need to escape the backslash itself.
|
So it's probably easy to always use double \ in strings to avoid ambiguities. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Taffman -
Joined: 16 Sep 2004 Posts: 35 Location: Welwyn Garden City, UK
|
Posted: Mon Jul 18, 2005 8:43 am Post subject: |
|
|
Mant thanks for the advise.. |
|
Back to top |
 |
 |
|