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: Win32 Programming Help:
Help me ..real simple/who wants a snowcone

 



demise
Deleted

Oct 6, 2000, 12:33 PM

Post #1 of 18 (9090 views)
Help me ..real simple/who wants a snowcone Can't Post

I installed active Perl 5.6
I added some sort of registry line to my local machine
I am confused about #!usr\bin\Perl
what is the exact address i should be using?
Perl is insstalled on my C:Perl. and where does this usr come from, and they are always saying that the address is relative what does that mean?, and what does it mean when i hit submit on a form html page that calls a cgi/pl file in my cgi-bin and a dos box pops up real quick but nothing happens no response html that I am expecting and no email sent. why do so many people drink coors lite, if two trains are on the same track both traveling towards each other, both at 210mph seperated by 6000 miles how long till they collide?
thank you


perlkid
stranger

Oct 6, 2000, 5:40 PM

Post #2 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
28.57 Hours,

Am I right?

#!/usr/bin/perl is for unix only!!!!

You can leave it in there but Windows uses the regestry keys to run cgi. Did you install the Dcom Module Yet?

Your supposed to run your scripts through your browser too, They will run in dos if you try to double click on them in your explorer menu.

http://www.activestate.com/Products/ActivePerl/docs/faq/Windows/Install.html

There you will find the requirements to run perl on your system.

Do yo have all those.

If your on NT I guess you don't need the DCOM module though. Your On NT Right? I though I read that in one of your posts.

In your scripts, make sure that when you run them through the browser, your sending the browser a header.

print "Content-type: text/html\n\n";

Is common, and works for me.

People Drinks Coors Lite to get plastered. Oh wait, that's my brother. Never mind.

perlkid

------------------
My Cat Attacks Me. We Call her Diablo Around here, I'm afraid to close my eyes at night.



dws
Deleted

Oct 6, 2000, 11:25 PM

Post #3 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

You need to tell us what web server you're using. If you're using PWS or IIS, the #! line is ignored. Getting PWS set up to know that .cgi means Perl is covered in http://www.perlguru.com/forum/Forum11/HTML/000023.shtml

FYI for perlkid, Apache does use the #! line on NT.


[This message has been edited by dws (edited 10-07-2000).]


perlkid
stranger

Oct 6, 2000, 11:52 PM

Post #4 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
Sorry Dws,

I've never ran Apache on windows, olny on linux. I was talking about PWS since I was describing my setup. Since the pro is here demise I think I won't be needed on this subject anymore, dws is a wiz with windows. Smile

perlkid

------------------
My Cat Attacks Me. We Call her Diablo Around here, I'm afraid to close my eyes at night.



demise
Deleted

Oct 7, 2000, 6:50 PM

Post #5 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

I have a win 98 machine with PWS and active perl5.6 with dcom module installed
I have changed my registry but I am not sure exactly what to %s or %s %s.pl
what is the exact reg change for .cgi extension files i need??
and on top of that how do I call a .pl file from an html file from the machine it is on test the script from my home page that the machine running this home page is on
understand???
whatam I missing??
I will pay someone to come over to my house and fix it for me ... no lie
i need a boost from the booster chair
Thanks for all the kindness and hope for continued sucess for everyone....and don't do drugs, let them do you


perlkid
stranger

Oct 8, 2000, 10:40 AM

Post #6 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
Ok, you have everything.

The Reg Key needs To look Like THis,

C:\Perl\bin\perl.exe %s %s

You probably installed everything in the wrong order. First, PWS, Then DCOM, Then Perl, then Regestry keys.

That's the order that worked for all my computers. I installed the DCOM after everthing and it wouldn't work. I had to unistall perl, then install DCOM, then re-install perl to get it to recognize the DCOM mod.

Try that.

perlkid

P.S. Where Do You Live


perlkid
stranger

Oct 8, 2000, 10:42 AM

Post #7 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
Nevermind, Cherry Hill NJ, I know now.


demise
Deleted

Oct 8, 2000, 7:49 PM

Post #8 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

reel qut, so you know how to spin a top ....
can you whistle...and pat your head.....and rubb your belly....
theres 1 thing "ohhh from cherry hill does" and that is .....motivate me more.
I already saw your posts Perlkid . . . where you from . . . Berlin?
look I came here cause the books I bought were based on an old language I was very impressed by this forums functionality and was hoping to share some wealth (knowledge that is) but if programmmers are not welcome than just say so. As if not apparent
I am hurt by your insensitivity.
I have a learning disorder you xxxx! Where I am from reflacts nothing but your ugly personality. At least through the keyboard I don't sound stupid!!! good day

[This message has been edited by brian.hayes (edited 10-08-2000).]


brian.hayes
User

Oct 8, 2000, 8:19 PM

Post #9 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

Demise,
It seems as if we are all very close in demographics to each other? I live in Philly.

You are more than welcome to post/help as much as you like to this forum, and yes programmers are welcome.

But, please select your words carefully here as it just adds to the negitivity that others may display. I would like to think that no one would Purposely offend anyone here. This is a great site, dedicated to helping everyone and I wouldn't want to see anything tarnish that.

If you do have a complant please send an email to the admin of this site. http://www.perlarchive.com/cgi-bin/contact.cgi

Thanks,

Brian Hayes


dws
Deleted

Oct 8, 2000, 8:32 PM

Post #10 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

Double check the registry setting you have for

HKEY_LOCAL_MACHINE\
System\
CurrentControlSet\
Services\
W3SVC\
Parameters\
ScriptMap

You should have a string names .cgi whose value is "c:\perl\bin\perl.exe %s %s"

If you don't, add it, reboot the machine (we're gonna go into paranoid mode here), then try to invoke the CGI below from c:\inetpub\scripts\ (since we know that \SCRIPTS has script execute permission set).

