Re: [PHP] using phar and compression

2012-08-09 Thread Hajo Locke
Hello, thanks, but i cant do this. its just this problem: Should line $compressed = $phar->convertToExecutable(Phar::TAR,Phar::GZ, '.phar.tgz'); create a ready to run executable or not .Its not about creating phar archives in optional way. It is a special problem i try to find... Thanks, Hajo

[PHP] PHP 5.4.5 Sendmail issues on Mountain Lion

2012-08-09 Thread Mr. Gecko
I have been having issues on Mountain Lion with PHP 5.4.5 and sendmail. The issue I'm having is after a while of PHP FPM running, sendmail doesn't receive any response from php as to what to send and they just start eating CPU like no tomorrow. Result from ps -ev PID STATTIME

RES: [PHP] XML/PHP web service

2012-08-09 Thread Alejandro Michelin Salomon
Philip : Try this: Client: $client = new SoapClient( null, array( 'encoding' => 'utf-8', 'soap_version' => SOAP_1_2, 'trace' => 1, 'uri' => 'tns: Server', 'location' => 'php server URL here')); // Cut off , to not have two xml start tag in the soap message. $xm

Re: [PHP] PHP session variables

2012-08-09 Thread Tedd Sperling
On Aug 8, 2012, at 5:41 PM, Jim Giner wrote: > On 8/8/2012 11:24 AM, Ansry User 01 wrote: >> I am setting the _SESSION variables in one of my file, but whenever I leave >> the php page session variables are not accessible. Not sure what I need to >> do additionally other then defining _SESSION[

Re: [PHP] PHP session variables

2012-08-09 Thread Jim Lucas
On 08/09/2012 01:45 PM, Tedd Sperling wrote: On Aug 8, 2012, at 5:41 PM, Jim Giner wrote: On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do addi

Re: RES: [PHP] XML/PHP web service

2012-08-09 Thread Carlos Medina
Hi, the two options offers here are ok. But please make it secure! Regards Carlos Am 09.08.2012 14:38, schrieb Alejandro Michelin Salomon: > Philip : > > Try this: > > Client: > > $client = new SoapClient( null, array( 'encoding' => 'utf-8', 'soap_version' > => SOAP_1_2, 'trace' => 1, >

[PHP] Too many open files

2012-08-09 Thread Al
Getting "Too many open files" error when processing an email batch process. The batch size is actually rather small and the email text is small likewise. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with get_file_contents(); I can't

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
On 8/9/2012 5:01 PM, Al wrote: Getting "Too many open files" error when processing an email batch process. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with get_file_contents(); Why not use fopen() and other related functions to open

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
On 8/9/2012 9:40 PM, Alan Hoffmeister wrote: +1 to fopen and fclose. You can implement your function: function read($file){ if ( $fh = fopen($file, 'r') ) { $data = fread($fh, filesize($file)); fclose($fh); } } echo read('hello-world.txt'); echo read('hello-world1.txt'); echo r

Re: [PHP] Too many open files

2012-08-09 Thread Matijn Woudt
On Fri, Aug 10, 2012 at 5:36 AM, Jim Lucas wrote: > On 8/9/2012 5:01 PM, Al wrote: >> >> Getting "Too many open files" error when processing an email batch >> process. >> >> I've looked extensively and can't find more than about 100 files that >> could be open. All my fetching is with get_file_co