[PHP] A searching problem in lists
Hello, I'm not a Perl guru so I (still) have problems :-) I use the following date structure, quite classic : a list of lists. I have two instances of this structure, let's take a simple example : list 1 : [ [toto,tata],[toto,titi] ] list 2 : [ [toto,tutu],[tata,titi],[toto,titi] ] My question is : is there an efficient way to make this kind of research : I want to know if [toto,titi] from list 1 is present in list 2. Thanks for help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re : a searching problem in lists
Oops, sorry for my last mail. Not the good mailing-list :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Perl PHP output format mismatching
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 should have understood already :-), I would like : toto tata I suppose I have to do a little manipulation on the PHP streams to make them correctly interpret the endline character returned by Perl. But I didn't find what :( Help would be greatly appreciated. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP stdout stream
Hello, I've a quite simple question : one of my PHP script executes a Perl script which outputs a lot of text. My wish is to redirect PHP stdout stream to NULL, executing the perl script, and after this make the stdout stream back to normal. I've not found a solution in online documentation. Anyone could provide help ? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP output stream
Thanks for your answer. I already have thought about your solution. The problem is I have to use the Perl module for PHP. An example : $perl = new Perl(); $perl-require('mct.pl'); $perl-MCT_polling(); where MCT_polling() is a function of my script mct.pl. I would find very strange the fact it's impossible to manipulate PHP stdout stream. [EMAIL PROTECTED] a #65533;crit : Hello, I've a quite simple question : one of my PHP script executes a Perl script which outputs a lot of text. My wish is to redirect PHP stdout stream to NULL, executing the perl script, and after this make the stdout stream back to normal. I've not found a solution in online documentation. Anyone could provide help ? hi, if your php and perl runs on unix : system (perl perl_prg.pl /dev/null); N F thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP output stream
[EMAIL PROTECTED] a #65533;crit : Thanks for your answer. I already have thought about your solution. The problem is I have to use the Perl module for PHP. An example : $perl = new Perl(); $perl-require('mct.pl'); $perl-MCT_polling(); where MCT_polling() is a function of my script mct.pl. I would find very strange the fact it's impossible to manipulate PHP stdout stream. can't you edit the mct.pl script so the MCT_polling function won't output anything ? N F It's a solution indeed, but very annoying for multiples reasons. If I can't find another way, I won't have the choice... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php