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 la...@garfieldtech.com Yes, I've worked with Apache Solr quite a bit.

Re: [PHP] templeting

2012-09-04 Thread Louis Huppenbauer
2012/9/4 tamouse mailing lists tamouse.li...@gmail.com On Mon, Sep 3, 2012 at 8:49 PM, David McGlone da...@dmcentral.net wrote: On Monday, September 03, 2012 09:45:23 PM David OBrien wrote: On Sep 3, 2012 9:15 PM, David McGlone da...@dmcentral.net wrote: Does anyone use any templeting

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

2012-08-31 Thread Louis Huppenbauer
Hi there 2012/8/31 Michelle Konzack linux4miche...@tamay-dogan.net 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

Re: [PHP] Searching IDE.

2012-06-13 Thread Louis Huppenbauer
Hi there, 2012/6/13 David Arroyo darr...@gmail.com 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

Re: [PHP] Flat PHP projects and Firebug

2012-04-12 Thread Louis Huppenbauer
2012/4/12 Mihamina Rakotomandimby miham...@rktmb.org 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

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 ad...@buskirkgraphics.com I have been struggling with this issue for an hour and honestly I am not sure

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(a style='text-align:left;size:**14;font-weight:bold' href='/mypage.php/%d'%s/abr, $page_id,

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

2011-10-31 Thread Louis Huppenbauer
-- Forwarded message -- From: Louis Huppenbauer louis.huppenba...@gmail.com Date: 2011/10/31 Subject: Re: [PHP] Novice: PHP array by reference question (by C++ programmer) To: Manish Gupta gman...@gmail.com You have to assign the value by reference too public function

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 r...@richgray.com 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

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 rile...@googlemail.com Jen Rasmussen j...@cetaceasound.com writes: Peet, Could you do something like this instead? This is using named placeholders

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.

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 les...@lsces.co.uk 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

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] Foreach question

2011-07-05 Thread Louis Huppenbauer
Or maybe he tried to do the following? ?php foreach ( $cats as$c ) { echo $c['id']; if ($c['id'] 5) { $cats[] = array('id' = ($c['id'] + 1)); } } ? 2011/7/5 Robert Cummings rob...@interjinn.com: On 11-07-05 09:40 AM,

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

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. ?php $arr = array(array('id'=1), array('id'=2)); for($i=0;$icount($arr);$i++) { echo $arr[$i]['id']; if($i 6) { $arr[] = array('id' =

[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] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
-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 Hi there! I just have a small question concerning the http-protocol and php

Re: [PHP] Manipulate Request Headers after Redirect

2011-06-24 Thread Louis Huppenbauer
and sends an answer needed, so you receive a response which guides your client To achieve that you need an access to the server-side application. Let me know if that's any help. On 24 June 2011 08:37, Louis Huppenbauer louis.huppenba...@gmail.com wrote: Thanks for your response, but I don't

Re: [PHP] Re: File Upload Problem

2011-04-11 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 tedd.sperl...@gmail.com: At 7:15 AM +0200 4/7/11,

Re: [PHP] Please help with glob

2011-04-05 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 almang...@gmail.com: Hi everyone, I am very new to PHP and trying to learn the glob() function. I copied the example on php.net : ?php foreach (glob(*.txt) as

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 pa...@quillandmouse.com: I'd like to know (from someone who knows the internals more than I do) whether the following functions lock files and to

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 fourth: .date(d-m-Y

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 santoshgu...@gmail.com: 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

Re: [PHP] Issue with Quick Email validation

2011-03-10 Thread Louis Huppenbauer
try != instead of ==, that should do the trick. 2011/3/10 rob...@myself.com: 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