Re: RE: oracle/pgsql/mysql and dbi

2002-07-07 Thread Vikrama Dhiman
Hey! Postgres is definitely well received because of stored procedures but they r not an absolute must for most people. Further, I think Mysql is a lot more user-friendly database system, if one can call it that. I dont think there be many applications running on Mysql that u wanna shift to P

Re: server push

2002-07-07 Thread alex
what is a server-push? -- alexmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: server push

2002-07-07 Thread Hytham Shehab
well, Janek, my q is simple: is IE6 is server-push capable? if yes, then whats the wrong with my script? if not, ok, thanks for the information. thats it thanks -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

trying to find direcotries

2002-07-07 Thread LinkS On WeB
Ok listen im trying to fin all the direcotries that are in a folder, I mean everyone. But for some reason this only prints out the first folder and not the sub folders. my @alldir = finddir("$config{home}$user{site_id}"); print $_, "\n" for @alldir; sub finddir { my $root = shift; chomp

RE: CGI to emulate HTML Post

2002-07-07 Thread Joel Hughes
Hi Jon, this sounds like a job for LWP. e.g. use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST => 'http://www.perl.com/cgi-bin/BugGlimpse'); $req->content_type('application/x-www-form-urlencoded'); $req->content('match=www&errors=0'); my $res = $ua->requ

Re: Odd boxes - the solution

