Re: [PHP] Lucene library

2012-12-11 Thread Louis Huppenbauer
There's Zend_Search_Lucene, part of the Zend framework. I think it should be possible to use it without the whole framework though. http://framework.zend.com/manual/1.12/de/zend.search.lucene.html 2012/12/12 Larry Garfield > Yes, I've worked with Apache Solr quite a bit. It's a separate serve

Re: [PHP] templeting

2012-09-03 Thread Louis Huppenbauer
2012/9/4 tamouse mailing lists > On Mon, Sep 3, 2012 at 8:49 PM, David McGlone wrote: > > On Monday, September 03, 2012 09:45:23 PM David OBrien wrote: > >> On Sep 3, 2012 9:15 PM, "David McGlone" wrote: > >> > Does anyone use any templeting system for any projects? If so what > would > >> > an

Re: [PHP] Re: How to use wsdl files?

2012-08-31 Thread Louis Huppenbauer
Hi there 2012/8/31 Michelle Konzack > Hello Matijn Woudt, > > Am 2012-08-30 16:44:53, hacktest Du folgendes herunter: > > You could start by looking at the PHP SoapClient [1], which takes a > > URI to a WSDL descriptor as argument. You can enter the URL to the > > WSDL file there, like this: > >

Re: [PHP] Searching IDE.

2012-06-13 Thread Louis Huppenbauer
Hi there, 2012/6/13 David Arroyo > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. > What is your opinion? > > Thanks. > Regards. > > notepad++ or netbeans. And although I haven't tried it yet, I heard the the Sublime Text Editor 2 is grea

Re: [PHP] Flat PHP projects and Firebug

2012-04-12 Thread Louis Huppenbauer
2012/4/12 Mihamina Rakotomandimby > Hi all, > > For "flat PHP" projects (I mean without framework such as Jelix or > Symfony), what Firebug logging tooldo you recommend to use? > - FirePHP? > - in-the-code Javascript console.log() generation? > - other tools? > > > These are for training project,

Re: [PHP] syntax question

2012-02-07 Thread Louis Huppenbauer
Generally... Wouldn't grouping by an id (which is normally unique) have no real benefit... Except some strange behaviour? Just to clarify: Why aren't you sticking to the LIMIT 1? 2012/2/7 > I have been struggling with this issue for an hour and honestly I am not > sure why. > > I consider mysel

Re: [PHP] Re: Preferred Syntax

2011-12-15 Thread Louis Huppenbauer
Another nice way would be sprintf. So your string really is just a string and nothing more. I don't know how it would affect performance, but just for the eye I find it much simpler. echo sprintf("%s", $page_id, $page_name); 2011/12/15 Robert Cummings > On 11-12-15 02:50 AM, Ross McKay wrote: >

[PHP] Novice: PHP array by reference question (by C++ programmer)

2011-10-31 Thread Louis Huppenbauer
-- Forwarded message -- From: Louis Huppenbauer Date: 2011/10/31 Subject: Re: [PHP] Novice: PHP array by reference question (by C++ programmer) To: Manish Gupta You have to assign the value by reference too public function __construct(& $bar) { $this->_bar

Re: [PHP] PHP/ Soap issue

2011-09-01 Thread Louis Huppenbauer
I think it would be best if you could provide us with the .wsdl (and possibly with the server-code). 2011/9/1 richard gray > I am hoping there's a SOAP expert on the list as this is driving me mad and > Google doesn't come up with much help ... > > I am trying to build a fairly simple web servic

Re: [PHP] Re: mysqli sql question

2011-08-31 Thread Louis Huppenbauer
Hi there Richard It's part of the prepared statements http://php.net/manual/de/pdo.prepared-statements.php ;) 2011/8/31 Richard Riley > "Jen Rasmussen" writes: > > > Peet, > > > > Could you do something like this instead? This is using named > placeholders > > and a separate line for your stat

Re: [PHP] correct character decoding

2011-08-30 Thread Louis Huppenbauer
Why don't you just check if the string is utf8 or not, and change convert it accordingly? $out = trim((mb_detect_encoding($input, 'UTF-8', 'ISO-8859-1') == 'UTF-8' ? $input : utf8_encode($input))); It may not be the most elegant version, but I can't think of anything simpler right now. sincerely

Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread Louis Huppenbauer
got the same problem today mayhabs gmail had a small problem... who knows ;) 2011/7/20 Lester Caine > Tamara Temple wrote: > >> Um... what's going on here? Why would google mail be bouncing?? >> > Happens quite often ... just means that an email server has hickupped > somewhere so an email addre

