Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change a script code

Status
Not open for further replies.

TaiChi56

Technical User
Mar 6, 2002
188
US
I have a documnet that is a CGI file. I am not able to change the copyright information and the registered information. It is for a school website I did and now I do not remember how to change it. I can go to source in the browser and it shows the HTML coding but I cannot find the file that it relates to on my server.

I know that when the cgi script is parsed it shows as an html document. How do I find the right document so I can change the years on the site and the copyright info?

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Hi TaiChi,

We need a little more info to give you some help with this - i.e. OS and Web Server. Otherwise try searching for the file:

if you are on linux / unix try the following:

find /usr -name 'myscript.cgi'

or

find /opt -name 'myscript.cgi'

(changing myscript.cgi to whatever your's is called)

on windows - just login to the machine and do the normal search from explorer.

Cheers,
Scotty
 
Too many things we don't know.....

Are you actually calling a some_x.cgi like this:


-or- You might mean you have a cgi file(file being in
your cgi directory but not *.cgi)


-or-

You might mean that you have a cgi execution that opens
a text file somewhere on the server and reads the file
to retrieve the info you are trying to change.

One thing that would help us is to copy your address
bar and paste it here. So that we can see how you are calling the cgi file. Replace your real info if that
would make you more comfortable. But change names only
not any special char's like ? or & .We'll help you
break it down.

2b||!2b
 
You guys are great. It calls a cgi script. That I am sure of. It is listed as That I am sure. It is a login script. I can view the source and see the copyright. Just do not know here in all the cgi scriptng where it is.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
I gather when you referred to 'view the source' you mean HTML source.

The OS and Web server would still be usefull at this stage. However you should still try searching your filesystem for the 'somename.cgi' file - i.e.

find /usr -name 'somename.cgi'

or

find /opt -name 'somename.cgi'

Scotty
 
when you worked on the site did you interact with the
webserver yourself??

Did you upload the files to the server??

What method do you intend to use to retrieve this file
from the webserver(once you find it), then edit it, then
put it back on-line?

2b||!2b
 
Thank you. I figured out where it was.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top