Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread Octavian Rasnita
From: "Randal L. Schwartz" <[EMAIL PROTECTED]> > Please, never ever post the URL to your website. "Blind leading > Blind" comes to mind. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Well... talking about that saying, I am blind and I have tought other bl

Creating a table automaticly

2004-05-31 Thread Octavian Rasnita
Hi all, I need to read an MS Word file, get the text from it and print it as an HTML page. I can get the text if I run the program under Windows, but: 1. I don't know how I can get the tables and transform them in HTML tables and 2. I don't know how can I get the text if I run the program under L

Re: Creating a table automaticly

2004-05-31 Thread Octavian Rasnita
Thank you much. I will try that. Teddy From: "zentara" <[EMAIL PROTECTED]>> > > You might try abiword, it takes alot of commandline options. > I don't know how it handles tables though, but you could > parse the output. > > > system( 'abiword', '--to=html', $file ) > or warn "Canno

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Octavian Rasnita
Does this mean that PostgreSQL is faster than MySQL? In most simple web applications I could work even with text files databases, so MySQL is very enough. But if PostgreSQL is faster, the situation changes... Teddy - Original Message - From: "Randal L. Schwartz" <[EMAIL PROTECTED]> To:

Printing a multipart HTML output

2004-06-08 Thread Octavian Rasnita
Hi all, Please tell me how can I create a multipart html file that includes html text and images. I know that Mime::Lite can create such a thing for sending an email with attachments, but I don't know if it is possible to use it for creating common HTML pages with multipart content. Thank you. T

Re: Printing a multipart HTML output

2004-06-08 Thread Octavian Rasnita
page, Internet Explorer and other browsers will be able to read it for sure. Thanks. Teddy - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 200

Re: How to host CGI scripts ?

2004-06-18 Thread Octavian Rasnita
And BTW, I am sure most of the listers will be able to help you with some advice about your problem if you will install the Apache web server for Windows from www.apache.org. It is much more used than IIS, much secure, and with many other advantages, and also free. Teddy - Original Message

parsing Latex documents

2004-06-18 Thread Octavian Rasnita
Hi all, I want to parse Latex documents with Perl, and to analyse their structure for translating them with spoken words for the blind. Do you know if the single way is to parse those documents like HTML::TreeBuilder parse the HTML files, or is there a parser that can get the Latex elements? I w

Re: popup_menu

2004-06-24 Thread Octavian Rasnita
BTW, regarding XForms, does anyone know if they are supported by the browsers, and if yes, where can I get more information/manual about using them? Thank you. Teddy - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Reading a file

2004-07-09 Thread Octavian Rasnita
Hi all, Does anyone know how can I read a file from a UNC path? Is perl able to read files this way? Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Executing a subroutine from a runtime chosen module

2004-07-10 Thread Octavian Rasnita
Hi all, Does anyone know how can I do something like: my $mod = "Module.pm"; #Then require this $mod module (using eval() #Then executing a certain subroutine from that module and getting the results. I found that I can require a module and execute it entirely but I am not able to choose to e

server push

2004-07-11 Thread Octavian Rasnita
Does anyone know if Internet Explorer 6 supports server push? Thanks. Teddy, teddy.fcc.ro [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Locating the root directory to find files on a web site

2004-07-21 Thread Octavian Rasnita
Use the %ENV hash T - Original Message - From: "Ron Goral" <[EMAIL PROTECTED]> To: "Perl Beginners - CGI" <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 3:00 PM Subject: Locating the root directory to find files on a web site > Howdy - > > I have a module that needs to locate the ro

Re: Cookies v. Hiddent Fields

2004-09-01 Thread Octavian Rasnita
From: "Siegfried Heintze" <[EMAIL PROTECTED]> > What is the difference (as far as security goes) between using a cookie and > a hidden field? Are hidden fields cached if we are using SSL? I think not. > > Both have the same security. A hidden field is simpler to be viewd by a user, but a cracker

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
Hi, You can put something like this, in httpd.conf file: include ...path_to_file And make the directory where sits that file readable only by the root user. Then, in that file, put something like: SetEnv usr user_name SetEnv pass parolissima Those 2 environment variables will be seen by any s

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
- Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "michael watson (IAH-C)" <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 3:31 PM Subject: Re: CGI script

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
ot be only "user" and "pass"), and after that chmod that special dir in order to be viewd only by the root. T Teddy - Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMA

