[PHP] Using array_intersect with an unknown number of arrays

2010-05-06 Thread robert mena
Hi, I have a result set coming from a database that can be of the form below $lines = array(0 = array('idA' = 1, 'idU' = 1), 1 = array('idA' = 1, 'idU' = 2), 2 = array('idA' = 2, 'idU' = 1), 3 = array('idA' = 2, 'idU' = 2), 4 =

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-28 Thread robert mena
SoapUI) without a problem. Is there anyone using SoapClient (or Zend_Soap_Client) with auth with success? What other library (that does not use SoapClient) could I try? On Mon, Jun 28, 2010 at 6:27 AM, Richard Quadling rquadl...@gmail.comwrote: On 26 June 2010 23:46, robert mena robert.m

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
specifically. On Tue, Jun 29, 2010 at 7:23 AM, Richard Quadling rquadl...@gmail.comwrote: On 28 June 2010 22:37, robert mena robert.m...@gmail.com wrote: Hi, I'll have a look. I am using Zend Framework's Zend_Soap_Client which in turn uses SoapClient. I'll try to use SoapClient directly. I

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
directly gives me the same result. On Tue, Jun 29, 2010 at 9:41 AM, Richard Quadling rquadl...@gmail.comwrote: On 29 June 2010 13:58, robert mena robert.m...@gmail.com wrote: I was hoping for a userland soap library (like nuSoap if I understand correctly). I can't change the fact that the remote

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
. On Tue, Jun 29, 2010 at 5:18 PM, Richard Quadling rquadl...@gmail.comwrote: On 29 June 2010 20:53, robert mena robert.m...@gmail.com wrote: Hi Richard, Thanks for taking the time. Unfortunately I can't give you access to the actual webservice. I am using Zend_Soap_Client so my code

[PHP] Invalid chars in XML

2010-09-20 Thread robert mena
Hi, I am trying to parse a XML file with simplexml_load but it gave me error. While inspecting the contents I found a inside the value of a tag. tagsomething something/tag. After I've removed the everything went fine. So which chars I should not put in my file? Should I use some

[PHP] Problems converting strings with 0 to integer

2010-11-03 Thread robert mena
Hi, I have a text file (utf-8 encoded) which contains lines with numbers and text separated by \t. I need to convert the numbers that contains 0 (at left) to integers. For some reason one line that contains 0002 is casted to 0 instead of 2. Bellow the output of the cast (int) $field[0]

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread robert mena
Hi, The core of the code is simply $fp = fopen('file.tab', 'rb'); while(!feof($fp)) { $line = fgets($fp); $data = explode(\t, $line); ... } So I try to manipulate the $data[X]. For example $data[0] is supposed to be numeric so I $n = (int) $data[0] One other thing if the second

[PHP] unable to allocate memory for pool (php 5.2.16)

2011-01-06 Thread robert mena
Hi, My system got upgraded with the rpm version of php 5.2.16 and since them I am getting errors with 'Unable to allocate memory for pool'. Reverting php to the older version solves the problem and while using the 5.2.16 the problems does not seem to occur with a specific pattern, i.e

[PHP] Online tests for php

2011-04-13 Thread robert mena
Hi, I am trying to hire some php developers for a local taks and I need to somehow perform a triage. One of the aspects is the knowledge of PHP itself so I was wondering if there is any set of questions (multiple choice) to try to do that. I am not looking for a certification level in those

[PHP] Understanding deprecated features from 5.2 - 5.3

2011-07-31 Thread robert mena
Hi, I am planning to upgrade my server from 5.2 to 5.3 but I am not sure if the deprecated features will simply throw warning messages but work or won't work at all. So far I've read that deprecated features are going to be removed on later versions. Unfortunately I host sites and some may use

[PHP] Problems with interoperability: MCrypt AES PHP x Java

2011-08-09 Thread robert mena
Hi, I am having problems while trying to decrypt an encrypted string (generated from a java system) in PHP. To take external factors out of the way I decided to make them work first in my local system. So I've created a sample encrypt/decrypt from PHP (using mcrypt's extension) and the java

[PHP] Anyone has mcrypt working with Zend Community Edition and Mac OS X Lion?

2011-08-19 Thread robert mena
Hi, After I've upgraded it stopped working and even if I reinstall the Zend CE package it complains. Regards.

[PHP] Dependency Injection containers

2011-10-31 Thread robert mena
Hi, I am trying to avoid reinventing the wheel so I am looking for dependency injection containers that work with PHP 5.2. So Symphony2 and ZF2 DI are out of question. I found this http://www.potstuck.com/2010/09/09/php-dependency-a-php-dependency-injection-framework/ but I was wondering if

<    1   2