[7636] in Perl-Users-Digest
Perl-Users Digest, Issue: 1262 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Nov 2 18:07:13 1997
Date: Sun, 2 Nov 97 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 Sun, 2 Nov 1997 Volume: 8 Number: 1262
Today's topics:
Re: Accessing perl libraries <merlyn@stonehenge.com>
Re: Alternatives to CGI.pm (was Re: Continuations in pe (I R A Aggie)
Re: Bug in Perl 5 'chr' <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
call for bids--perl mSQL CGI programming (Cliff Landesman)
Re: call for bids--perl mSQL CGI programming (Toutatis)
Can I confess run-time taint errors? gtuckerkellogg@genetics.com
Re: Creating a new file each day?? <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: detection of first execution since login <ltattrie@icrossroads.com>
gurusamy sarathy win32 bin port... <darrik@uakron.edu>
Re: gurusamy sarathy win32 bin port... <jhi@alpha.hut.fi>
Re: gurusamy sarathy win32 bin port... <rootbeer@teleport.com>
HELP! Returning Values back to orig page?? <jlanders@execpc.com>
Is the Perl language itself Year2000 compliant <swjenkins@ibm.net>
Re: Is the Perl language itself Year2000 compliant (John Moreno)
Newbie: CGI incantations for Mac <frogkisser@geocities.com>
Re: Passing HTML Forms to IMAP4/POP3 (Dave V.)
Re: Perl for NT and ARGV parameters <ase@seanet.com>
PHP version 3 alpha released (Magnus Soederman)
Problems with H2ph <niccotnt@mbox.vol.it>
Re: Problems with unshift and @LoL (Toutatis)
Real Newbie Question (Anders Thelemyr)
Re: What to do with Bitwise operators? (brian d foy)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 02 Nov 1997 10:43:40 -0700
From: Randal Schwartz <merlyn@stonehenge.com>
To: bash@bbn.com (Jason Gloudon)
Subject: Re: Accessing perl libraries
Message-Id: <8cpvoj42er.fsf@gadget.cscaper.com>
>>>>> "Jason" == Jason Gloudon <bash@bbn.remove.com> writes:
Jason> Inn wants to link with a libperl.a or libperl.so library, which
Jason> it is looking for in
Jason> /usr/local/lib/perl5/sun4-solaris/5.00403/CORE. By default, the
Jason> perl install doesn't install or create them. You'll need to get
Jason> the perl source and build them.
You made a typo there. The word "doesn't" should be "does", as in:
By default, the perl install *does* install *and* create them.
If you have an installation where there's not a perl.a in the
subdirectory CORE below the directory output by:
perl -V:archlib
then you've got a case where you can strangle the builder of your perl
(probably perl -V:perladmin :-) for not installing Perl correctly.
The default install does *indeed* insert this file.
In fact, even easier, just add
`perl -MExtUtils::Embed -e ldopts`
to your cc/gcc/ld line, and you'll have the right -L and -l flags
automatically added. Too cool.
print "Just another Perl hacker," # but not what the media calls "hacker!" :-)
## legal fund: $20,990.69 collected, $186,159.85 spent; just 302 more days
## before I go to *prison* for 90 days; email fund@stonehenge.com for details
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: Sun, 02 Nov 1997 12:44:14 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Alternatives to CGI.pm (was Re: Continuations in perl?)
Message-Id: <-0211971244150001@aggie.coaps.fsu.edu>
In article <878450119.324524@ridge.spiritone.com>, "Aaron Harsh"
<ajh@rtk.com> wrote:
+ Binding a perl object to a Web page seems straightforward. Getting the
+ results is straightforward. The difficult part seems to be saving state
+ between invocations (both variables, and position inside the program).
Maybe I don't understand, but doesn't CGI.pm already do some of this?
>From 'perldoc CGI':
Using a CGI object's methods, you can examine keywords and parameters
passed to your script, and create forms whose initial values
are taken from the current query (thereby preserving state
information).
Perserving location inside the program might be a bit more difficult.
James
--
Consulting Minister for Consultants, DNRC
Support the anti-Spam amendment <url:http://www.cauce.org/>
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>
------------------------------
Date: Sun, 2 Nov 1997 09:21:15 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: Bug in Perl 5 'chr'
Message-Id: <63icq0$p6r@bgtnsc02.worldnet.att.net>
I just now tried this:
perl -e "for ($i = 65; $i <= 100; $i++) { print chr($i) } "
and it worked like a charm. However I'm using the ActiveState port (and
under Win95 at that). You might try that and see if it makes a difference. I
would also try recompiling (if you compiled it rather than got it off the
shelf) and testing your perl on a different machine with a similar
configuration, if that's possible, to see if it happens again.
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Ulrich Ludwig <100675.2064@CompuServe.COM> wrote in article ...
>Hi,
>
>there seems to be abug in GNU Perl 5.0004 for WIN@*# 32.
>The 'chr'-function is not implemented, so you get a
>compilation error when trying to use it.
>
>Is this right and does a bugfix exist (It all works well
>under UNIX !)
>
>kind regards
>
>Uli
>
>--
>uli
>( Ulrich Ludwig: 100675.2064@CompuServe.com )
------------------------------
Date: Sun, 02 Nov 1997 19:39:44 GMT
From: cland@netbox.com (Cliff Landesman)
Subject: call for bids--perl mSQL CGI programming
Message-Id: <63ia84$81c$2@maceo.dti.net>
We invite programmers to send in bids for the following project.
We intend to create a web site, called "ListHelper", which will help
people interact with email list servers. The most basic feature of
ListHelper will allow people to subscribe and unsubscribe from lists
without having to know the syntax appropriate to a particular list
server. It will track the history of commands sent to the list
server, sparing users from having to remember which lists they have
subscribed to and which lists they have left. ListHelper will attempt
to go beyond this basic functionality by providing users with
assistance in managing their list options, probing the list for
information, and retrieving list archives and files. ListHelper will
ease the burden to list users by composing for them syntactically
correct commands, sending those commands to the list server, and
remembering what messages have been sent. In short, it will speak to
the list server and remember what it has said.
This project involves two parts: 1) preliminary research into list
server syntax and 2) designing/creating a database and writing CGI
code which takes advantage of that research. For the first release,
the site will only support the three most popular list servers:
listserv, listproc, and majordomo. A draft of the HTML front-end for
the site has already been written, subject to modification based on
further list server research. For a concrete rendition of the site,
without any functionality, see:
http://www.listhelper.com
The programmer's job is to enable this web site (insofar as it is
feasible). The programming constraints are as follows:
OS: Unix
Language: Perl
Database: mini SQL
The site will be housed at www.listhelper.com. We will give
programmers access to a shell account there, where mSQL is running,
and the programmers may wish to work directly where the site will be
housed. A first working draft of the code, running on
www.listhelper.com, should be ready two weeks after the bid has been
accepted. We will review the code, suggest modifications, and expect
a final draft after another two weeks. The code should not only work
well, it should be readable and well commented.
My partner and I will own the copyrights for the CGI and HTML code. I
(Cliff Landesman,
http://www.nonprofits.org/parlor/acknow/landesman.html) work for the
Fund for the City of New York (www.fcny.org) as Internet Application
Director, and my partner (Ian Giddy, www.giddy.org) is a professor at
New York University (www.nyu.edu) where he teaches international
finance.
Please include the URL of a home page or sample work with your bid.
Bidding will end noon, November 8, 1997. This is a "sealed bid"
auction. We will not reveal bids prior to awarding a contract and will
not disclose a budget. The bidder's responsibility is to make the best
estimate the bidder can of the work required and what payment the
bidder is willing to accept for the amount of work the bidder believes
this project involves. We will award the contract by considering both
price and the judged abilities of the bidder.
We hope the site will become popular and we will include on the
ListHelper home page mention of the CGI developers, together with a
link to the developer's home page. This acknowledgement will remain
active for the first year of the site and longer if there are no major
modifications to the code.
We will be happy to answer any questions not covered above.
Please send bids to cland@netbox.com.
--Cliff
------------------------------
Date: 2 Nov 1997 20:31:44 GMT
From: toutatis@_SPAMTRAP_toutatis.net (Toutatis)
Subject: Re: call for bids--perl mSQL CGI programming
Message-Id: <toutatis-ya023180000211972131440001@news.euro.net>
cland@netbox.com (Cliff Landesman) wrote:
> The programmer's job is to enable this web site (insofar as it is
> feasible). The programming constraints are as follows:
>
> OS: Unix
Good choice
> Language: Perl
Excellent choice
> Database: mini SQL
Bad choice for a website. Single threaded, buggy, too small a subset of
SQL, bad support, minimal documentation. My free advise: use MySql instead.
Perl DBI interface is stable and fast.
--
Toutatis
------------------------------
Date: Sun, 02 Nov 1997 16:36:36 -0600
From: gtuckerkellogg@genetics.com
Subject: Can I confess run-time taint errors?
Message-Id: <878509769.23433@dejanews.com>
I'm working with a program using the -T flag, which I haven't used
much before. Among other things, this program uses MLDBM with the
DB_File module. When I'm testing the script, and I get fatal errors
like
Insecure dependency in eval while running with -T switch
at/usr2/users/gtk/lib/perl5//MLDBM.pm line 70.
I'd *really* like to see the call stack. I know how to use the
debugger to get this, but is there a way of getting a fatal
run-time error to print the call stack?
Greg
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
------------------------------
Date: Sun, 2 Nov 1997 10:52:12 -0800
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: Creating a new file each day??
Message-Id: <63ii4g$gl4@bgtnsc02.worldnet.att.net>
You might try replacing the line that opens your current log (something like
open(LOG,">>log") or die "Can't open log";
) with something like this:
($second, $minute, $hour, $dom, $month, $year, $weekday, $doy, $dst) =
localtime(time);
$month++;
$year += 1900;
$newlog = sprintf("%4.4d%2.2d%2.2d.log",$year, $month, $dom);
if (-e $newlog) { open(LOG,">>$newlog") or die "Can't open $newlog" }
else { open LOG, ">$newlog" or die "Can't open $newlog" }
This should give you files with names like 19971102.log that will change
whenever the date changes.
Hope this helps!
--- Creede Lambard
Minister of Irregular Expressions
Programming Republic of Perl
Burt Lewis wrote in message <63hpr5$4u2$1@bashir.ici.net>...
>Hi,
>
>I have an SSI logger script that is wrighting now to a single file and
>appending each line. That works just fine!
>
>I would like to start a new file each day and have one file for every day
>instead of just the one file.
>
>Having some trouble doing this and would appreciate any help.
>
>Thanks!
>
>Burt Lewis
>burt@ici.net
>
>
------------------------------
Date: Sun, 02 Nov 1997 12:25:01 -0700
From: LTattrie <ltattrie@icrossroads.com>
Subject: Re: detection of first execution since login
Message-Id: <345CD38D.71FA@icrossroads.com>
Chenyang Xu wrote:
> > On Sat, 25 Oct 1997, Chenyang Xu wrote:
> >
> > > On UNIX, is there a way for a perl script to find out whether its
> > > current execution is the first execution since the recent user login?
> Any other input or alternative way to achieve this will be greatly
> appreciated!
>
> -Chenyang
I have not tried this but is seems reasonable:
Put the program in the .login or where it will be run on login but also
set an environment variable. For example in csh "setenv
pgmnamerun=TRUE". The first thing the program does is use the %ENV perl
variable to check if the environment variable is set. If the variable
is set the program has aleady run so stop the program.
While this is likely what you want to happen the program does actually
start running each time you open a window so the open window will slow
down a bit.
Also you might be able to set the variable to the time so the program
could check if too many hours have passed it will run the rest of the
program again. This way if someone leave there id on the program will
run the rest of the stuff.
- Lawrence
------------------------------
Date: Sun, 02 Nov 1997 17:19:30 -0500
From: darrik mazey <darrik@uakron.edu>
Subject: gurusamy sarathy win32 bin port...
Message-Id: <345CFC71.BD538B3A@uakron.edu>
i recently downloaded the gurusamy sarathy binary distribution of perl
5.004_002 and for some reason winzip 6.2 won't extract it. it says it
is an invalid archive file. what can i use to decompress it, if winzip
won't do it?
much love...
darrik
darrik@uakron.edu
------------------------------
Date: 03 Nov 1997 00:28:24 +0200
From: Jarkko Hietaniemi <jhi@alpha.hut.fi>
Subject: Re: gurusamy sarathy win32 bin port...
Message-Id: <oeevhybexrr.fsf@alpha.hut.fi>
darrik mazey <darrik@uakron.edu> writes:
>
> i recently downloaded the gurusamy sarathy binary distribution of perl
> 5.004_002 and for some reason winzip 6.2 won't extract it. it says it
> is an invalid archive file. what can i use to decompress it, if winzip
> won't do it?
You did download in binary mode? If you downloaded in ASCII mode you
lost the highest bits of each byte -- and compressed files tend to
need those.
--
$jhi++; # http://www.iki.fi/~jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
------------------------------
Date: Sun, 2 Nov 1997 14:39:04 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: darrik mazey <darrik@uakron.edu>
Subject: Re: gurusamy sarathy win32 bin port...
Message-Id: <Pine.GSO.3.96.971102143659.15104K-100000@usertest.teleport.com>
On Sun, 2 Nov 1997, darrik mazey wrote:
> i recently downloaded the gurusamy sarathy binary distribution of perl
> 5.004_002 and for some reason winzip 6.2 won't extract it. it says it
> is an invalid archive file. what can i use to decompress it, if winzip
> won't do it?
Probably it was inadvertently downloaded in ascii mode, rather than
binary. (Or, perhaps the download was garbled in some other way.) I'd try
the download again. Good luck!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: 2 Nov 1997 21:00:02 GMT
From: "James Landers" <jlanders@execpc.com>
Subject: HELP! Returning Values back to orig page??
Message-Id: <01bce7d1$ea6fae20$652bcfa9@Pjlanders.execpc.com>
Could some one please help me...
I have a Perl Script that I need to run from a click button on a web page.
I use ASP pages. I need to return a value set in the Script back to the
originating page and put the value into a text box. How can I do this??
Please help as soon as possible!!!!
Thanks
--
James Landers
email: jlanders@execpc.com
------------------------------
Date: Sun, 02 Nov 1997 11:49:00 -0600
From: "Scot W. Jenkins" <swjenkins@ibm.net>
Subject: Is the Perl language itself Year2000 compliant
Message-Id: <345CBD0C.6AA@ibm.net>
Where I work, we're in the process of getting y2k compliance statements
from all of our software vendors. We recently compiled (from source)
perl 5.004 under HPUX 10.20. I'm wondering if any of the perl
developers can tell us are the perl executables we compiled y2k
compliant assuming we compiled under y2k compliant HPUX?
--
Scot W. Jenkins
swjenkins@ibm.net
------------------------------
Date: Sun, 2 Nov 1997 14:17:52 -0500
From: phenix@interpath.com (John Moreno)
Subject: Re: Is the Perl language itself Year2000 compliant
Message-Id: <19971102141221107168090N@roxboro-184.interpath.net>
Scot W. Jenkins <swjenkins@ibm.net> wrote:
] Where I work, we're in the process of getting y2k compliance
] statements from all of our software vendors. We recently compiled
] (from source) perl 5.004 under HPUX 10.20. I'm wondering if any of
] the perl developers can tell us are the perl executables we compiled
] y2k compliant assuming we compiled under y2k compliant HPUX?
Read the faq (uder Data Manipulation) - or the rest of this thread.
--
John Moreno
------------------------------
Date: Sun, 02 Nov 1997 17:37:19 -0400
From: Kyle Adams <frogkisser@geocities.com>
Subject: Newbie: CGI incantations for Mac
Message-Id: <345CF28B.C056F66D@geocities.com>
What incantations need to go before the #/whatever/bin/perl line for
MacPerl CGI scripts? I'm running the freeware server Quid Pro Quo 2.0
which should support the same cgi stuff as MacHTTP or WebStar. Thanks!
Kyle
k_adams@rocketmail.com
------------------------------
Date: Sun, 02 Nov 1997 16:09:07 GMT
From: ngrp@q-d.com (Dave V.)
Subject: Re: Passing HTML Forms to IMAP4/POP3
Message-Id: <345ca216.106113554@news.intac.com>
Jerry,
WebForms 2.6 might be of some help to you. It will
create your forms (CGI or mailto) and Perl scripts if
necessary, and import your responses from your POP3 mailbox
directly into an MS-Access database on your hard drive
(MS-Access not required). It includes many other features,
like Field Validation, Scrolling Status Bar Messages, form
submission confirmation messages, and redirection (sending
visitors to another page after submitting).
Also try WebMania 2.0a, our full-featured HTML editor.
WebMania's Forms Wizard has most of WebForms' features, and
WebMania includes a Spell-checker, Frame Wizard, Image Map
Wizard, and much more.
You can download either of these programs from our web
site at http://www.q-d.com .
On Mon, 27 Oct 1997 09:22:16 -0600, sysdev5@hotmail.com wrote:
>Is it possible to submit HTML form content to an IMAP4/POP3 server either
>directly from a browser or through the use of an intermediary PERL module
>or other code?
>
>Please reply to jerome.bradenbaugh@firstunion.com
>
>
>Thanks in advance.
>
>
>
>Jerry Bradenbaugh
>First Union National Bank
>
>-------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
Thanks,
Dave V.
Q&D Software - http://www.q-d.com
Creators of WebForms, WebMania, and Adaptable Applets
=======================================================
For the best SHAREWARE on the Net, check out:
** The Shareware Central Interactive Catalog **
** http://www.q-d.com/swc.htm **
=======================================================
------------------------------
Date: Sun, 2 Nov 1997 08:57:49 -0800
From: "Allen Evenson" <ase@seanet.com>
Subject: Re: Perl for NT and ARGV parameters
Message-Id: <63ibdk$bcb@q.seanet.com>
=20
>
>Have you tried:
>
> perl -x -S %0 %*
>
>It seems to work better under Windows NT but I don't know if it
>work prior to that.
>--
>Tye McQueen Nothing is obvious unless you are overlooking something
> http://www.metronet.com/~tye/ (scripts, links, nothing fancy)
> Remove d's from address to reply (sorry for the inconvenience).
Doesn't work on Win95. :(
Thanks for the reply anyway
--------
Allen S. Evenson
<ase@seanet.com>
------------------------------
Date: 2 Nov 97 20:50:47 GMT
From: t92mas@sabik.tdb.uu.se (Magnus Soederman)
Subject: PHP version 3 alpha released
Message-Id: <345ce7a7.0@newsfeed.uu.se>
This message is not about Perl, but i think many of you
in this newsgroup will be interested.
PHP 3.0 is a Perl-like language that can be configured as an
Apache module, and is therefore a good tool for creating
CGI-scripts. The language is interprented (Perl is pre-compiled)
which makes it small and fast.
The current version is an *alpha* version and should NOT be run
on an production server yet. A beta version will be released in
a couple of weeks. Have a look at it:
http://www.lerdorf.on.ca/php3/ Version 3
http://php.netvision.net.il/ Version 3
http://php.iquest.net/ Version 2
Changes between PHP 2 and PHP 3:
http://php.netvision.net.il/changes.php3
PHP is an acronym for Professional Home Pages
--------------------------------------------------------------------
Here is the introduction to PHP2:
PHP/FI is a server-side html-embedded scripting language. It lets you write
simple scripts right in your .HTML files much like JavaScript does, except,
unlike JavaScript PHP/FI is not browser-dependant. JavaScript is a client-side
html-embedded language while PHP/FI is a server-side language. PHP/FI is
similar in concept to Netscape's LiveWire Pro product, or Microsoft's ASP
(Active Server Pages) although PHP actually predates both.
Before starting a project based on PHP/FI I would encourage you to investigate
both LiveWire and ASP. If you know how to program in Perl and run an Apache
web server, have a look at mod_perl. My general rule of thumb for choosing
between Perl and PHP is:
If the page is HTML-heavy, choose PHP.
If the page is Script-heavy, choose Perl.
Assuming of course you know and like Perl. For simple database-enabled web
projects, the speed and simplicity of PHP is very hard to beat.
Major Features
Standard CGI, FastCGI and Apache module Support
As a standard CGI program, PHP/FI can be installed on any Unix
machine running any Unix web server. With support for the new FastCGI
standard, PHP/FI can take advantage of the speed improvements gained
through this mechanism. As an Apache module, PHP/FI becomes an
extremely powerful and lightning fast alternative to CGI programmimg.
Include File
You can easily build an entire site made up using individual small
components. For example, on this page the top part of the page is
coming out of a separate header file. Changing the look and feel of this
site is as easy as editing a single file.
Pipes and Sockets
You can open pipe and socket connections to anything. That means you
can very easily send email, connect to another web page and grab
something, or communicate with some custom application and have the
results show up right in your web page.
Access Logging
With the access logging capabilities of PHP/FI, users can maintain their
own hit counting and logging. It does not use the system's central access
log files in any way, and it provides real-time access monitoring. The
Log Viewer Script provides a quick summary of the accesses to a set of
pages owned by an individual user. In addition to that, the package can
be configured to generate a footer on every page which shows access
information. See the bottom of this page for an example of this.
Access Control
A built-in web-based configuration screen handles access control
configuration. It is possible to create rules for all or some web pages
owned by a certain person which place various restrictions on who can
view these pages and how they will be viewed. Pages can be password
protected, completely restricted, logging disabled and more based on the
client's domain, browser, e-mail address or even the referring document.
mSQL Support (version 1.0.x and 2.0.x)
mSQL is a simple and lightweight SQL Engine for Unix systems. PHP/FI
provides support for embedded SQL right from a .html file. There is no
simpler way of building a database-enabled web page system than with
the combination of mSQL or one of the other supported RDBMS
packages and PHP/FI.
Postgres Support
Postgres is an advanced free RDBMS. PHP/FI supports embedding
Postgres95 and PostgreSQL SQL queries directly in .html files.
MySQL Support
MySQL is an advanced free (for non-commercial use) RDBMS. PHP/FI
supports embedding mysql SQL queries directly in .html files.
Solid Support
Sybase Support
Sybase is a commercial RDBMS. PHP/FI supports embedding Sybase
SQL queries directly in .html files.
Oracle Support
Oracle is a commercial RDBMS. PHP/FI supports embedding Oracle
SQL queries directly in .html files.
Illustra Support
Illustra is a commercial RDBMS. PHP/FI supports embedding Illustra SQL
queries directly in .html files.
Adabas Support
Adabas D is an advanced RDBMS that is available on many platforms. A
special version, the so called Personal Edition is available for Linux and
Win32 at no cost. It is resticted to 5 simulataneous users and 100 MB of
data. For more information on Adabas D refer to
http://www.softwareag.com.
Filepro Support
Filepro is a commercial RDBMS. PHP/FI supports embedding Filepro
queries directly in .html files.
ODBC Support
ODBC is a database independant method for sending queries. PHP/FI
supports embedding ODBC queries directly in .html files.
DBM Support
DBM files are heavily used in Unix environments and provides a simple
mechanism for storing hash key - content pair combinations that can
then quickly be looked up. PHP/FI supports the standard set of dbm
access functions.
RFC-1867 File Upload Support
File Upload is a new feature in Netscape 2.0. It lets users upload files to
a web server. PHP/FI provides the actual Mime decoding to make this
work and also provides the additional framework to do something useful
with the uploaded file once it has been received.
HTTP-based authentication control
PHP/FI can be used to create customized HTTP-based authentication
mechanisms for the Apache web server.
Variables, Arrays, Associative Arrays
PHP/FI supports typed variables, arrays and even Perl-like associative
arrays. These can all be passed from one web page to another using
either GET or POST method forms.
Conditionals, While Loops
PHP/FI supports a full-featured C-like scripting language. You can have
if/then/elseif/else/endif conditions as well as while loops and switch/case
statements to guide the logical flow of how the html page should be
displayed.
Extended Regular Expressions
Regular expressions are heavily used for pattern matching, pattern
substitutions and general string manipulation. PHP/FI supports all
common regular expression operations.
Raw HTTP Header Control
The ability to have web pages send customized raw HTTP headers
based on some condition is essential for high-level web site design. A
frequent use is to send a Location: URL header to redirect the calling
client to some other URL. It can also be used to turn off cacheing or
manipulate the last update header of pages.
On-the-fly GIF image creation
PHP/FI has support for Thomas Boutell's GD image library which makes it
possible to generate GIF images on the fly.
ISP "Safe Mode" support
PHP/FI supports a unique "Safe Mode" which makes it safe to have
multiple users run PHP scripts on the same server.
Win95/NT Support
A PHP/FI binary is available that can run as a CGI under most Win95/NT
web servers. Efforts are underway to build a full ApacheNT mod_php
module with full ODBC support.
It's Free!
One final essential feature. The package is completely free. It is licensed
under the GPL which allows you to use the software for any purpose,
commercial or otherwise. See the GNU Public License document for
complete details.
Credits
Large parts of this code were developed at and for the
University of Toronto. Many thanks to Lee Oattes of the
Network Development Department at the university for
constant constructive criticism.
The Postgres95 support code was written by Adam
Sussman <asussman@vidya.com>
The Sybase support code was written by
<MA_Muquit@fccc.edu>
The Solid support code was written by Jeroen van der
Most <jvdmost@digiface.nl>
The Illustra support code was written by
<simon@oyster.co.uk>
The Oracle support code was written by
<ssb@guardian.no>
Countless others have helped test and debug the package.
------------------------------
Date: Sun, 02 Nov 1997 23:38:59 +0100
From: Nicco <niccotnt@mbox.vol.it>
Subject: Problems with H2ph
Message-Id: <345D0103.B01DDCEE@mbox.vol.it>
--------------257BE79C0B75BE296362CA30
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello everybody,
does anyone can help me? I need two libraries in my perl-program:
<sys/ipc.ph> and <sys/sem.ph>.
I converted the ipc.h and sem.h libraries, and all the others, using the
H2Ph tool. But when I call the libraries in my program (require
"sys/ipc.ph"; require "sys/sem.ph"), the compiler finds many errors, due
to the
fact that the h2ph tool doesn't work correctly. Where can I find all the
*.ph files without errors?
Where can I find the original *.ph files? (Without using converting
utilities?)
I hope that someone will reply soon...
Thank you.
Nicco
--------------257BE79C0B75BE296362CA30
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Hello everybody,
<BR>does anyone can help me? I need two libraries in my perl-program: <sys/ipc.ph>
and <sys/sem.ph>.
<BR>I converted the ipc.h and sem.h libraries, and all the others, using
the H2Ph tool. But when I call the libraries in my program <I>(require
"sys/ipc.ph"; require "sys/sem.ph"),</I> the compiler finds many errors,
due to the
<BR>fact that the h2ph tool doesn't work correctly. Where can I find all
the *.ph files without errors?
<BR>Where can I find <U>the original *.ph files</U>? (Without using converting
utilities?)
<P>I hope that someone will reply soon...
<BR>Thank you.
<P><I>Nicco</I></HTML>
--------------257BE79C0B75BE296362CA30--
------------------------------
Date: 2 Nov 1997 19:11:54 GMT
From: toutatis@_SPAMTRAP_toutatis.net (Toutatis)
Subject: Re: Problems with unshift and @LoL
Message-Id: <toutatis-ya023180000211972011560001@news.euro.net>
Koos Pol <Koos_Pol@bigfoot.com> wrote:
> @LoL = ( [a,b,c] , [1,2,3] , [yes,no,maybe] )
> $aref = $LoL->[0]
>
> If I pass $aref to a function, how can I unshift the array -[a,b,c]- ?
unshift @$aref
--
Toutatis
------------------------------
Date: Sun, 02 Nov 1997 20:45:18 GMT
From: anderst@XISPX.se (Anders Thelemyr)
Subject: Real Newbie Question
Message-Id: <345de52f.24501743@news.algonet.se>
I am the mother of newbies when it comes to cgi(perl) programming...
Could someone please explain [to a layman like me] this whole thing about
perl modules and web servers for Win95?
Is there something like cuting and pasting code [modules] and building
applications?
Since I guess noone will have the time to spend writing me a reply: Is
there a a FAQ for me to read somewhere?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
A Message From Anders Thelemyr
* Change "XISPX" to "algonet" in my return address when emailing
** About BIK!: http://www.swehockey.se/boden/
*** Hockey Norrland: http://www.algonet.se/~anderst/hockeynorrland/
------------------------------
Date: Sun, 02 Nov 1997 15:42:50 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: What to do with Bitwise operators?
Message-Id: <comdog-ya02408000R0211971542500001@news.panix.com>
In article <slrn65nud6.5a2.tmalloy@boley.escape.com>, tmalloy@boley.escape.com () wrote:
>Hi. First, I am beginner just learning perl. Can someone provide
> an explaination of the practical use of bitwise operators.
> ( &, |, ^, ~, <<,>>)
>Please note that I am not asking for an explaination of what the operators
> do. I can read. It is just difficult for me to envision any practical
> use for them. In what situation might I need to use them They must have
> some utility. I just don't see it. I would like to understand.
there have already been some example given, but i'll add another just
for a different perspective.
let's pretend that i am interfacing with some machine that has eight
different binary states, each of which can be toggled on or off. (there
is nothing special about eight other than it will allow me to use one
byte in this example).
since each state only needs one bit to represent it, i won't waste an
entire byte on it. this means i can cram the information for all
eight states into one byte, that that is what gets sent over the
wire.
suppose we have a byte with a bit order like
1 1 0 1 0 0 1 1
and we want to switch all of the states. an XOR with 11111111 (called
the mask) flips every bit. the result is
0 0 1 0 1 1 0 0
or i can XOR with other masks (11110000, for instance) to flip only some
bits. the most common case might be to toggle only one state with a
mask like 00010000.
once you understand this example, it should be easy to see how you
might use the other operators in the same situation. i've never had a
use for them outside of hardware interfacing though :)
--
brian d foy <comdog@computerdog.com>
NY.pm - New York Perl M((o|u)ngers|aniacs)* <URL:http://ny.pm.org/>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
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 1262
**************************************