[11006] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4606 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jan 9 18:01:27 1999

Date: Sat, 9 Jan 99 15:00:22 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 9 Jan 1999     Volume: 8 Number: 4606

Today's topics:
    Re: Accessing User files from CGI without files being W <design@raincloud-studios.com>
    Re: ActivePerl on Win95 <gellyfish@btinternet.com>
    Re: ActivePerl on Win95 <wcatlan@bccom.com>
    Re: ActivePerl on Win95 <gellyfish@btinternet.com>
    Re: Add a link Script <design@raincloud-studios.com>
    Re: Beginner problem (Jeff Schneider)
    Re: bulletin board w/o registering <design@raincloud-studios.com>
        GD.pm NOT WORKING! <sorcerer@NetVision.net.il>
    Re: GD.pm NOT WORKING! <gellyfish@btinternet.com>
        GIF from WMF or EPS data? <design@raincloud-studios.com>
    Re: How do you run long scripts from a browser without  <dtbaker-@busprod.com>
        I need baseball photos please (Teachz777)
    Re: I need baseball photos please <gellyfish@btinternet.com>
    Re: internal server error (Rich)
        Module Linking ljkbrost@my-dejanews.com
        new DBD::Sybase package problem <clerke@emirates.net.ae>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 9 Jan 1999 22:47:52 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Re: Accessing User files from CGI without files being WordWritable
Message-Id: <778mao$3l1@bgtnsc03.worldnet.att.net>

Mike Volk wrote in message
<8GAk2.15644$Js2.4029@news.rdc1.nj.home.com>...
>I'm working on writing a CGI script for one of my web servers that will
need
>to place files into different user directories and delete files. The
problem
>is I don't want to make the directories and/or files wordable readable.


Then stop now. :) Seriously... alot of this will be in the realm of
permissions, which is in the authoring.cgi group. But just to get you
started there...

if the server runs as group set the permissions to 770 which still gives
browser access. Put a blank index.htm file in the directory, and add
 .htaccess protection to the directory. That is a basic security block to
prevent world access while maintaining Perl access.

the follow up questions for this item *need to be asked in the other
group*.

>Looking around, the current thought I had was to use NET::telnet and
telnet
>back to the same server and pass the information that way. Could this
be >done?


You are thinking too much. Telnet as I understand it is about as secure
as handing your password out to people who you think 'look' trustworthy.
I only use Telnet if I feel nostalgic for the days of B&W tv and total
innocence. You can achieve your goal with plain old File IO and Perl.

>More importantly, am I missing an easier/better method.


Yep, you are thinking too much about trying to use all the powers or
Perl at your disposal. Think simple... very simple. :)

>I'm just getting started with PERL and actually just returning to
programming >in earnest after about a 8yr hiatus from Pascal


>From FZ's Joe's Garage...
"You'll love it, it's a way of life"

CT




------------------------------

Date: 9 Jan 1999 21:08:32 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: ActivePerl on Win95
Message-Id: <778ggg$cf$1@gellyfish.btinternet.com>

In comp.lang.perl.misc Jason Boyd <jboyd99@hotmail.com> wrote:
> If anyone knows how I can get ActivePerl (509) to fuction properly on my
> Win95 system, could you please help me? 
> 

But it *is* functioning properly its just that you arent giving it a 
chance to display its marvels.  If you open a command prompt window -
dont take it back to DOS mode - and CD to the directory where your script
resides and type:

perl <myscript>.pl 

what do you see happening ...


I think that you might want to read the perlrun manpage:

perldoc perlrun

to get an idea of the possibilities ....

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: Sat, 9 Jan 1999 16:09:11 -0500
From: "Bill Catlan" <wcatlan@bccom.com>
Subject: Re: ActivePerl on Win95
Message-Id: <778gag$fej$1@news01.li.net>

Did you install DCOM?  I'm not sure what it does, but I think it's pretty
important. ;-)

Good luck.

Bill

