Encoding text

2002-09-22 Thread Mike Craig

Hi,

I want to encode a string using the translate function.

decoding is well documented by

$value =~ tr/+/ /;
$value = s/%([a-fA-F0-9][a-fA-F0-9])/pack(C,hex($1))/eg;

what i would like to do is to use the translate command to replace just the
special chars into hex encoding %??

My quess was to try and convert all chars that are not normal chars but I
am not sure how to do this.

Your suggestions will be appreciated.

Best regards

Mike


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: text/area editing

2002-09-22 Thread zentara

On Sat, 21 Sep 2002 15:36:51 -0700, [EMAIL PROTECTED] (Ramon Hildreth)
wrote:

Hi, my cgi compiles on the command line, but I get an internal server error
when
I try to access in the browser

Well, if it works on the commandline, but not from the browser, then it
usually is a permissions problem, probably trying to open the file
as user nobody, which you are when running thru the browser. What do
your httpd error logs say?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




How to get the last_modified date?

2002-09-22 Thread Octavian Rasnita

Hi all,

I am using the LWP module and I am trying to get the last modified date of
an .shtml page.
If the file is an .html, I can get the date with no problem, but if the file
is .shtml, the last_modified is .

I've tried using the $ENV  for a local .shtml file and I had the same result
(no result).

Maybe the last_modified is not provided for .shtml files.
I've tried to set it manually using:

meta http-equiv=LAST_MODIFIED content=1001010100

As far as I know, if I use http-equiv, that property  is set as a normal
HTTP header.
But it is not set even though I've tried to use last_modified,
LAST_MODIFIED, LAST-MODIFIED, last-modified.

It still remains .

Do you have another method for finding the last modified date for a .shtml
file?

Thank you.

Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to get the last_modified date?

2002-09-22 Thread Wiggins d'Anconia

At the server or the client side?

perldoc -f stat

If you want it on the server side. stat returns specific information 
about a file on the local filesystem (or one that can be seen locally).

http://danconia.org

Octavian Rasnita wrote:
 Hi all,
 
 I am using the LWP module and I am trying to get the last modified date of
 an .shtml page.
 If the file is an .html, I can get the date with no problem, but if the file
 is .shtml, the last_modified is .
 
 I've tried using the $ENV  for a local .shtml file and I had the same result
 (no result).
 
 Maybe the last_modified is not provided for .shtml files.
 I've tried to set it manually using:
 
 meta http-equiv=LAST_MODIFIED content=1001010100
 
 As far as I know, if I use http-equiv, that property  is set as a normal
 HTTP header.
 But it is not set even though I've tried to use last_modified,
 LAST_MODIFIED, LAST-MODIFIED, last-modified.
 
 It still remains .
 
 Do you have another method for finding the last modified date for a .shtml
 file?
 
 Thank you.
 
 Teddy's Center: http://teddy.fcc.ro/
 Mail: [EMAIL PROTECTED]
 
 
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[OT] Sendmail for windows

2002-09-22 Thread Hytham Shehab

hi guys,
where can i find/download a free sendmail alternative for win32?
thx

--
Hytham Shehab


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [OT] Sendmail for windows

2002-09-22 Thread Greg Matheson

On Sun, 22 Sep 2002, Hytham Shehab wrote:

 where can i find/download a free sendmail alternative for win32?

Exim has been ported to cygwin, if you have that. But I think
there are native Windows MTAs too.

-- 
Greg MathesonThe teacher as the monkey in the works.
Chinmin College  Intervention without understanding.
 
Taiwan Penpals Archive URL: http://netcity.hinet.net/kurage

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to get the last_modified date?

2002-09-22 Thread Jimmy George

Put the ssi !--# echo var=LAST_MODIFIED-- in if you are reading the
file from a server. I haven't tried it though.

JimmyG

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Passing array to a gd graphic

2002-09-22 Thread Nelson Goforth

I'm gathering numeric survey data from users with a perl script and 
then showing their scores on a results page.

On this page I want to include a graph of the results.  I've written a 
script that uses gd.PM, but I'm at a loss on how to pass the result set 
array over to the separate graphing script.

I've tried calling the graphing script as:

print IMG SRC=graph.pl?results=@results;

but can't seem to pull the data out.   I've tried a couple other 
options but nothing seems to work properly.

I've done a workaround in the past by calling a similar graphing script 
that actually creates a .gif file which is then displayed in an HTML 
page, but I don't NEED to create a file, and figure there must be a 
better way to do this.

Any ideas?

Nelson


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]