RE: [PHP] site path

2002-10-09 Thread Jon Haworth
Hi Wilmar, > I'm just looking for some advise: I've got a variable > which I use to store my site's main path. Is it better > to have it like this: > > $site_path = "/my/web/path/" > > or like this: > > $site_path = "http://my_url.com/"; Depends what you're using it for :-) You could: -

[PHP] site path

2002-10-09 Thread Wilmar Perez
Hello guys I'm just looking for some advise: I've got a variable which I use to store my site's main path. Is it better to have it like this: $site_path = "/my/web/path/" or like this: $site_path = "http://my_url.com/"; ? What about the trailing slash?, should I use it or not? I know the