PHPerl

2004-09-08 Thread Octavian Rasnita
Hi all, Is there a way to embed Perl programs in html like PHP can do? I heard that Perl can be used in ASP files, but I am wondering if there is an Apache module for that task. It would be cool to exist such a thing... Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

DirectoryIndex

2004-09-12 Thread Octavian Rasnita
Hello all, I have named index.html a file that in fact is a perl cgi program and I have put it in the directory /cgi-bin/ It works fine if I access it using an URL like: http://localhost/cgi-bin/index.html The problem is that I want to access that program using: http://localhost/cgi-bin/ But

mms:

2004-09-15 Thread Octavian Rasnita
Hi all, Does anyone know a perl library that can be used for saving a stream broadcasted using the mms: protocol into a .mp3 file? Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Making the program run faster

2004-09-18 Thread Octavian Rasnita
Hello all, I have made a program and I have made some benchmarks in order to see how much time consumes each part of it, and I was pretty surprised when I've seen that the CGI module takes very much comparing with the other parts of the program. Well, I don't need very many methods from the CGI li

Using a variable in a perl module

2004-09-18 Thread Octavian Rasnita
Hi all, Does anyone know how can I use in a perl module a certain variable defined in the main program? I know how to Export a variable from the module to the main program, and in fact that module uses OOP, but I don't know how to send a variable from the main program to the module, or how to modi

Sorting a hash

2004-09-28 Thread Octavian Rasnita
Hi all, I have a hash that have multiple sub hashes and I want to sort it by a sub key. For example, I have: $comp{$code}{$year}{profit}. And I want to sort the $code values after the value of the "profit" key. Is this possible directly, or I will need to create another hash for doing this typ

Re: Sorting a hash

2004-10-04 Thread Octavian Rasnita
From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> > >> You don't need another hash. > >> > >> perldoc -f sort > >> perldoc -q "sort a hash" > >> > >> my @codes = sort { > >> $comp{$a}{$year}{profit} > >> <=> > >> $comp{$b}{$year}{profit} > >> } keys %

Re: Windows Text editor

2002-02-05 Thread Octavian Rasnita
Which of these editors show the number of the current line in the status bar? This is helpfull to track the error messages from the log file. Teddy, My dear email address is [EMAIL PROTECTED] - Original Message - From: "Marty Landman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tues

printing an email address