Re: [PHP] Foreach question

2011-07-05 Thread Louis Huppenbauer
Just use count($arr) in your for-header, as it get's executed again for each loop. 1), array('id'=>2)); for($i=0;$i $arr[$i]['id']+1); } } ?> 2011/7/5 Robert Cummings : > On 11-07-05 10:48 AM, Dajka Tamás wrote: >> >> Thanks, that was interesting :) I think I got o

Re: [PHP] Foreach question

2011-07-05 Thread Louis Huppenbauer
I don't think that it does this: if ( count($elements) == 1 ) then loop 1; else loop normally; It's probably more something like that: $i=count($elements); loop: $i--; if($i == 0) $last_loop = true; else $last_loop = false if($last_loop) exit; else goto loop; But aside from tha

Re: [PHP] Foreach question

2011-07-05 Thread Louis Huppenbauer
Or maybe he tried to do the following? ($c['id'] + 1)); } } ?> 2011/7/5 Robert Cummings : > > On 11-07-05 09:40 AM, Dajka Tamas wrote: >> >> Hi all, >> >> >> >> I've bumped into an interesting thing with foreach. I really don't know, >> if >> this is normal working, or why it is,

Re: [PHP] Foreach question

2011-07-05 Thread Louis Huppenbauer
Hi there I think that foreach in your first example just knowns that this should be the last loop (as the array only contains 1 element at start) and so stops there. In your 2nd example however the first loop isn't the last, so the array get's checked again, and now there's another element, so...

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
etween client > and web-server. So: > 1. send the original request > 2. receive the 302 response > 3. send the request for alternative url > 4. web-server checks the referrer of the request received and sends an > answer needed, so you receive a response which guides your client

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
net'); > } > > > Richard L. Buskirk > > -Original Message- > From: Louis Huppenbauer [mailto:louis.huppenba...@gmail.com] > Sent: Friday, June 24, 2011 3:05 AM > To: php-general@lists.php.net > Subject: [PHP] Manipulate Request Headers after Redirect >

[PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
Hi there! I just have a small question concerning the http-protocol and php (and in specific the header-function, i think). Is it possible to manipulate the headers for the request which is sent after a 302-header? eg: Response: header('Referer: example.com'); header('Location: example.net');

Re: [PHP] Re: File Upload Problem

2011-04-10 Thread Louis Huppenbauer
Is there already a file with the same name? Apparently copy won't overwrite a file on windows if it already exists. Maybe you have the same problem ffproberen2 at dodgeit dot com had on the php.net/move_uploaded_file manpage? 2011/4/10 tedd : > At 7:15 AM +0200 4/7/11, Wojciech Kupiec wrote: >> >

Re: [PHP] Please help with glob

2011-04-04 Thread Louis Huppenbauer
Hi there Since glob is actually a part of the core - Are you absolutely sure that you're running PHP > 4.3 2011/4/5 Al Mangkok : > Hi everyone, > I am very new to PHP and trying to learn the glob() function. I copied > the example on php.net : > > foreach (glob("*.txt") as $filename) { >    echo

Re: [PHP] File locking with PHP functions

2011-04-04 Thread Louis Huppenbauer
It may not be a direct answer to your question, but... You could just use flock() to lock the file while accessing it. louis 2011/4/4 Paul M Foster : > I'd like to know (from someone who knows the internals more than I do) > whether the following functions lock files and to what extent: > > fopen

Re: [PHP] date problem

2011-04-02 Thread Louis Huppenbauer
Just try "of March". Worked for me. print "first: ".date("d-m-Y H:i:s",strtotime('first Tuesday of March 2011'))."\n"; print "second: ".date("d-m-Y H:i:s",strtotime('second Tuesday of March 2011'))."\n"; print "third: ".date("d-m-Y H:i:s",strtotime('third Tuesday of March 2011'))."\n"; print "fou

Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-01 Thread Louis Huppenbauer
You could just periodically ping those remote machines with a system()-call, and then write the result to a file. 2011/4/1 Santosh gunat : > Hi, > > I am in a big problem, > > My manager gave a task, > He want a PHP scrip which will check if the remote machines are Powered on > and are running. >

Re: [PHP] Issue with Quick Email validation

2011-03-10 Thread Louis Huppenbauer
try != instead of ==, that should do the trick. 2011/3/10 : > Hi, > I'm newbie to PHP and this list, possible not a new question so forgive me if > it's a repeat > I have a form where I want the submitter Email ID to only be from one domain > > Here's the part I'm having issues with > >