Re: [PHP] Perl & PHP output format mismatching

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 4:21 am, [EMAIL PROTECTED] wrote: > I'm currently writing a PHP page, which uses a small Perl script. But > I > encounter an annoying problem with endline character. > > A small example : > > $perl = new Perl(); > $perl->eval('print "toto\ntata"'); Your apostrophes in PHP don'

Re: [PHP] Perl & PHP output format mismatching

2006-05-15 Thread chris smith
On 5/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I'm currently writing a PHP page, which uses a small Perl script. But I encounter an annoying problem with endline character. A small example : $perl = new Perl(); $perl->eval('print "toto\ntata"'); In this configuration, the HTM

[PHP] Perl & PHP output format mismatching

2006-05-15 Thread mickb
Hello, I'm currently writing a PHP page, which uses a small Perl script. But I encounter an annoying problem with endline character. A small example : $perl = new Perl(); $perl->eval('print "toto\ntata"'); In this configuration, the HTML page generated sends me : toto tata Of course and you sh

RE: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-11 Thread Adam Voigt
? Kelvin -Original Message- From: Frank M. Kromann [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:35 AM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] PERL/PHP, MSSQL

RE: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-11 Thread Poon, Kelvin (Infomart)
: Re: [PHP] PERL/PHP, MSSQL, Unix AIX Hi Kelvin, You can use both PERL and PHP (prefered :-)). You need to download, compile and install FreeTDS (http://freetds.org). If you are using PHP you need to recompile it using --with-mssql. This will enable the mssql extension. You can then create a php

Re: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-09 Thread Frank M. Kromann
Hi Kelvin, You can use both PERL and PHP (prefered :-)). You need to download, compile and install FreeTDS (http://freetds.org). If you are using PHP you need to recompile it using --with-mssql. This will enable the mssql extension. You can then create a php script to read the text file, parse it

Re: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-09 Thread Frank M. Kromann
Hi Kelvin, You can use both PERL and PHP (prefered :-)). You need to download, compile and install FreeTDS (http://freetds.org). If you are using PHP you need to recompile it using --with-mssql. This will enable the mssql extension. You can then create a php script to read the text file, parse it

[PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-07 Thread Poon, Kelvin (Infomart)
Hi, I got a little project and I need to come up with a solution on how to finish it and was hoping if you guys can give me any ideas. I have a PERL script on a Unix AIX machine that checks for incoming update of data. Specificly what it does is, when it runs, it will look at the corresponding d

RE: [PHP] Perl > PHP

2003-01-05 Thread Mark Charette
The first line of the script had the magic incantation: #!/usr/local/bin/perl (or something very similar) which makes the leading 'perl' superfluous. PHP scripts can be made into "self executing" scripts in a similar fashion if the 1st line looks like: #!/path/to/the/php/command/line/executable

Re: [PHP] Perl > PHP

2003-01-05 Thread Jurre Thiel
Sorry, i didn't think of that. I still think exec('perl perl.pl'); does the job, not exec('perl.pl'); "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Jurre Thiel wrote: > > >That doesn't make any sense and has nothing to do with Perl, since

Re: [PHP] Perl > PHP

2003-01-05 Thread Marek Kilimajer
Jurre Thiel wrote: That doesn't make any sense and has nothing to do with Perl, since PHP will magically convert perl.pl to 'perl.pl'. I think perl will be magically converted to perl and pl to pl, and those two strings concatenated together using . inbetween will be perlpl -- PHP Ge

Re: [PHP] Perl > PHP

2003-01-05 Thread Jurre Thiel
That doesn't make any sense and has nothing to do with Perl, since PHP will magically convert perl.pl to 'perl.pl'. I think you should do something like: Assumming you are on an Unix enviroment and Perl is installed. "Leif K-Brooks" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news

Re: [PHP] Perl > PHP

2003-01-04 Thread Leif K-Brooks
Not good at perl, but you need to do: Sam wrote: I don't know what the heck this is but it works: #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} .=":.:..:../lib"; $ENV{CLASSPATH} .= ":Verisign.jar:."; print `javac PFProJava.java`; print `java PFProJava test-payflow.verisignscks.com`; How can it be do

[PHP] Perl > PHP

2003-01-04 Thread Sam
I don't know what the heck this is but it works: #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} .=":.:..:../lib"; $ENV{CLASSPATH} .= ":Verisign.jar:."; print `javac PFProJava.java`; print `java PFProJava test-payflow.verisignscks.com`; How can it be done with PHP? OR run the perl script from a PHP scr

Re: [PHP] Perl -> PHP question

2002-10-24 Thread Jonathan Sharp
You either need to: 1) Set multiple cookies for each index: setCookie('session[foo]'...) setCookie('session[bar]'...) 2) Serialize/unserialize your array. setCookie('session', serialize($session_array) ); $session = unserialize($_COOKIE['session']); -js Tom Woody wrote: Did a google and arch