2002-02-06 Thread Octavian Rasnita
I tried to print my email address when it is enclosed in < and > signs but it didn't print anything. The code: my $line; $line= ""; # I also tried with $line = \"; print "$line"; Nothing is printed. It prints only if I don't use the < and > signs. Thank you! Teddy, My dear email address is [EM

regular expressions

2002-02-07 Thread Octavian Rasnita
Hi all, Do you know where I can find a good free tutorial or manual for the regular expressions in Perl? Thank you. Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yaho

Reading a big text file

2002-02-08 Thread Octavian Rasnita
Hi all, I want to read a text file line by line and to make some changes in some lines. Which method do you recommend? To store the file in an array, then to insert the changed value in that array, and then to write that array to the file, or to use a temporary file to store each line from the so

Problem with a simple script

2002-02-08 Thread Octavian Rasnita
Hi all, I tried to make a simple script that for the moment needs only to read the content of a .dbx file. I used: #!c:\perl\bin\perl.exe print "Content-type: text/html\n\n"; #here I printed a simple HTML header. open (DAT, "$file"); while () { print "$_"; } # here the HTML footer. I think

The SMTP protocol

2002-02-09 Thread Octavian Rasnita
Hi all, Do you know where I can get information about the SMTP protocol? I read in a module that it is explained in RFC821. Where can I found this RFC? Will I understand the SMTP protocol from there, to be able to make a script for sending mail? Thank you for any tips. Teddy, My dear email addre

ELO/HELO

2002-02-09 Thread Octavian Rasnita
Hi all, Do you have any idea what is ELO and what is HELO? I sent a message and I saw in the headers from unknown (HELO). Thank you for some light. Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yah

Perl script for registering a web site with more search engines

2002-02-11 Thread Octavian Rasnita
Hello all, I saw in a web page a PHP script which register a web page in more than 50 search engines. Do you know if there is such a thing for Perl available for free? If yes, please give me a link. Thank you very much. Teddy, My dear email address is [EMAIL PROTECTED] ___

Counter in Perl

2002-02-12 Thread Octavian Rasnita
Hi all, I made a counter in Perl and if a visitor refreshes the page, the counter increases. Can I modify the Perl script so that won't happend? Thanks. Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @y

Reading a file

2002-02-13 Thread Octavian Rasnita
Hi all, I would like to read a file line by line if possible, but the file is not text only, and I can't read it. Do you have any idea what should I do to read it with Perl? Thank you. Teddy, My dear email address is [EMAIL PROTECTED] _

-default for filefield

2002-02-18 Thread Octavian Rasnita
Hi all, I tried to specify the default value for a file field in a form, and I see that in Internet Explorer it doesn't appear. The code was: print $screen->filefield(-name=>'file', -default=>'c:\My Documents\test.txt', .. the other parameters); Do you know what's wrong? Thanks. Teddy, My

Uploading a file

2002-02-18 Thread Octavian Rasnita
Hi all, I want to make a simple script for uploading a file. Please tell me if there is a function, or give me some tips what should I do to upload a file which is typed in a file field. Thank you. Teddy, My dear email address is [EMAIL PROTECTED]

Setting cookies

2002-02-18 Thread Octavian Rasnita
Hi all, I just made a script which set cookies, and it works fine. But I tried to disable the cookies from my machine and if I open that page which set cookies, they are still set and read, even they are disabled. Do you have any idea why? Can't I disable the cookie for a local HTML document? O

A variable in a text?

2002-02-21 Thread Octavian Rasnita
Hi all, I want to make a form to let the visitors to type a text. In this text, I want to allow them to insert a variable. For example a $name variable. I would like to allow them to insert something like: My name is XXX and I would like to meet <> from LA. And on the next page (as a test) I w

Is it a problem?

2002-02-27 Thread Octavian Rasnita
Hi all, I am new in Perl world, and I saw many messages telling that it is a security problem is someone can download the passwd file from a Unix machine. I have 2 questions: 1. As far as I know, that file has the passwords crypted and the person who download it won't see the real password. Or,

Uploading a file

2002-02-27 Thread Octavian Rasnita
Hi all, I saw a question about how to make a Perl script for uploading a file and I didn't see any answer for it. I am also interested in this thing. Could somebody give us some hints? Or, give us a source for a Perl script for uploading a file. Thank you very much. Teddy, My dear email address

Session cookies

2002-02-27 Thread Octavian Rasnita
Hi all, I want to set a cookie in a Perl script only for the current session, and I don't need that cookie after the visitor closes the browser. Can I use this kind of cookie if the user has deactivated cookies in her browser? I can't test this on my localhost, because even if I disable the coo

Headers

2002-03-06 Thread Octavian Rasnita
Hi all, Why if I use: print $q->header; print$q->start_multipart_form; the result does not contain the result of the first line, but only the line? And if I ttype: print $q->header; print $q->start_HTML; print $q->start_multipart_form; The result contains only the full header with bu

Uploading a binary file

2002-03-07 Thread Octavian Rasnita
Hi all, I tried the following script and it download the file I want in the /cgi-bin directory. The downloaded files have a name like CGItemp56530. I don't know what is the problem with this file, but I can't rename or delete it without closing the web server. Do you know what could I do to down

DBM under Windows?

2002-03-11 Thread Octavian Rasnita
Hi all, Do you know if I can use DBM under Windows? I use Apache 1.3. and Active State Active Perl. Thank you! Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.co

Using CGI.pm

2002-03-17 Thread Octavian Rasnita
Hi all, I have a question about using CGI.pm. How it is better? To print directly the html code with print " ... "; etc. or to print using the CGI.pm print $q-> start_html(...); etc. Does it work faster in a way or another, or are there any advantages? I saw that some things can't be made

Why doesn't it work?

2002-03-17 Thread Octavian Rasnita
Hi all, I tried the following line to open another location, but it doesn't work. print $screen -> redirect(-uri=>'http://localhost/index.html'); It doesn't redirect to another location. It just prints the following: Status: 302 Moved Location: http://localhost/index.html Do you have any ide

Camel Book

2002-03-20 Thread Octavian Rasnita
Hi all, I heard about that famous Camel Book for Perl but I don't know its real name. Please tell me if you know. Thank you. Teddy, My dear email address is [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://

Mail::POP3Client

2002-03-20 Thread Octavian Rasnita
Hi all, I try to make a script for downloading the messages from a POP3 server. I tried to use Mail::POP3Client but I've noticed that I don't have it installed. I don't have Mail::Folder either. Do you know where can I download this modules? Thank you. Teddy, My dear email address is [EMAIL PR

sendmail command in Windows?

2002-03-21 Thread Octavian Rasnita
Hi all, I use Perl under Win 2k, and I know there is no sendmail command under this OS. I also know that I can use the net::smtp module to send mail, but I am wondering if there is a Windows command line program for sending mail available. Do you know such a program? Thank you. Teddy, My dear e

Uploading

2002-03-22 Thread Octavian Rasnita
Hi all, I don't understand something. When I upload a file from my computer to a server, I choose a local file, I open it, then I print its content into another file. But if I want to upload a file from my local /htdocs/ folder into the /images/ folder on the server, how could Perl know that the

Commenting more lines

2002-03-26 Thread Octavian Rasnita
Hi all, I want to comment more lines but they are too many to put a # in front of each one. Please tell me how could I comment more lines by marking only the beginning and the end of the text. Thank you. Teddy, My dear email address is [EMAIL PROTECTED]

Another strange idea

2002-03-26 Thread Octavian Rasnita
Hi all, I am just a beginner, not a hacker, but an idea came to my mind. If I make a script for uploading files, it will result a variable with a path to that file that user choose. When the visitor will submit the form, I can modify the path to point to another file. Is it true? And she could

Why I can't print the file?

2002-03-26 Thread Octavian Rasnita
Hi all, I've tried the following script for reading a binary file, and just as a test, I want to print it on another file and on the screen. But nothing is printed, no errors. Do you have any idea why? The script: #!c:\perl\bin\perl.exe print "Content-type: text/html\n\n"; print "Parse comple

How to run it without a subroutine

2002-03-27 Thread Octavian Rasnita
Hi all, I am fighting with the following short test script, and I can make it work only if I use a subroutine. I want to make it work without a subroutine. The script works as it is, but if I remove the line that runs the subroutine, and the first and last lines of the subroutine (sub up { ... a

Reading a file

2002-03-29 Thread Octavian Rasnita
Hi all, I try to read a binary file using $/ =" "; while () { } I want to read until the next space and that is why I used $/=" "; but in fact I would like to read until the next space, or the next > or the next <. Can I do this? If yes, please advice how. Thanks. Teddy, My dear email ad

1 or 2 decimals

2002-04-01 Thread Octavian Rasnita
Hi all, I have a number with a lot of decimals but I want to have it only with 1 or 2. I don't want 3.1415... etc, but only 3.1 or 3.14. Can you give me some hints what should I do? Thank you. Teddy, My dear email address is [EMAIL PROTECTED] ___

Script for submitting to search engines - off topic

2002-04-01 Thread Octavian Rasnita
Hi all, Sorry this message is a little (or more) off topic. I want to make a script for submitting a web site to more search engines. Can you help me with such a script? I don't have the addresses used for submitting and I would like to see a code too. Thank you very much. Teddy, My dear email

Creating a link for downloading

2002-04-02 Thread Octavian Rasnita
Hi all, I want to make an HTML file and to put a link such as: Click here to download file 1 Can you tell me what should my link.pl script look like? I want the file to start downloding when a user clicks that link. After she clicks that link, I don't want to open any web page, or to be able

Including an HTML file or a text file in a CGI script

2002-04-02 Thread Octavian Rasnita
Hi all, I want to make a Perl script and I want to include an HTML file in a certain place in it. I would also like to be able to include a web page from other sites and a text file also. Thank you for any tips. Teddy, My dear email address is [EMAIL PROTECTED] _

Why it prints twice?

2002-04-04 Thread Octavian Rasnita
Hi all, I made the following script for parsing an html file and get the addresses, but they are printed twice instead of only once each one. Do you have any idea why? Here is the script: $file="C:\\Program Files\\Apache Group\\Apache\\htdocs\\linux.htm"; open (IN, "$file"); while () { $line =

Re: Why it prints twice?

2002-04-04 Thread Octavian Rasnita
ile") or die "Can't open $file: $!"; while () { /.+<\/a>/; print "$1"; # You can combine this into one line } close IN; Could it be a problem because I use Windows? Thanks. Teddy, My dear email address is [EMAIL PROTECTED] - Original Message ----- From: "John

Parsing an html file for getting the web addresses

2002-04-04 Thread Octavian Rasnita
Hi all, I want to make a script to parse an .html file for getting the web addresses. I know what regexp I need to use but I have a problem reading the file. Some addresses are on 2 or more lines and I can't use the while () { and I think I need to use the read(FILE, $buffer, 1024) but I can't

exec CGI versus include virtual

2002-04-04 Thread Octavian Rasnita
Hi all, Do you know what is the difference between the SSI statements include virtual ... and the address to the CGI script and exec CGI ... and the address of the CGI script? I've noticed that the second one it doesn't work. I think there are some problems with the server configuration, or some

Re: Dowload script

2002-04-05 Thread Octavian Rasnita
Hi, I've discovered a solution. I don't know anything about databases yet but I've noticed that if the file that the script tries to download includes http://server _name, the file keeps its name. If your $location variable is something like /path/file.zip it won't keep its name, but if you wi

Hiding the real location of a file?

2002-04-06 Thread Octavian Rasnita
Hi all, I tried to make a Perl script for hiding the real location of a file that has to be downloaded. I tried using: print "Location: $file\n\n"; This hides the path to the file but it doesn't hide the server where is the file. Do you know if there is a solution to hide this server, and to sh

Redirecting to a page and downloading

2002-04-06 Thread Octavian Rasnita
Hi all, I want to make a script that will start downloading a file when a link is clicked, then it will redirect to another web page. Please advice how to do it. If I put: print "Location: $path\n\n"; ... this will start downloading if the $path is a path to a file, but the page won't be printed

Are CGI pages indexed by search engines?

2002-04-07 Thread Octavian Rasnita
Hi all, I want to make my web site and I don't know if it is a good idea to use many CGI scripts to write html pages. The server where I have my page doesn't allow SSI and I can't write HTML pages that contains counters, etc, and I need to write the whole page as a CGI script. 1. Do I have anoth

Do I need MySQL?

2002-04-07 Thread Octavian Rasnita
Hi all, I want to read and sort a comma separated file like: abc,Metallica,Larry bcd,Megadeth,Wall cde,Ozzy,Perl I want to be able to sort the line using all the 3 columns. I am a beginner in Perl and I don't know to use MySQL yet. Is it possible to do what I want without a database? Thank you

Re: Hiding the real location of a file?

2002-04-07 Thread Octavian Rasnita
al Message - From: "Todd Wade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 07, 2002 4:48 AM Subject: Re: Hiding the real location of a file? "Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 002e01c1dd70$6800e7d0$[EMAIL PROTECTED]">

Re: Do I need MySQL?

2002-04-08 Thread Octavian Rasnita
t" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, April 07, 2002 6:32 PM Subject: RE: Do I need MySQL? No. MySQL would be overkill for an application like this unless you're talking about several thousand lines.

Password protecting a folder?

2002-04-12 Thread octavian Rasnita
Hi all, Is it possible to password protect a folder in Windows 2k/Apache 1.33? If yes, could you give me some hints? I would like to create a username/password. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Uploading with a text field?

2002-04-15 Thread octavian Rasnita
Hi all, Is it possible to use a text field for uploading files, or I need to use only a file field? I have some reasons for wanting only a text file. Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

What does this error mean?

2002-04-16 Thread Octavian Rasnita
Hi all, I have the following error: [Wed Apr 17 06:31:08 2002] [error] (26)Text file busy: exec of /var/www/teddy/cgi-bin/test.pl failed What does it mean "text file busy"? I've just made a test perl file with cat command, gave it the 755 rights, then I used a sync command but it doesn't want to

Verifying a remote file

2002-04-18 Thread Octavian Rasnita
Hi all, I want to verify if the file http://www.domain.com/xxx/xxx.zip which is on another site (not mine) exists. Please tell me what would be the simplest solution to test this, and how could I find out the size of this file. Thanks. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EM

Search engines and server side includes

2002-04-20 Thread Octavian Rasnita
Hi all, I know that the search engines don't index the CGI generated web pages. Do you know if they index the pages that contains server side includes? I know that they index the html pages, but I don't know how they work. Will the search engines find something on the page if all the content is S

Write permissions and other rights

2002-04-20 Thread Octavian Rasnita
Hi all, Please tell me how should I set the rights for some files and folders in my web page: 1. The cgi-bin directory. 2. The Perl script files from this directory. 3. The html directory. 4. The html files from this directory. 5. The php files. 6. The folder where I want to keep page counte

Re: Write permissions and other rights

2002-04-22 Thread Octavian Rasnita
;Todd Wade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 5:42 PM Subject: Re: Write permissions and other rights "Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 003d01c1e8db$f6df0f60$[EMAIL PROTECTED]">news:003d0

Re: problem with #exec

2002-04-28 Thread Octavian Rasnita
If that message appears in the web page, this means that SSI is permitted. Make sure you put something like: So leave a space after the last " before the --> Try this and let us if it works. Teddy, [EMAIL PROTECTED] - Original Message - From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED

Removing the end of line character?

2002-05-05 Thread Octavian Rasnita
Hi all, I want to remove the end of line character from the beginning of a string. I know that I can use chomp to remove it if it is at the end of the string, but I don't know how to do it if it is in the front of the field. Thank you for your advices. Teddy, [EMAIL PROTECTED] -- To unsubsc

Script for downloading

2002-05-05 Thread Octavian Rasnita
Hi all, I've tried to make a script for downloading a file and it works but I have a problem with it. The link for downloding the file looks like: http://www.myserver.com/cgi-bin/download.pl?file=1234 This script take the link for the id 1234 from a text file and uses the following line to dow

opening a text file by more web page visitors?

2002-05-14 Thread Octavian Rasnita
Hi all, I want to create a database with links to files from my server and from other servers and for each link there is an ID. If a visitor wants to download a file, they click a link from a HTML page, and the link looks like: http://myServer.com/cgi-bin/download?file=123 My kind of database w

No indexes

2002-05-15 Thread Octavian Rasnita
Hi all, I want to restrict the visitors to view the files and folders from a folder but I don't want to use an index.html file there. I have rights to use .htaccess files. In the .htaccess file I put: Options none options FollowSimLinks includes Multiviews I've also tried adding: Options -

Counting the elements of an array

2002-05-18 Thread Octavian Rasnita
Hi all, I have an array with values like: my @array=("aaa", "aaa", "bbb", "bbb", "aaa", "ccc", "aaa", "bbb", "ccc", ); I want to count how many "aaa" and how many "bbb" and how many "ccc" and how many "..." I have in that array.I would like to have a hash with something like: %hash=( aaa =>

Re: Counting the elements of an array

2002-05-19 Thread Octavian Rasnita
I couldn't understand anything, but thank you very much! :-) I could use the other solutions very easy, but now I have another problem. I should try to understand your code. Cheers. Teddy, [EMAIL PROTECTED] - Original Message - From: "drieux" <[EMAIL PROTECTED]> To: "cgi" <[EMAIL PROTECT

Re: Counting the elements of an array

2002-05-20 Thread Octavian Rasnita
I don't know the map function. Teddy, [EMAIL PROTECTED] - Original Message - From: "drieux" <[EMAIL PROTECTED]> To: "cgi cgi-list" <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 7:25 AM Subject: Re: Counting the elements of an array On Sund

opening and printing a document?

2002-05-20 Thread Octavian Rasnita
Hi all, I know how to open and print an html or text document on the screen if the file is on my site and I know the real path to the file. I want to open and print a document on the screen but it is not on my site and of course, I don't know the real path to that file. I've seen that I need the

Counters directory access

2002-05-25 Thread Octavian Rasnita
Hi all, Please tell me what rights should I set for the directory where I keep my counters. The counters for web pages should be writable by web page visitors. For the moment I put 777 rights for that directory but I don't know if it is a good idea. I don't want the visitors to be able to see

Getting content of a configuration file

2002-05-25 Thread Octavian Rasnita
Hi all, I want to use a configuration file for a script and maybe I look in the wrong direction. Please tell me if I have a better solution. I want to make a script that generates HTML pages. I already have the script but I need to manually enter the page title, the keywords, the description, a

Why it doesn't start to download?

2002-05-26 Thread Octavian Rasnita
Hi all, I've tried the following code: $path = http://site.com/prg/teledisk223.zip; print "Location:$path\n\n"; This prints the zip file on my screen. Or better said, it doesn't print anything but if I refresh the screen, it prints the zip file. Why doesn't it download the file? And 2 mo

Using strict and configuration files

2002-05-28 Thread Octavian Rasnita
Hi all, I want to use: use strict; And I want to use a configuration file in a Perl script. The configuration file uses: %page1=( ); %page2=( ); This way I get errors if I run the script because the variables are not defined with "my". I've tried putting in the configuration file:

What type of end of line is this?

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a little experiment. I made a simple form with a textarea field. I've typed a single digit in that field and I have submitted the form. It was a single digit, with no enter after it. I've saved the field to a file. The file has 3 bytes instead of 1 (for a LF) or 2 for CRLF. I

Verifying the CONTENT_LENGTH

2002-05-28 Thread Octavian Rasnita
Hi all, I've made a script for uploading files. I want to verify the CONTENT_LENGTH. I know how to do it and it works. The problem is that for verifying the CONTENT_LENGTH, the page visitor should wait a long time if the file is bigger, like the time for uploading the file. The visitor may not

Is it a difference?

2002-05-31 Thread Octavian Rasnita
Hi all, I've seen these 2 types of defining the CGI object and both work. my $q = new CGI; my $q = CGI -> new(); Can I use any of these 2 lines with no problem. I haven't seen explanations for the differences between these lines. Thanks. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail:

Crypting a password

2002-05-31 Thread Octavian Rasnita
Hi all, I want to crypt a password. Which method do you recommend? With Digest or with crypt? Is crypt using the same method of crypting as the htpasswd program? In this case, what key is using the htpasswd program for cripting? Thank you. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail

Reading a binary file

2002-05-31 Thread Octavian Rasnita
Hi all, I want to upload a binary file. I know how and the upload works fine. However, I don't know how many bytes is ok to read at a time. I've seen in most examples that 1024 bytes number is used like: while ($bytesread=read($filename,$buffer,1024)) { However, I found that when I try to uplo

The size of the uploaded file

2002-06-02 Thread Octavian Rasnita
Hi all, I've seen for more times that it is not recommended to upload big files with a web form. I know that if the connection brokes down, the file will be probably lost, but are there any other problems? I would like to make a form for uploading big files on my server. Not for the public, but

What is used htpasswd for?

2002-06-02 Thread Octavian Rasnita
Hi all, Please tell me what is used the htpasswd program for. I've seen that if I try to create a password file with the same password and the same username, it creates different crypted passwords. I've tried to use some switches to see if it works fine with some of them but with the same result

Replacing with Regular expressions

2002-06-03 Thread Octavian Rasnita
Hi all, I have a path to a file name. (In a script for uploading files). I want to allow only the a-z, A-Z, and 0-9 characters and I want to replace all others with _ when writing the file to the server. Can you tell me what would be this regular expression? Thank you. Teddy, [EMAIL PROTECTED

Re: The size of the uploaded file

2002-06-04 Thread Octavian Rasnita
Hi, it is off topic. I've seen more messages including this one that I am replying to, that have no text in it and I need to open an attachment to read the message. Can you tell me what is the problem? I have Windows 2000 and Outlook Express 6. Thank you. Teddy, [EMAIL PROTECTED] - Origin

Why using use strict;

2002-06-04 Thread Octavian Rasnita
Hi all, I know why I should use "use strict;" but what happen if I use "use strict;" then if the code is OK, I delete this line? Shouldn't it work the same without this line if the code has no problems? Thanks. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

  1   2   3   4   >