Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: import.pl without telnet?

Quote Reply
Re: import.pl without telnet? In reply to
With the help of Mel from GossamerThreads, I managed to import all my links into SQL flawlessly. Here's how to do it:

1. Rename Import.pl to a Import.cgi.
2. with all of the use ....; statements, add:
use CGI;
3. after the use statements, add the lines:
my $in=new CGI;
print $in->header();

And that's it!

One more thing to double check, make sure the path to perl is the first line in the script. If it is not there, (usually it doesn't need to be because you would perl it from shell) add the line:
#!/usr/bin/perl
or whatever your path to perl is.

The errors from the import will be printed on the screen.

The import should be done from an empty database with just the tables created.

Adrian


Subject Author Views Date
Thread import.pl without telnet? waffle 2281 Nov 30, 2000, 10:01 AM
Thread Re: import.pl without telnet?
pugdog 2200 Nov 30, 2000, 4:36 PM
Thread Re: import.pl without telnet?
waffle 2182 Dec 1, 2000, 7:16 AM
Post Re: import.pl without telnet?
Christa 2181 Dec 1, 2000, 7:25 AM