Server Path Definition

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Taffman
-


Joined: 16 Sep 2004
Posts: 35
Location: Welwyn Garden City, UK

PostPosted: Fri Jul 15, 2005 1:37 pm    Post subject: Server Path Definition Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Jul 15, 2005 4:42 pm    Post subject: Re: Server Path Definition Reply with quote

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 View user's profile Send private message Send e-mail
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Sat Jul 16, 2005 6:08 am    Post subject: Re: Server Path Definition Reply with quote

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 View user's profile Send private message AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 16, 2005 1:34 pm    Post subject: Re: Server Path Definition Reply with quote

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 View user's profile Send private message Send e-mail
Taffman
-


Joined: 16 Sep 2004
Posts: 35
Location: Welwyn Garden City, UK

PostPosted: Mon Jul 18, 2005 8:43 am    Post subject: Reply with quote

Mant thanks for the advise..
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group