Jason Boyd wrote in message <3697BAC3.7DA17D9F@hotmail.com>...
>If anyone knows how I can get ActivePerl (509) to fuction properly on my
>Win95 system, could you please help me?
>
>I can open the perl.exe in Windows, but any scripts I run shut down as
>soon as they have displayed, meaning I can't see the results. When I try
>to open perl from DOS, it tells me "this program doesn't run in DOS
>mode." Yet the docs that come with the build claim it is for Win NT, 95
>and 98 systems.
>
>Any help is appreciated (even the name of another version of perl that
>IS built for Win95).
>
>Jason Boyd




------------------------------

Date: 9 Jan 1999 22:01:51 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: ActivePerl on Win95
Message-Id: <778jkg$gj$1@gellyfish.btinternet.com>

[comp.lang.perl does not exist anymore I have removed it -
 alt.perl I dont know I just removed it anyway ]

In comp.lang.perl.misc Bill Catlan <wcatlan@bccom.com> wrote:
> Did you install DCOM?  I'm not sure what it does, but I think it's pretty
> important. ;-)
> 

DCOM stands for Distributed Component Object Model - it is necessary to
run the ActiveState Perl, it is part of NT but must be retrofitted to
Win95 in order for it to work on that platform.  However I seem to recall
that the ActivePerl installation would refuse to work if DCOM95 was not
installed before and even so I would suggest that you would get a worse
error if it was missing.

As I said before I think that the original posters installation was
probably correct but he was not sure how to run it properly.

/J\

-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: 9 Jan 1999 22:59:15 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Re: Add a link Script
Message-Id: <778n03$6n8@bgtnsc03.worldnet.att.net>

>I searching for an add a link (and description) script.
>Something like Geocities or Xoom use.
>There are several scripts that place ALL the links on
>ONE page (often with topics or letters A-Z). But I
>want one that creates a NEW PAGE after a certain number
>of entries. The script should add numbers at the foot
>of the page: 1-2-3 etc. that link to more entries.


You will probably get a better response asking this in a CGI group. Look
around for scripts where you will be merging a link script with a
database browsing script.

CT




------------------------------

Date: Sat, 09 Jan 1999 21:15:14 GMT
From: jschneid@sienahts.edu (Jeff Schneider)
Subject: Re: Beginner problem
Message-Id: <3697c684.2533355@news.dmci.net>

Doesn't your script also have to 
print "<HTML><HEAD>bla bla</HEAD><BODY> bla bla bla</BODY></HTML>"

On Fri, 08 Jan 1999 15:15:08 +0800, Alex <ex5316@netvigator.com>
wrote:

>Please help
>In order to learn perl, I get my own virtual hosting. It can use now.
>However when I put my first simple script (test.pl) to the cgi-bin
>directory for testing. It
>don't work. I check and try everything many many times, e.g.change Unix
>mode , ASCII, etc....but it's still not work.
>The script is simply:
>
>#!/usr/local/bin/perl
>print "content-type: text/plain\n\n";
>print "This is a test";
>
>When I execute the script from my browser ,  only the error below appear
>:
>
>Internal Server Error
>The server encountered an internal error or misconfiguration and was
>unable to complete your
>request.
>Please contact the server administrator, and inform them of the time the
>
>error occurred, and anything you might have done that may have caused
>the error.
>
>Why ? What will be the possible answer ?
>Please help
>Thank you
>
>
>


Jeff Schneider
Sr. Applications Analyst
Siena Heights University


------------------------------

Date: 9 Jan 1999 22:26:26 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Re: bulletin board w/o registering
Message-Id: <778l2i$q97@bgtnsc03.worldnet.att.net>

kurweb@mailexcite.com wrote in message
<76sdkc$fg1$1@nnrp1.dejanews.com>...
>Does anyone know any bulletin board scripts that do not require
visitors to
>register a username and password?


Umm.. anyone who actually built a decent bbs probably included a global
variable to switch registration on and off and coded the script to
handle such a task. Why don't you look at a few and see if you can just
rip the authentication stuff out of them if there is no switch? The code
is already there, you only need to take out the 'features' you don't
need.

( Or do you just want to upload something and run it? )

CT




------------------------------

