Forum Moderators: coopster & phranque

Message Too Old, No Replies

edittag cgi problem

page not displayed when using edittag

         

stevet

9:03 am on May 17, 2002 (gmt 0)

10+ Year Member



Can anybody help me with this? I have helped this customer before, with some success after setting/changing permisions, setting cgi scripts to execute etc but I am stuck on this one so would appreciate any advice.

I am trying to get the script edittag.cgi to do something useful, namely edit a web page, but with little success.

When I run edittag.cgi using the url /cgi-bin/edittag.cgi in my browser the cgi script constructs a web page form containing a text box in which I can enter the relative or absolute path (but not an http url) of the web page that I wish to edit(currently, I am entering ../admissions_edit.htm).

This is what should happen:

After entering the file path and file name the cgi script should fetch the web page, interpret the hidden tags <edittag > ...</edittag> and then construct a web page containing text input boxes and send it to the browser. The user then enters new content in the text boxes and the form is then returned to the controlling cgi script (edittag.cgi), which then constructs a new version of the web page and writes it to the web site folder. The task is then complete.

This is what actually happens:

However, when I run editag.cgi and enter the path/filename '../admissions_edit.htm' I get 'page unavailable' messsages back from the server, because it does not recognise the path as valid.

I do not understand why this happens. If the cgi script is in the folder cgi-bin, and this folder is in the root of the web site, why is the relative path ../admission_edit.htm not acceptable?. Is this problem something to do with the settings in the server configuration file or do I need to specify a different relative (or absolute) path for the web page file?

You can see editag.cgi in action at www.gb-training.com/editmypage.htm. You can choose any page to edit from the drop-down menu and see edittag in action. Feel free to edit any page - they are not publicly viewable. The EditTag script does work! Its an established, tried-and- tested script and I know it works on various servers.

I would appreciate your advice and any help.
Regards

Steve

Brett_Tabke

4:49 pm on May 20, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Really hard to say what the setup is there stevet. Appears to be a ms server you are working with, so relative paths should be working. However, there is no knowing what the script is doing with the path. It could be trying to do something like "/root/stuff/../cgi-bin/theeditedfile" to the path name.

stevet

8:12 am on May 21, 2002 (gmt 0)

10+ Year Member



ps Forgot to add the url for this message

www.burlish.worcs.sch.uk/cgi-bin/edittag.cgi

steve