Jump to content

Recommended Posts

Posted

Hi everone,

 

I believe this is the first time I use a CGI script from the "CGI Library". What I use is the random HTML script to choose between several lines of HTML. Setting it up was very simple and actually worked perfectly. All I had to do is add <!--#exec cmd="cgi-bin/randhtml.cgi"--> and rename my page extension to shtml.

 

It works so well that I want to use it again! Except I want my new instance to select between a different set of random HTML lines. Since the lines are not specified in the scripting call, I have no idea how to proceed. So here are my questions:

 

1. Does anyone know how to specify where the script looks for its random HTML lines? (So that I can specify different places for different instances)

2. Does anyone know how to do the same thing with PHP? (In case question 1 has no answer)

3. Does anyone know the implications of changing my filename to .shtml? (Does that have other effects than letting me run this CGI?)

 

Thanks in advance,

 

- Itai

www.neocamera.com

Posted

There is no way to specify a different file name according to the documentation provided with cPanel.

 

That said, you could look for a random generator over at hotscripts.com that would allow you to specify different file names to pull from.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...