spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / perl / tutorial / 5

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

PerlHoo, Part III

Installation

First, I'm making the assumption that you've already installed perlhoo.pl. If not, you will want to go back and read PerlHoo Part I and Part II. The source can be had from here. You'll need Perl 5.004 or greater installed on your system along with the the Text::CSV_XS module.

On a win32 system that has the latest version of Perl from Activestate:
ppm install Text-CSV_XS

On any system that has the CPAN module installed (which comes with Perl):
perl -MCPAN -e 'install Text::CSV_XS' to download, compile, and install the module.

Next, install phadmin.pl in a secured CGI directory. I intended to build authentication into the script, but ran out of time. It's important that you not put this script in a directory that's publicly accessible unless you really want anyone to edit your Web directory. I recommend adding another CGI directory that's also setup to require Web server authentication. If you don't have control of your server, you're SOL until I add authentication. Of course, you could use Microsoft's security model, security through obscurity, and hope no one becomes the wiser.

Ok, you're almost done. All you have to do now is change two variables in the script. On lines 32-33, change $rootdir and $baseurl to the full local path of your directory data and the URL of the phadmin.pl script. If it doesn't work for you, send me some feedback and I'll see if I can help. If you do send me feedback, please don't ask dumb questions, and make sure to include your OS, Perl version, and error messages, if any. The easiest way to do this is to type perl -V from the command line.

That should get you up and running. Now let's pop the hood and take a look at the magic and grease inside.


home / experts / perl / tutorial / 5

http://www.internet.com

Produced by Jonathan Eisenzopf and

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Created: July 1, 1999
Revised: July 2, 1999

URL: http://www.webreference.com/perl/tutorial/5/