2002-07-07 Thread fliptop
Henk van Ess wrote: > Hi all, > > My provider gave me the solution. I had to install: > > pkg_add -r unix2dos > > where unix2dos *.cgi strips the boxes.. Ty all for the input. this perl 1-liner should do the trick: perl -pi -e 's/\s+$/\n/g' filename.html -- To unsubscribe, e-mail: [EMAIL

Odd boxes - the solution

2002-07-07 Thread Henk van Ess
Hi all, My provider gave me the solution. I had to install: pkg_add -r unix2dos where unix2dos *.cgi strips the boxes.. Ty all for the input. -- Best regards, Henk mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

CGI to emulate HTML Post

2002-07-07 Thread Jonathan
I would like my CGI to send info to a different CGI, that is really expecting a html to post to it the info. How do I do that? Jonathan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is it possible?

2002-07-07 Thread Connie Chan
Maybe yes, maybe no. You may try to use LWP to grab the page's content, and digest it by your coding effort. However, you may have to face the cookies gard, and password gard(like cNet). Good luck if you really want to have a try. If I do not make a wrong memory recall, SOAP is a module can link

Re: Odd boxes after uploading

2002-07-07 Thread Connie Chan
> Sure, I've got my own Apache-server. Then I wonder why you going to Upload it, but not save your file directly inside the bin ? Are you running them with different OS ? > print "Content-type:text/html\n\n"; Yes, like Janek said, you may try to make it print "Content-type: text/html\n\n"; (wi

Is it possible?

2002-07-07 Thread Octavian Rasnita
Hi all, You know that all download sites like ZDNet or Tucows use a CGI program for letting visitors download a file. Is it possible to make a Perl script that should find out the real path to a file from ZDNet or Tucows, instead of that path that use a CGI script? Thank you. Teddy Center: ht

Re: JavaScript and Perl

2002-07-07 Thread Marty Landman
At 10:21 AM 7/7/02 -0400, Bruce Maston, M.D., J.D. wrote: >Is there a way to convert a JavaScript variable into Perl? Bruce, the question is a bit invalid or misstated or something. No offense meant, only this is a bit of a misunderstanding I think... for all I know, maybe on my part. > In o

Re: Odd boxes after uploading

2002-07-07 Thread Janek Schleicher
Henk Van Ess wrote at Sun, 07 Jul 2002 16:27:42 +0200: > This is the script: > > #!/usr/bin/perl > > print "Content-type:text/html\n\n"; ^^ I'm not sure, whether it plays a role, but it seems that a blank is missed: print "Content-type: text/html\n\n"; Best Wishes, Janek

Re: Odd boxes after uploading

2002-07-07 Thread Mat Harris
a common problem. it is because the file was saved with window line-endings. this means that when you open it on a unix box, you will see '^M' at the end of every line. if you have access to a unix shell account, you can run the conversion program as follows: # dos2unix -n infile.cgi outfile.

Odd boxes after uploading

2002-07-07 Thread Henk van Ess
Hello beginners-cgi, Connie, 1. Do you have the right to run CGI at your server ? Sure, I've got my own Apache-server. 2. Do you know if you are pointing your perl compiler at a right path( #!/usr/bin/perl) ? You can't just copy this from book. Different server may config it at different loca

JavaScript and Perl

2002-07-07 Thread Bruce Maston, M.D., J.D.
Is there a way to convert a JavaScript variable into Perl? In other words, you have a JavaScript function: function test(input_to_function) { $perlvariable = input_to_function; print "alert('$perlvariable'); #get an alert box showing the value print "$perlvariable\n"; #variable prints on page } I

Re: Odd boxes after uploading

2002-07-07 Thread Connie Chan
So what's your error message you got ? and where you got the error? And what is the "boxes" mean ? I dont' see any boxes there. so what is your text editor for writing this script ? But the most important things are : 1. Do you have the right to run CGI at your server ? 2. Do you know if you are p

Odd boxes after uploading

2002-07-07 Thread Henk van Ess
Dear all I just uploaded the following .cgi to my server: #!/usr/bin/perl print "Content-type:text/html\n\n"; print "Show me the monkey"; #this line prints the sentence "Show me the monkey" Even after I chmod'ed it to 751 or 755, I got an error! So I downloaded the script to see what went wrong

Re: how to add

2002-07-07 Thread David T-G
Henk -- ...and then Henk van Ess said... % % Connie, Niko & Janek, % % Ty for you fast input. Your suggestions assume that the "'s are added % during the inputphase. But I want the "'s to be added AFTER the user entered % the input. Do your suggestion still work then? Sure. Using the examples

RE: oracle/pgsql/mysql and dbi

2002-07-07 Thread Joel Hughes
Hi Carlos, I think mysql, up to a certain amount of concurrent conenctions, will be faster at returning data than Postgres but Postgres will scale a lot better than MySQL and can handle many more concurrent requests before showing the strain. PG also offers stored procedures which I don't think my

Re: how to add

2002-07-07 Thread Henk van Ess
Connie, Niko & Janek, Ty for you fast input. Your suggestions assume that the "'s are added during the inputphase. But I want the "'s to be added AFTER the user entered the input. Do your suggestion still work then? -- Best regards, Henk mailto:[EMAIL PROTECTED] --

Re: How to add " "

2002-07-07 Thread Connie Chan
$input =~ s/^(.+)$/"$1"/; Don't use it. This is too trouble to doing this way. Just want to tell, this is also a method =) Rgds, Connie - Original Message - From: "Henk van Ess" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 07, 2002 5:12 PM Subject: How to add " "

oracle/pgsql/mysql and dbi

2002-07-07 Thread Carlos Quijano
Hi Group! I'm newbie on Perl, but I have developed a couple of large web apps, and I'm using the triad of hell php/apache/mysql on our linux server boxBut my data is growing and I don't know If the good MySQL can keep gigs of data running smooth What database do you recommend me to use??

Re: How to add " "

2002-07-07 Thread Niko Gunadi
On Sun, Jul 07, 2002 at 11:12:48AM +0200, Henk van Ess wrote: > > I've got a beginnersquestion. How do I add a " before and a " after > any given user-input? I want to make a phrase out of the user-input. > Example: > userinput: > walking in mountains > > output should be: > "walking in mountains

Re: How to add " "

2002-07-07 Thread Janek Schleicher
Henk Van Ess wrote at Sun, 07 Jul 2002 11:12:48 +0200: > So basically, I want to change > > userinput > > into > > "userinput" $userinput = qq/"$userinput"/; Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to add " "

2002-07-07 Thread Henk van Ess
I've got a beginnersquestion. How do I add a " before and a " after any given user-input? I want to make a phrase out of the user-input. Example: userinput: walking in mountains output should be: "walking in mountains" So basically, I want to change userinput into "userinput"