PDA

View Full Version : Scripts, jar, ini files, etc...


MTDesigns
10-06-2000, 08:07 PM
H e l l o... ;)[nbsp][nbsp]

I probably won't begin this fabulous trip into script land tonight, but I just read a small bit of what I have to do, and I'm lost![nbsp][nbsp]Here's an excerpt from the directions:

You will need to specify and refer to the following directories when you edit the settings file (chart.ini) --how do you edit an .ini file?!

Temp upload directory: This directory is where the users' chart data initially gets stored when they first publish.[nbsp][nbsp]In our example, it's called "xml" and it's off of the root web directory (although the absolute reference might be something other than "/xml". You can make it anything you wish, as long as you provide the absolute reference correctly in the settings file (described below).

Main storage directory: This directory is where the users' chart data gets moved to by the postupload.pl or xmlupload.pl script and where the chart.pl script finds the data it needs to display all users' charts. You can make this one anything you wish, as well, provided its absolute[nbsp][nbsp][nbsp][nbsp] reference in the settings file is correct (described below).

Jar location:[nbsp][nbsp]This is a URL reference to the location of the chart.jar file, the PostXML.class file, and the graphic images (gif files) that the Netscape browser needs.[nbsp][nbsp] DO NOT place these files in cgi-bin, as the read permissions in cgi-bin are typically limited.[nbsp][nbsp]

Scripts location:[nbsp][nbsp]This is a URL reference to the location of the perl scripts, frequently "http://www.yourdomain.com/cgi-bin/".[nbsp][nbsp]Note the trailing slash in the URL.[nbsp][nbsp]It must be included, the rest of the entries do NOT include trailing slashes.

Then it says to "modify the settings file" -- it's file.ini -- how do you open it to modify it?

Thanx much!

Best always,

Joi
I can see it's going to be a long road ahead :).
[This message has been edited by MTDesigns (edited 10-06-00@8:40 pm)]

Bob
10-06-2000, 08:20 PM
Joi,

Step one,[nbsp][nbsp]double click the .ini file, it should open in notepad, if you get a prompt "what do you want to use to open this file, select notepad.[nbsp][nbsp]

There your first step.[nbsp][nbsp]I will check back later and see if you have gotten that and if anyone else has strolled along (read Dan here) and see what additional assistance I can be.

Trying to have a learning curve[nbsp][nbsp]LOL
Bob

MTDesigns
10-06-2000, 08:41 PM
Thanx much Bob -- I'm going to check it out...I'll probably start this sometime this weekend :).

Best always,

Joi~

Dan Kaplan
10-07-2000, 12:46 AM
This isn't exactly my business, but having had my name used in vein, might I ask what script you are working on?[nbsp][nbsp]It sounds like a rather complex task to "learn the ropes" on.[nbsp][nbsp]I haven't worked with image manipulation scripts, but my impression is that they can be quite tricky.

Two ways to skin a lab rat...[nbsp][nbsp]Wait, we can't say that now, can we?[nbsp][nbsp]How about a cat?

Dan

Terra
10-07-2000, 01:03 AM
Whatever happened to:

#!/usr/local/bin/perl

print "Content-Type:[nbsp][nbsp]text/html\r\n\r\n";
print "Hello World!\n";

;)

--
Terra
--Baby steps--
FutureQuest

MTDesigns
10-07-2000, 03:26 AM
Dan,
might I ask what script you are working on?
It's a script that will enable me to host visitors' fertility charts on my site - and I'll be offering the software.

Terra,
#!/usr/local/bin/perl[nbsp][nbsp][nbsp][nbsp] print "Content-Type:[nbsp][nbsp]text/html\r\n\r\n"; print "Hello World!\n";
Haven't the foggiest clue what you're talking about!!

Joi ;)
Is this going to be harder than it seems...'cause it seems pretty hard!

Dan Kaplan
10-07-2000, 09:10 AM
That was an example of pretty much the simplest Perl script there is -- a good exercise for learning the building blocks of the language before diving in head first to a waterless swimming pool with your arms at your side.

Dat hurts!

MTDesigns
10-07-2000, 01:17 PM
That was an example of pretty much the simplest Perl script there is[nbsp][nbsp]-- a good exercise for learning the building blocks of the language before diving in head first to a waterless swimming pool with your arms at your side. Well then I may need you to throw me a life preserver!!

Joi ;)[nbsp]