Problem with session management in perl

2003-03-31 Thread Pankaj Kapare
Hi, I want to maintain the session in perl.For that I used CGI::Session module.I wrote simple script as follows.I am storing the one variable called "name" in session in first perl file(first.pl).Now I am tring to access this variable in Second perl page(second.pl). Now my problem is when I pri

Session Management

2003-03-31 Thread Pankaj Kapare
Hi, I want to maintain the session in perl.For that I used CGI::Session module.I wrote simple script as follows.I am storing the one variable called "name" in session in first perl file(first.pl).Now I am tring to access this variable in Second perl page(second.pl). Now my problem is when I pri

writting shell script to create database.

2003-02-21 Thread Pankaj Kapare
Hi, I am sorry for putting my question on this platform.But i got stuck up at one thing.Can anybody help me? I want to write the shell script to create database and running one script file (.sql) in the same shell script which will create some tables.under newly created database. But I dont k

Copying directory structure and its content.

2003-02-19 Thread Pankaj Kapare
Hi, I want to copy whole directory structure and its containts(may be file and folders under source directory) to destination directory .i dont know how to do this .Can anybody help me. Thanks in advance ! Pankaj

Perl script not running on apache server

2003-02-18 Thread Pankaj Kapare
Hi I am trying to run one perl script on APACHE server.My server is running well.I have installed perl properly and it is configured with apache and also running well with out any error.Now my web server is on UNIX system.I am saving my scripts in web dirctory of server.When I tries to run the

File handling

2003-02-13 Thread Pankaj Kapare
Hi I want to to file handling in perl.In that I have one file which contains some lines.Now I want to modify some of lines like.. My file conatins line one line two line three password="password"; Login Id ="xyz" line 6 and so on if i want to write new passord and login id then how can i do tha

Mysql Connection

2003-01-28 Thread Pankaj Kapare
Hi, I am trying to connect to MYSQL through my perl script.I am using windows 2000 and activeperl. I am using Net::MySQL to connect with database.But it is giving error : Couldn't connect to /tmp/mysql.sock: at E:\PERLTR~1\perl\VALIDA~1.PL line 12 My script is as follows: #!/usr/local/bin/perl pr

Mysql Connection problem

2003-01-27 Thread Pankaj Kapare
Hi I am trying to connect to the mysql but it is giving erorr like this: Can't locate object method "connect" via package "Net::MySQL" My code is as follows can anybody help me to solve this problem? #!/usr/local/bin/perl print "Content-type:text/html\n\n"; use Net::MySQL; $DBHOST = "localhost";

Re: Help to connect to mysql

2003-01-27 Thread Pankaj Kapare
Hi, I tried your solution but still dont get the output.It is showing same error.Can u help me to solve this problem? - Original Message - From: "Mat Harris" <[EMAIL PROTECTED]> To: "Pankaj Kapare" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Mo

Help to connect to mysql

2003-01-27 Thread Pankaj Kapare
Hi, I am using Net::mysql to connect with database mysql.Though sytax is correct it is still giving error: Can't locate object method "new" via package "MySql" (perhaps you forgot to load "MySql"?) at E:\PERLTR~1\perl\VALIDA~1.PL line 10. Content-type:text/html My code is as follows: #!/usr/l

ATL COM

2003-01-24 Thread Pankaj Kapare
ot;; BEGIN { push(@INC,'E:/PerlInstall/site/lib/;E:/PerlInstall/lib/,F:/ATL/practise/debug') } use Win32::OLE $Object = Win32::OLE->new('{0x0073C45B,0xE00A,0x4B1B,{0x9C,0xB6,0x97,0x33,0xDD,0x01,0x18,0xB6}}') or die "Can not create Object\n"; $Resul

How to use com components in perl

2003-01-23 Thread Pankaj Kapare
Hi Can anybody tell me how to use com components developed in c++ in perl script.If provided with sample code it will be great help. thanks. Pankaj

How to use ATL COM components in perl

2003-01-19 Thread Pankaj Kapare
Hi, Can anybody tell me how to use perl components in perl. Pankaj.

[perl #20364] How to use com components in perl

2003-01-17 Thread Pankaj Kapare
Sir, I want know how to use com components developed in c++ within perl script. Thanking you! pankaj.