Here's test.cgi, which you should create and put in c:\inetpub\scripts
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

print "Content-type: text/plain\r\n\r\n";
print "It worked!\n";</pre><HR></BLOCKQUOTE>
And report back on what happens.


demise
Deleted

Oct 8, 2000, 9:18 PM

Post #11 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

I do apolagize, I have been placed on that Cherry Hill pedistoll to many times this past month. I am just baffled sometimes how easy it is for everyone to forget, were all human. Yes I am aware that everything I will ever amount to depends on what I learn from others, I learned to snow board last year because my friend dragged me along and I loved it, same for programming, my friend dragged me to school and I loved it, Perl kid sorry I snapped so easy, your a smart kat, don't let it go to your head!
NOW FOR THE CODE, I followed about forty forums all starting with what Perlkid suggested, I have registry just as DWS said, BUT I had my .pl files in my cgi-bin, should they be in the scripts folder??and should they be .cgi since I changed the registry?
that may be what I am missing. The books I bought told me all about Perl and how it magically appeared just like the Berkley Operating system for Windows and Linux, but told me nothing on the basics of windows implementing. I am gonna give it a change and another sacraficial whohaaa witha tap tap tap, spin around 4 times and maybe it'll run....and yes that is three taps

I am very sorry for my hostility and do very much appreciate the support
My disability is I am a little slow, I learn by example (I am a form follower) I do plenty of reading on my own but it sometimes takes a little longer.
Keep up the great work and...GET SOME SLEEP
to boost . . I Have refered your site to three frinds already . . no they are not like me. . . they're nicer...
take care If I have any problems
i'll talk to a wall


demise
Deleted

Oct 8, 2000, 9:29 PM

Post #12 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

now that I read my last reply, the wall bit was a joke...usually its just myself whos listening...and talking


demise
Deleted

Oct 8, 2000, 10:18 PM

Post #13 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

I am such a dumb ass MY TRUE APOLAGIZES to all who had to listen to me. Anyway, again I was at friends house last night, Perl enthusiast and He couldn't help me either. No more rantings I got the registry down and understand its role, I am confused by some functionality I do not have a server to place my scripts on call to from a remote browser so on my html form pages I have tried http://GregM/Inetpub/wwwroot/cgi-bin/myscript.pl
I have also tried a relative path
C:/Inetpub/wwwroot/cgi-bin/myscript.pl
and
../scripts/myscript.pl
I run two seperate systems which doesn't help
I have Windows NT workstation at work on a VPN with PWS
and 98 PWS at home
both have active perl installed with the dcom on my 98
at work when the dowload box poped up I was frustrated and in the heat of the moment I checked the box that said always show this option box...so now the dos box just flashes for a sec when i hit submit on my html form
let me take a breath
now I have run perl scripts in my code and have no confusion there but this calling a cgi is as all the previous post imply
rendering impatent
if there is any other information needed I will kindly ablige
PS perlkid I had oroginally thought you found my location from dns search breakdown by region, I did not realize after being up for two days it was just in my profile
my sincerest apolagize for my blatent lack of respect
I bow in forgivness
Thank you.


perlkid
stranger

Oct 9, 2000, 10:06 AM

Post #14 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
I didn't know I was supposed to be offended, I didn't even follow you all the way there. What other posts did you see of mine ???? Don't worry about my feelings, I've been de-sensitized from certain individuals, and only a French Women can save me now, he he Smile

I'm actually from San Diego, Ca, moved to Las Vegas about 1-2 years ago, but what does it matter.

About your problem, You reg key must be the same as the file exstention your trying to run the perl with. Use both keys, .pl and .cgi if you preffer.

I'm running out of Ideas.

perlkid


dws
Deleted

Oct 9, 2000, 11:33 AM

Post #15 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

(Response to your "it worked" from a different thread.)

When you say that it worked from DOS, what exactly do you mean? Where you able to execute test.cgi from a command line? If so, that merely indicates that there's a file association that maps .cgi to the perl executable, and isn't sufficient for getting the .cgi to run through PWS.


perlkid
stranger

Oct 9, 2000, 12:35 PM

Post #16 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

 
No worries Mate,

I'm fine, no need for apologies or anything. Smile

I'm really running out of ideas here, All I can say is that I recommend you start all over with all the new nonage you have about this system, and install the programs in the order that I gave. It worked for me and I never could get it to work until I did that. When you want to run your cgi through the browser, You should not use the path
http://GregM/Inetpub/wwwroot/cgi-bin/myscript.pl

In PWS you use
http://GregM/cgi-bin/myscript.pl

I'm sure you have already tried that though, the direct path to the file, C:\.....myfile.pl will run it in dos, and that's the easy part, you want to have the luxury of running an entire web site on your PWS.

perlkid

P.S. To dws and demise too. Anyone else reading this thread. Will you reply to my post in the feedback forum about adding another forum if your in support of it.

Thanks


demise
Deleted

Oct 9, 2000, 12:46 PM

Post #17 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

it was in msdos that it returned "It worked!"
I have a testinput.pl file in my scripts folder and a test.htm file in my wwwroot folder, I have
<FORM action="../scripts/friends.pl" action="post"> and on submit the dos box pops up runs all the script in the testinput.pl but returns nothing


demise
Deleted

Oct 16, 2000, 12:13 PM

Post #18 of 18 (9090 views)
Re: Help me ..real simple/who wants a snowcone [In reply to] Can't Post

what is sufficient for getting the cgi extensions t run through PWS
what else is needed for completion I have all you have said
the script runs when called from an html, or cfm, or asp, but just pops up a quick dos box with no results
and yes it is PWS for now, eventually NT 4.0 IIS anyway its been like a week hope your still around
Thanks

 
 


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

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