CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Uploading question

 



Pro_4
User

Apr 11, 2001, 4:07 PM

Post #1 of 14 (2451 views)
Uploading question Can't Post

hey,
I know how to make the html page for uploading things but when i try and make the thing that actually makes it all work the server i use doesnt have the proper modules on it. I was wondering if anyone could had a uploading script that will upload and add to a database without using any modules or tell me how i can get the script to access the modules. I tried to do it that way but it said it couldnt find it. well thanks in advance!

¿HELP?


Jasmine
Administrator

Apr 20, 2001, 8:54 AM

Post #2 of 14 (2435 views)
Re: Uploading question [In reply to] Can't Post

Your server doesn't have CGI.pm? That's part of the standard Perl distribution.



Pro_4
User

Apr 20, 2001, 5:09 PM

Post #3 of 14 (2431 views)
Re: Uploading question [In reply to] Can't Post

Oh my bad i needed to be more specific.. it doesnt have the DBI module i need. Cgi.pm is there. Sorry.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Jasmine
Administrator

Apr 20, 2001, 9:34 PM

Post #4 of 14 (2427 views)
Re: Uploading question [In reply to] Can't Post

Try the steps in this post: Re: installing perl module (locally).




Pro_4
User

Apr 21, 2001, 4:19 AM

Post #5 of 14 (2425 views)
Re: Uploading question [In reply to] Can't Post

OK thanks i didnt see that.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Pro_4
User

Apr 21, 2001, 4:22 AM

Post #6 of 14 (2424 views)
Re: Uploading question [In reply to] Can't Post

Hmm... i just read that post but that is if i had telnet. The server i use ( virtualave.net) only allows me to FTP to there site. Is there anyway i could manually install all of them without having to go through telnet?

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Jasmine
Administrator

Apr 21, 2001, 8:41 AM

Post #7 of 14 (2418 views)
Re: Uploading question [In reply to] Can't Post

I'm really not sure if you can install a module without shell access, but don't think so. Better to get another (a real) host?



Pro_4
User

Apr 23, 2001, 6:38 PM

Post #8 of 14 (2406 views)
Re: Uploading question [In reply to] Can't Post

What do you recommend? Preferrably a free host since all i want to do is test my scripts on the site, maybe after i get good i would get a nicer host.

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Jasmine
Administrator

Apr 23, 2001, 6:50 PM

Post #9 of 14 (2405 views)
Re: Uploading question [In reply to] Can't Post

I'm a firm believer of "you get what you pay for", so I wouldn't recommend one, even if I knew of one that I didn't hear *too many* complaints about.

Perhaps someone else can recommend one they've used?




BigRich
Novice

Apr 25, 2001, 5:20 AM

Post #10 of 14 (2397 views)
Re: Uploading question [In reply to] Can't Post

Testing CGI scripts online is not good! A bad CGI script can take down a whole server. It may not mean anything to you but when one of my sites doesn't work for 7 hours because some newbie crashed the mySQL server with an infinite loop, it tends to piss me off and I'm pretty sure the others on that server were not over-joyed.

I doubt that anyone will recommend the host that they are using so you can "test" CGI scripts. I know I don't want anyone doing any testing on the servers I use and I'm pretty certain that any hosts you sign up with would rather you not use their servers for experimenting with CGI and you may find yourself in legal hot water if you crash a server and they trace the problem back to you.

I suggest installing Perl and Apache web server on your own machine to do your testing. That way, when you crash the server, *and you will crash it*, you won't take 1000 other websites down with yours.

http://www.activestate.com for perl

http://www.apache.org for the Apache web server

They are very easy to set up on windows and there is plenty of documentation available.

You can even run Perl on PWS (Personal Web Server), it's on your Windows installation cd.

If you can't set them up with all of the available documentation then you definately shouldn't be using a public server for testing CGI scripts.


BigRich



Pro_4
User

Apr 25, 2001, 11:56 AM

Post #11 of 14 (2390 views)
Re: Uploading question [In reply to] Can't Post

First of all i check over my script for any visible errors so that it will not loop forever and crash the server. I totally agree with you, i am sure no one would like there server put out of order. I did take your advice and installed perl and apache on my own computer and i am looking into converting that computer into a personal web server. Thank you for the info :)

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


BigRich
Novice

Apr 26, 2001, 2:55 AM

Post #12 of 14 (2387 views)
Re: Uploading question [In reply to] Can't Post

Checking them visually isn't always enough and Perl won't catch all of your errors and warn you about them. The only way you'll know for sure if a script will crash a server is to run it.

I write CGI scripts all day every day and I still crash my server (LOCAL server) at least once a week (ok, maybe twice). If you're not crashing your server than you aren't writing enough code, or experimenting with new ideas. It's not a crime to crash your *LOCAL* server, all you have to do is restart it and you're up and running to crash it again. But it's NOT ok to crash a server that you share with others.

If you have any problems with the install you may also try idigo perl.

http://www.indigostar.com/indigoperl.htm

It's a complete package including perl, apache, and I believe, mod_perl. I've never used it but I've seen a lot of people recommend it and it looks like it would be easy to install.

You'll be much happier developing locally and everything will come together a lot quicker when you don't have to develop scripts using ftp and telnet.

If you have any problems, one of the first places I'd look is http://groups.google.com/ using Perl, Apache Windows, win98, etc. as keywords.

ex. http://groups.google.com/groups?q=perl+apache+win98&btnG=Search&meta=site=groups

Personally, I have Perl, PHP, mySQL, ColdFusion, and three web servers (Apache 1.3.19, Apache 1.3.19 with mod_perl, PWS) running on Windows 98. I can develop Perl, PHP, mySQL on the Apache servers and Perl, PHP, ColdFusion, and ASP (VBScript, JScript) on PWS. I can even boot into Linux 7.1 if I want to work in that environment. It's not really that difficult to set up, it just takes a little time and effort.

Good luck,

BigRich



Pro_4
User

Apr 26, 2001, 10:44 AM

Post #13 of 14 (2380 views)
Re: Uploading question [In reply to] Can't Post

Thanks :)

Just wondering is it possible to install perl onto a cd and use it as a portable perl. I have so many comps i really dont want to install it on all of them and waste memory when i might not be using that one when programming. It would make things a lot easier... just not sure if it would work right of a cd or even install to the cd at all.

:)

Always add fun to Perl
$fun = "fun"; $perl = "Perl";
print " Always add $fun to $perl"; die;


Cure
User

Apr 28, 2001, 9:26 PM

Post #14 of 14 (2369 views)
Re: Uploading question [In reply to] Can't Post

www.hostcure.com


Cure


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives