AW: Apache::Session question

2004-03-26 Thread B. Fongo
The error occurs on initial call, so id should be empty be then. I expect the routine to open a new session (see code below) if session_id is empty - but it fails then. == my $dbh = dbConnect(); # Get value of url or cookie id if any. my $sessio

Apache::Session question

2004-03-26 Thread B. Fongo
My implementation of Apache::Session::MySQL dies along the way, and gives unclear warning. [error] Died at /usr/lib/perl5/site_perl/5.8.0/Apache/Session/Generate/MD5.pm line 40. I decided to implement session as a module call Store::Session, so as to minimize recoding it in many script. Babs

How to add an item into Shopping cart

2004-03-22 Thread B. Fongo
I'm working on a shopping cart, and yet to implement Apache::Session. But before then, I have a question on how to populate a shopping cart without the page reloading. Is there a way of achieving this using perl? I believe it is possible to use JavaScript event-handler can be to keep track of it

Which method is best for passing session id?

2004-03-10 Thread B. Fongo
I'm trying to implement cgi sessions with Apache::Session and found myself contemplating on a method to pass session id to my script. I'll appreciate if someone experienced could help me out of that - by giving any pros and cons on the following methods: 1. URL 2. Hidden fields 3.

AW: Any CPAN module for creating thumbnails?

2004-03-07 Thread B. Fongo
: WC -Sx- Jones [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 7. März 2004 16:08 An: B. Fongo Cc: [EMAIL PROTECTED] Betreff: Re: Any CPAN module for creating thumbnails? B. Fongo wrote: > I wander if here a way to create thumbnails using Perl? > > I want to implement functionality fo

AW: Any CPAN module for creating thumbnails?

2004-03-07 Thread B. Fongo
Thanks for the link. I'll try Image::Magic::Thumbnail. -Ursprüngliche Nachricht- Von: WC -Sx- Jones [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 7. März 2004 16:08 An: B. Fongo Cc: [EMAIL PROTECTED] Betreff: Re: Any CPAN module for creating thumbnails? B. Fongo wrote: > I wander

Any CPAN module for creating thumbnails?

2004-03-07 Thread B. Fongo
I wander if here a way to create thumbnails using Perl? I want to implement functionality for my shop program to create a thumbnail of product pictures. A good instance of it may be that of eBay. Users can upload a picture of any dimension for their listing. EBay will automatically create a thumb

AW: AW: Need help to divert HTML print <

2004-02-19 Thread B. Fongo
better. Thanks to you all guys Babs -Ursprüngliche Nachricht- Von: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Februar 2004 15:41 An: B. Fongo; [EMAIL PROTECTED] Betreff: Re: AW: Need help to divert HTML print < Hello, > > Can you guys tell me on th

AW: Need help to divert HTML print <

2004-02-18 Thread B. Fongo
Hello, Can you guys tell me on this piece of codes? It doesn't print the small html codes in the sub below. No warning - nothing! N.B. Don't bother about the html; just check my perl codes to see why I doesn't print what I want. Thanks Babs ==

Need help to divert HTML print <

2004-02-18 Thread B. Fongo
I tried to divert the output of print <$dirhandle\$file") || die "Can't create the html template: $!"; # What may be wrong on the next line? Error warning: Use of uninitialized value .. print OUT <$title EOF Close OUT; ---

Need help to divert HTML print <

2004-02-18 Thread B. Fongo
I tried to divert the output of print <$dirhandle\$file") || die "Can't create the html template: $!"; # What may be wrong on the next line? Error warning: Use of uninitialized value .. print OUT <$title EOF Close OUT; ---

sendmail error: No reciient address found in header

2003-12-08 Thread B. Fongo
It's my first time to use sendmail. I want to my script to send a mail to [EMAIL PROTECTED] or whoever is in the To: line. The script warns:"No recipient name found in the header" and dies, even though there's a recipient. I'm puzzled. ### #!/usr/bin/perl -

How to verify whether a directory exists

2003-12-06 Thread B. Fongo
I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless (-e blah_blah) mkdir(blah_blah, 0777); # Is this okay? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Pattern matching

2003-12-05 Thread B. Fongo
I went back to my books to refresh my memory on how to use references. Your suggestion help a lot, but the subroutine returns wrong values. I did some small modifications on the codes below , and tried it. It return perl-5.8.0-80.3.i386.rpm and samba-2.2.7-5.8.0.i386.rpm, which is wrong because:

Pattern matching

2003-12-04 Thread B. Fongo
Hi I'm writing a script that will connect to an ftp server (Redhat mirror), and download new versions of all packages that are on my machine. First of all, the script collects information about all the packages installed on my machine in an array (installed_packages). Then its goes on to get a

Desperately needs help with nested looping

2003-09-04 Thread B. Fongo
I'm quit confused with what I have below. I have 2 database tables; Games and groups. Name Group # John ,GroupA Miler, GroupA Peter, GroupB Mathew, GroupB Mark, GroupB Luke, GroupA I'm trying to select the members based on their groups and insert them into a different table

passing an argument to a subroutine

2003-09-04 Thread B. Fongo
Hello An argument passed to a subroutine returns wrong value. Code example: @x = (1..5); $x = @x; showValue ($x); # or showValue (\$x); sub showValue { my $forwarded = @_; print $forwarded; # print ${$forwarded}; } In both cases, the script prints out 1. What is going on here?

CGI-param question

2003-09-03 Thread B. Fongo
Hello Below is a portion of a script that displays a table. The argument passed by param() determines the number of rows the table should display. For some unknown reason, the value of param() seem to behave strangely. It at times the value does not change; even if a different number is sent as

Conditional statement and param()

2003-09-01 Thread B. Fongo
Hello Below is a portion of a script that displays a table. The argument passed by param() determines the number of rows the table should display. For some unknown reason, the value of param() seem to behave strangely. It at times the value does not change; even if a different number is sent as

AW: File::Copy & CGI.pm

2003-08-21 Thread B. Fongo
iles from one machine to another. And of course, you will need a FTP server for the machine receiving the file. Bye~ Yupapa ### # Yupapa Web Hosting =^.^= # Web Site - http://www.yupapa.com # Email - [EMAIL PROTECTED] ### "B. Fongo&qu

Variable "$q" will not stay shared at

2003-07-16 Thread B. Fongo
Hello, I'm working on my first Perl project. Most of my cgi programs work ok, but a look at the apache error log reveals this warning which is clear to me: Variable "$xy" will not stay shared at /data/www/cgi-perl/envir.pl line 19. [Wed Jul 16 11:44:57 2003] [error] Undefined subroutine &Apache

File::Copy & CGI.pm

2003-07-12 Thread B. Fongo
Hi, I've a small script intended for file transfer from a windows machine to a remote linux server. To implement that, I decided to use two module i.e File::Basename, File::Copy and CGI.pm. The File::Copy is working well locally, but it fails to copy files to a remote machine through the Browser