attached CGI to remove special characters.

2001-02-14 Thread John W Ford

Hello List,

I mentioned that I'd fixed my problem with the special characters. Everybody
had some great tips... I like to use Adobe Go Live to design web pages and
it has a text editor that leaves file in the right format... so I just used
it to save the files. If you use NOTEPAD or many others... they will not
save them properly.

I asked Sim Ayers about my problem.. (he's the one who sold me the great
scripts.) He sent me the attached CGI script that will remove them
automatically... I haven't used it... but thought I'd share it with the
list.

BE CAREFUL... it will remove them from every file that is in the directory
and all sub directories. RECURSIVE!!!

Just make you a special directory under your cgi-bin and then you can run
this program by pointing to it on the command line of your browser... it has
some commands in it that will tell you about errors if you do it this way.

Again... thanks for all the help.
John Ford


HIS ORIGINAL MESSAGE TO ME FOLLOWS..
__
John,

Perl Studio will always save the file in the Windows CR -LF style.

Run the attached file in the directory you have the scripts.
It will replace all the Window line feeds with a Unix line feed.

Run it in a test directory first. It will recurse into subdirectories.

Sim


-Original Message-
From: John W Ford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:25 AM
To: Sim Ayers
Subject: how do I


Hello Sim,

I've spent all day... My problem is the line feed character after each line.

How do I make perl-studio save files without the windows line feed - but
save the file in unix format.

Thanks.
John Ford



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


RE: special characters messing me up

2001-02-13 Thread John W Ford

Thanks everybody for helping me out... I got the scripts loaded and am
talking to mySQL via DBI now.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 G. Adam Stanislav
 Sent: Tuesday, February 13, 2001 6:36 AM
 To: John W Ford; Mysql
 Subject: Re: special characters messing me up


 At 23:04 12-02-2001 -0800, John W Ford wrote:
 I can't figure out why my windows machine leaves "^M" character
 at the end
 of each line of code. This causes the file to be messed up when
 I put it on
 the Linux server.

 That's a carriage return. DOS/Windows ends a line with a carriage return
 followed by a line feed. Unix ends a line with a line feed only.

 You can easily convert between DOS/Windows and Unix files using "tuc"
 which you can find in the /unix/tuc/ directory of ftp://ftp.int80h.org .

 Just download tuc.exe for Windows, or the .tar.gz file for Unix.

 Adam

 ---
 Whiz Kid Technomagic - brand name computers for less.
 See http://www.whizkidtech.net/pcwarehouse/ for details.

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




special characters messing me up

2001-02-12 Thread John W Ford

I can't figure out why my windows machine leaves "^M" character at the end
of each line of code. This causes the file to be messed up when I put it on
the Linux server.

It makes my perl interpreter look for a file named ^M after the very first
line.

#!/usr/sbin/perl

also... what else I can't figure out is why this special character is
sometimes hidden and sometimes visible in my Emacs program in Linux... this
is the program I used in which I found the problem.

anybody know?

John Ford



RE: install help - FREE cordless phone.

2001-02-11 Thread John W Ford

I got connected finally... actually I've connect several times but each time
something else happens that changes things.

I typo'd the myslq.sock line in the /etc/my.cnf file

but... I need to make sure my DBI is installed correctly.

I followed the instructions based on the manual... but do not understand if
these modules are supposed to reside in the perl base directory or not.

the manual keeps talking about what to do if you don't have system directory
access... but I do!

Please let me know what directory I should run these commands from... I
don't understand if these commands actually change the perl interpreter...
or if they just put these modules where they can be found by the perl
interpreter. If you can help.. thanks...


The Perl distributions are provided as compressed tar archives and have
names like `MODULE-VERSION.tar.gz', where MODULE is the module name and
VERSION is the version number. You should get the Data-Dumper, DBI, and
Msql-Mysql-modules distributions and install them in that order. The
installation procedure is shown below. The example shown is for the
Data-Dumper module, but the procedure is the same for all three
distributions:

Unpack the distribution into the current directory:
shell gunzip  Data-Dumper-VERSION.tar.gz | tar xvf -

This command creates a directory named `Data-Dumper-VERSION'.
Change into the top-level directory of the unpacked distribution:
shell cd Data-Dumper-VERSION

Build the distribution and compile everything:
shell perl Makefile.PL
shell make
shell make test
shell make install

The make test command is important because it verifies that the module is
working. Note that when you run that command during the Msql-Mysql-modules
installation to exercise the interface code, the MySQL server must be
running or the test will fail.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php