Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: server paths

date posted 11th November 2005 13:58

Hello Kathy & Nathan,

Thank you both for your help. The reason I asked is, I have discovered the
only way to build my own sites search facility using php is with a
programme.

This entails using about six or seven scripts, of which the main one is
config.php. This contains all the relevant MySQL table names,
connection_scripts etc. Other scripts for searching and showing results
including placing properties on hold so if you come back, only new
properties are shown. The latter could be done using cookies, but that may
not work as many turn cookies off.

My hosting company wont allow: php-nook, php-smarty or any other progs like
that to run on their server.

Anyway I want to run php scripts from my cgi bin.[not allowed] I don't have
[nor can I] have a folder named htdocs [unless I add this to each address]
so the structure is:

folder public ¦folder graphics¦folder include¦¦folder php scripts¦folder
members¦folder chat¦¦¦¦¦¦¦¦

Where ¦ denotes a folder within a folder.. So in the end the base folder is
actually 7 deep away from the folder public, which is equal to htdocs, which
is on the same level as cgi_bin and house graphics..

Now I have to take the address from chat back to public, i.e. up 7 levels of
folders. I also need to be able to enter these addresses in my config.php
script, house_graphics and public.html....

DG)



----- Original Message -----
From: "Nathan" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Friday, November 11, 2005 1:31 PM
Subject: Re: FN-FORUM: server paths


>
> [EMAIL REMOVED] wrote:
> > Hello,
> >
> > Can anyone help me with this problem. I'm trying to come to terms with
paths
> > on my hosting companies server. So if I have:
> >
> > folder=main same level cgi-bin same level folder aa
> > under this folder=graphics
> > under this folder=a
> > so on
> > What is the path from the most base folder to cgi-bin and the reverse.
or
> > from folder aa to cgi bin?
> >
> > TIA
> >
> > Have goolged asked 'help paths on server', 'how do you set path on
server',
> > setting path to folder on server'. None of which returned any useful
> > information...
> >
> > DG)
>
> Firstly I'm assuming we are talking a Linux/Unix server here (if it is
> windows then change all forward slashes to back slashes.
>
> I'm having some trouble understanding the layout but from what you have
> said I'm gussing its:
>
> main/
> cgi-bin/
> aa/graphics/
> aa/graphics/a/
>
>
> The bit I'm guessing you're missing is:
> ../ which is the parent directory of the one you are in.
>
> so if you are in the aa/ directory then the relative path to the cgi-bin
> directory is:
> ../cgi-bin/
>
> if you're in the aa/graphics/ directory then its:
> ../../cgi-bin/
>
> and if you are in the aa/grahics/a/ directory then its:
> ../../../cgi-bin/
>
> Hope that sorts it out.
>
> Nathan
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>



Messages by Day
November 30th 2005
November 29th 2005
November 28th 2005
November 27th 2005
November 26th 2005
November 25th 2005
November 24th 2005
November 23rd 2005
November 22nd 2005
November 21st 2005
November 20th 2005
November 19th 2005
November 18th 2005
November 17th 2005
November 16th 2005
November 15th 2005
November 14th 2005
November 13th 2005
November 12th 2005
November 11th 2005
November 10th 2005
November 9th 2005
November 8th 2005
November 7th 2005
November 6th 2005
November 5th 2005
November 4th 2005
November 3rd 2005
November 2nd 2005
November 1st 2005


Messages by Month
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000