Date: Sat, 09 Jan 1999 22:10:10 +0200
From: "Adi G." <sorcerer@NetVision.net.il>
Subject: GD.pm NOT WORKING!
Message-Id: <3697B7A2.67A4ACA8@NetVision.net.il>

Hi!!!

I am running Win98 with ActiveState Perl 5.005_2.
Everything runs perfectly EXCEPT GD.pm!

When I needed CGI.pm it ran Perfectly, just copying the file
to the /lib directory.
HOWEVER in the GD.pm case it's NOT!!

I get the Error: 
----------------
Can't locate loadable object for module GD in @INC
(@INC contains: E:\PROGRAMMING\PERL5\lib E:\PROGRAMMING\PERL5\site\lib.)
at fig5-8.pl line 6 BEGIN failed--compilation aborted at fig5-8.pl line
6.
-----------------

I read MANY documents Without help! They either refer to Strange
unix syntaxes or the need to have a C Compiler.

God, just does any ONE have this module compiled for winodws and
working..??

This is Frustrating stuff..

Anyhelp will be **GREATLY** appreciated.

		Thank You.
P.S.
If you can also in addition send the answer via email it's more
than better... (-:


------------------------------

Date: 9 Jan 1999 21:54:30 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: GD.pm NOT WORKING!
Message-Id: <778j6m$gd$1@gellyfish.btinternet.com>

On Sat, 09 Jan 1999 22:10:10 +0200 Adi G. wrote:
> Hi!!!
> 
> I am running Win98 with ActiveState Perl 5.005_2.
> Everything runs perfectly EXCEPT GD.pm!
> 
> When I needed CGI.pm it ran Perfectly, just copying the file
> to the /lib directory.
> HOWEVER in the GD.pm case it's NOT!!
> 
<snip the obvious error>

You cant do this sort of thing with modules such as GD that require
the XS binary modules to be installed in the correct place - merely
copying the *.pm files to the lib directory will not work - it works
with CGI.pm because that module only requires that file.  If you are
using ActivePerl then you should use PPM to install the GD module
correctly - if you are unsure as to how to use PPM then you should
look at the activestate website for further information.

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: 9 Jan 1999 22:30:40 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: GIF from WMF or EPS data?
Message-Id: <778lag$rjc@bgtnsc03.worldnet.att.net>

Are there any libraries or modules capable of taking in vector art and
generating raster files?

I'm looking for something similar to these 'mapping' site things where
the image is generated from data based on a user's request. We would
like to be able to generate the 'map' image in various sizes from the
user's request and a vector source to raster end result seems like the
way to go.

CT




------------------------------

Date: Sat, 09 Jan 1999 16:17:21 -0600
From: Dan Baker <dtbaker-@busprod.com>
Subject: Re: How do you run long scripts from a browser without sending tons of data?
Message-Id: <3697D571.5429462A@busprod.com>

Tommy1452 wrote:
> 
> I don't have a dial up account with my provider, therefore I run and test all
> my scripts from a browser.  One script will time out no matter how much data I
> have it spit out to the browser.  It runs fine from the Unix prompt (I can't do
> this any more because my user account was terminated at my  school.)
> Tom
> 

-----------
It sounds like you need a local webserver.... solutions have been posted
here lots of times, try dejanews for more options. I use the Xitami
webserver locally for testing perl cgis.



 Dan

# If you would like to reply-to directly, remove the - from my username
* no spam please... regulated by US Code Title 47, Sec.227(a)(2)(B)  *


------------------------------

Date: 9 Jan 1999 21:19:10 GMT
From: teachz777@aol.com (Teachz777)
Subject: I need baseball photos please
Message-Id: <19990109161910.11619.00009945@ng99.aol.com>

hi   I am a teacher in the public schools and I am interested in showing a
display of major league baseball players photographs throughout the public
schools in NC.  This is a civic project only and there will be no funds
involved.  I am trying to collect original photos of major league players. 
These photos may be of any player at any time.  Other people might be included
in the photo ...that is not a problem.  Minor league players would also be ok
as well as Negro League Players.

Please do not send anything that you must have returned although I will try to
return all.

Also,  please send any postcards that have baseball stadiums displayed.

send to

M. Davrio
1 Superior Ct
Durham NC 27713


------------------------------

Date: 9 Jan 1999 22:06:01 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: I need baseball photos please
Message-Id: <778js9$gm$1@gellyfish.btinternet.com>

On 9 Jan 1999 21:19:10 GMT Teachz777 wrote:
> hi   I am a teacher in the public schools and I am interested in showing a
> display of major league baseball players photographs throughout the public
> schools in NC.  This is a civic project only and there will be no funds
> involved.  I am trying to collect original photos of major league players. 

Ok, Ok, I'll go with it - are you sure you dont want picture of Major
League Perl Hackers or perhaps some script to catolgue or display these
pictures or whatever?

Of course being from the UK I couldnt possibly help you with the pictures
but I guess that if you have a programming problem then I might be able.

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>


------------------------------

Date: Sat, 09 Jan 1999 21:26:12 GMT
From: richm@ucesucks.rochester.rr.com (Rich)
Subject: Re: internal server error
Message-Id: <slrn79fijn.d9i.richm@ll.aa2ys.ampr.org>

On Sat, 9 Jan 1999 21:01:05 +0100, Madenet <msantull@dimensione.com> wrote:
>Anyone can help me ?
>

   Probably.

>I realized a CGI in Perl.
>

   An excellent combination.

>It works with Win 95 and Frontpage Web Server.
>

   Great!

>After it doesn't work on Apache on BSDI 3.0 Server.
>
   How unfortunate.

>May be a configuration error of server conf files ?
>

  Possibly.

  Why don't you try asking in an appropriate group, since you apparently
know where the problem lies?

- Rich

--
Rich Mulvey                                         
http://mulvey.dyndns.com
Amateur Radio: aa2ys@wb2wxq.#wny.ny.usa


------------------------------

Date: Sat, 09 Jan 1999 21:37:17 GMT
From: ljkbrost@my-dejanews.com
Subject: Module Linking
Message-Id: <778i6d$7m$1@nnrp1.dejanews.com>

I am creating a Perl script that will execute on Windows32 machines and
FreeBSD.  The script uses generic functions that are port independent with
the exception of Win32::Process and fork.  I would like to keep this code in
a single file but I am having some Module problems.

Example Code
------------

use strict;

use lib "../Packages";  # Contains modules associated with the script
use Win32:Process;

if ($^O =~ /freebsd/)  {
   # execute fork function
}
elsif ($^O =~ /MSWin32/)  {
   # execute Win32::Process::Create function
}
else {

  print STDOUT "Error:  This program has only been tested on FreeBSD and
MSWin32";
}

-----

Now the above code ensures that the right part of the code to execute on each
architecture, but it will not compile on FreeBSD because the Win32::Process
package does not exist.

I tried tossing an empty Process.pm file into "../Packages/Win32" in a hope
that when perl processes the @INC list sequentically and take the real copy
in MSWin32 and the "fake" version in FreeBSD.  This method works in fooling
FreeBSD but MSWin32 croaks because it is using the dummy file.

Any suggestions on how I can implement this?


Kyle Brost
----

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: Sun, 10 Jan 1999 01:32:33 +0400
From: "wayne clerke" <clerke@emirates.net.ae>
Subject: new DBD::Sybase package problem
Message-Id: <778hts$oco$1@nntp.or.nw.verio.net>

anyone seen this with 509 and the new DBD::Sybase package?
It all worked in previous versions and other modules install ok with 509.

PPM> install DBD-Sybase
Error installing package 'DBD-Sybase': Couldn't open D:\TEMP/DBD-Sybase/ for
writing

regards,
Mail: wayne clerke <clerke@emirates.net.ae>    Voice: +971 506 43 4853
PGP key id: AEB2546D  F/P: D663D11EDA19D74F5032DC7EE001B702
PGP key id: 57AA1C10  F/P: 9926BF8918B7EB3623A7 AFA46572C5B857AA1C10
If you're not living on the edge, you're taking up too much space.




------------------------------

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 4606
**************************************

home help back first fref pref prev next nref lref last post