accessing excel!
hi all, does anyone know how to access an excel sheet? $thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPH CGI Problems
Greetings, I'm having some trouble with a NPH CGI I'm trying to create. After thumbing through documents and reading up I found out all nph cgi's have to start the filename with 'nph-', is there any way around this using .htaccess or some of the apache directives? Secondly my program currently outputs this: --- HTTP/1.1 200 OK Date: Thu, 13 Mar 2002 15:18:00 GMT Server: Apache/1.3.3 Transfer-Encoding: chunked Content-Type: text/plain No Data --- I'm using IE 5.5 and nothing shows up. I view the source to find IE has created a document with no content. I've telnetted directly to the server and requested the document which outputs what's shown above. If I run the program from the command line it also outputs the same information. I realize that I could simply not do an nph script but I'll eventually want to mix and match status codes and perhaps interface with a program using new status codes that aren't part of those stated in RFC 2616. Any help would be appreciated. Ray Hill -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mysterious leading spaces
First off, thanks for helping me, I really appreciate it. I'm printing out the @Draw using this code: foreach my $item (@Draw){ my @foo = split(/\|/, $item); my $rowColor; if ($counter == 7){ $rowColor = #c0c0c0; }else{ $rowColor = #ff; } print tr bgcolor='$rowColor'\n; print \ttd$counter/td\n; print qq{\ttda href=$foo[3] target=_new$foo[1]/a/td\n}; print \ttdinput type='checkbox' name='PlayedCheckbox' value='$counter'/td\n; print \ttdinput type='checkbox' name='discardCardsCheckbox' value=''/td\n; print /tr\n; $counter++; } The above code works great when the @Draw is populated from my text file (which happens pre-submission). However, when the form is submitted, I only get the first record of @Draw. This code below is what I'm using to populate the textarea which passes 'drawHidden' (which is what populates the @Draw post-submission). Note that if you erase a line or two from the textarea, that is correctly reflected upon submission. However, I'm still just managing to write out the very first record of @Draw, and not all of the records. Does that make any sense? print textarea rows='10' cols='80' name='drawHidden'; foreach (@Draw){ chomp; print $_; } print /textarea; So I guess my newest question is, what am I doing wrong to only print out the first record of @Draw? This is where you can see my mess in action 8^) http://staff.washington.edu/guru/james.cgi _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache in win2k
Conan, I bet you, that if you put the shebang line pointing to the perl\bin\perl directory it will work. I had my perl working with apache and I downloaded activestate perl and all of a sudden I was getting the same message Can not Spawned. I change my shebang line on all my perl script and it worked. I wish someone could explain this. Nestor :-) - Original Message - From: Conan Chai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 11:54 PM Subject: apache in win2k dear all, i just install apache 1.3.26 in win2k. the html documents are running properly but cgi is not running. i have perl v5.6.1 installed. everytime i run a cgi script, the server error_log says couldn't spawn child process: c:/program files/apache group/apache/cgi-bin/pizza.cgi. this error happens even if i run a simple cgi that prints hello world. i'm not sure if it has anything to do with the shebang line because as what i found out, windows ignores the shebang line. pls advise. thks Conan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mysterious leading spaces
James Woods wrote: So I guess my newest question is, what am I doing wrong to only print out the first record of @Draw? It's hard to know for sure without seeing the code where you initialize @Draw. I went back and looked at earlier posts, and your initial problem (the leading spaces) was because you were printing the array in double-quoted context. In terms of getting only the first element, you're using a succession of hidden inputs with the same name, right? Are you calling $cgi-param in list context? If you call it in scalar context you'll only get one value back. So you would do it like this: @Draw=$cgiobject-param('hiddendata'); but not: $Draw=$cgiobject-param('hiddendata'); or $Draw[0]=$cgiobject-param('hiddendata'); or @Draw[0]=$cgiobject-param('hiddendata'); Anyway, without seing the code where @Draw is initialized it's hard to know, but if you are doing one of the above, that's the problem. Hope that helps. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mysterious leading spaces
My problem was that I wasn't splitting my posted form data on the \n into my @Draw. And Tagore, yes, I was (at least at one time) calling it in scalar context. Thank you Tagore and Fliptop (and everyone else who helped). I hope this helps some other newbie sometime! I appreciate you putting up with me for so many posts 8^) However, I'm sure that this will not be my last post 8^) heh heh heh... Bless both of you. -James Original Message Follows From: Tagore Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: mysterious leading spaces Date: Wed, 13 Mar 2002 14:13:38 -0500 James Woods wrote: So I guess my newest question is, what am I doing wrong to only print out the first record of @Draw? It's hard to know for sure without seeing the code where you initialize @Draw. I went back and looked at earlier posts, and your initial problem (the leading spaces) was because you were printing the array in double-quoted context. In terms of getting only the first element, you're using a succession of hidden inputs with the same name, right? Are you calling $cgi-param in list context? If you call it in scalar context you'll only get one value back. So you would do it like this: @Draw=$cgiobject-param('hiddendata'); but not: $Draw=$cgiobject-param('hiddendata'); or $Draw[0]=$cgiobject-param('hiddendata'); or @Draw[0]=$cgiobject-param('hiddendata'); Anyway, without seing the code where @Draw is initialized it's hard to know, but if you are doing one of the above, that's the problem. Hope that helps. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What Does This Mean
I just need to get clear on a couple of things! What do this mean/do: caridge return characters map (function) whitespace __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:session id
hi guys, how can i do it in win32? thanks -- Hytham Shehab