Sponsored Content
Top Forums UNIX for Dummies Questions & Answers UNIX PATH info required PLEASE HELP (I'm new to unix) Post 21110 by akitachi on Friday 10th of May 2002 02:32:31 PM
Old 05-10-2002
UNIX PATH info required PLEASE HELP (I'm new to unix)

I need to know how to enter a unix path in a cgi script for a guest book:

example:

My URL is http://www.kitachi.info

I have an html file in the main folder on my site, the file is called :

gbook.html

what would the correct unix path for this file be ???

the part of the script I'm working with looks like this, but I know the actual address/ path is wrong..



$GUESTBOOK="/usr/home/kitachi.info/gbook.html";

I've been playing around with it for ages but it's started to drive me insane!


You can see what I'm trying to do if you goto:

http://www.kitachi.info/gbook.html

Then try and submit the form.

Basically , I think that when the form is submitted from the html to the cgi script, the cgi needs to look back through the folder directory and pinpopint the gbook.html file (using the unix path).

I've asked the tech support at my server about this but they aren't much help.

Am I mad, or can someone help me ??


Thank you very much in advance :O)


Regards

Adrian
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Seeing windows PC's from Unix

I have a network of windows 98 PC's that are connected to a unix machine using TCP/IP and Termlite emulator. Is it possible to access the PC's files from the unix machine and could I create files on the PC's from the unix box? (1 Reply)
Discussion started by: rongrout
1 Replies

2. UNIX for Dummies Questions & Answers

What's the difference between Unix, Linux, and Solaris?

If anyone can tell me the difference between the three or where I can find more info I would appreciated it. I see alot of companies looking for people with knowledge in Unix but every time I try to find information about it I see Linux instead. Is there a market trend in these operating... (2 Replies)
Discussion started by: ITmommy
2 Replies

3. UNIX for Dummies Questions & Answers

Newbie to Unix and needs info!

IM SOOOOOO EXITED. I've decided to the Unix operating system on my computer. Here are my computer spex 15 gig HD 550 mHz P3 192 Meg 133 mHz ram FAT 32 Partition Win 98 Couple questions now... What is the best type of Unix/Linux? Why? I have heard that FreeBSD is the best? True, not... (3 Replies)
Discussion started by: KyPeN
3 Replies

4. UNIX for Dummies Questions & Answers

my cable connection does'nt support unix

If my cable company doesn't support unix is there anything I can do. Are there drivers out there or would I be able to buy a third party modem and does it matter what cable co. I use to which cable modem I can use. Thank you for all your help. (1 Reply)
Discussion started by: gparsons70
1 Replies

5. Programming

unix has it's own database

Well I am new to Unix, I small doubt to clarify with our colloquies here. Does Unix any of the versions contains its own database or it stores data on the file system. How to migrate data in Unix to Oracle Data base is there any tool or utility available on Unix that helps to do this... (4 Replies)
Discussion started by: IRFI_P
4 Replies

6. UNIX for Dummies Questions & Answers

I'm a newbie (to UNIX)

Hello everyone! I'm new entirely to UNIX and the main reason for my interest for it is its high demand as a robust OS on the back end for managing volumes effectively and flawlessly. The only exposure I've had to comand line/console OS is DOS some time ago (over 15 yrs to be exact). Used... (5 Replies)
Discussion started by: El Guaca®
5 Replies

7. UNIX for Dummies Questions & Answers

Unix ISO's for FTP, I've searched the other Posts

Where Do I download Unix ISO's for free? I have searched this database for other related posts, but to no avail. All I need is this info, and I don't want Linux; just a Unix site. Please and thank you for your help. (3 Replies)
Discussion started by: killrazor
3 Replies

8. UNIX for Dummies Questions & Answers

Any URL'S for free Unix Download

Hi, Can anyone please suggest me a URL where I can download some unix OS free of cost?? Thanks, Kumar (4 Replies)
Discussion started by: yelamarthi
4 Replies

9. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

10. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies
Ns_Url(3aolserver)					   AOLserver Library Procedures 					Ns_Url(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_AbsoluteUrl, Ns_ParseUrl, Ns_RelativeUrl, Ns_SkipUrl - URL manipulation routines SYNOPSIS
#include "ns.h" int Ns_AbsoluteUrl(Ns_DString *pds, char *url, char *baseurl) int Ns_ParseUrl(char *url, char **pprotocol, char **phost, char **pport, char **ppath, char **ptail) char * Ns_RelativeUrl(char *url, char *location) char * Ns_SkipUrl(Ns_Request *request, int n) _________________________________________________________________ DESCRIPTION
Ns_AbsoluteUrl(pds, url, baseurl) Construct an URL based on baseurl but with as many parts of the incomplete url as possible. Return NS_OK or NS_ERROR. Ns_ParseUrl(url, pprotocol, phost, pport, ppath, ptail) Parse a URL into its component parts. Pointers to the protocol, host, port, path, and "tail" (last path element) will be set by ref- erence in the passed-in pointers. The passed-in url will be modified. Ns_RelativeUrl(url, location) If the url passed in is for this server, then the initial part of the URL is stripped off. e.g., on a server whose location is http://www.foo.com, Ns_RelativeUrl of "http://www.foo.com/hello" will return "/hello". Returns a pointer to the beginning of the relative url in the passed-in url, or NULL if error. Will set errno on error. Ns_SkipUrl(request, n) Return a pointer n elements into the request's url. SEE ALSO
nsd(1), info(n) KEYWORDS
AOLserver 4.0 Ns_Url(3aolserver)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy