[PHP] SOAP client and SSL version 3

2011-07-22 Thread Pawel Furtak
Hello,
I'm trying to enforce ssl version 3 for PHP Soap client.
Is it possible somehow ?


Pawel

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Pawel Rutkowski
Hello,

I try to run script below with PHP4 and it works.

--TEST--
Test session_encode() function : variation
--SKIPIF--

--FILE--

--EXPECTF--
*** Testing session_encode() : variation ***
bool(true)
string(64) 
"data|a:5:{i:0;i:1;i:1;i:2;i:2;i:3;s:3:"foo";R:1;s:4:"blah";R:1;}"
bool(true)
Done


But in PHP5 x64 I have errors like:

/root/src/php-5.2.6/Zend/zend_hash.c(247) :  Freeing 0x0E76BC50 (75 bytes), 
script=ext/session/tests/session_encode_variation5.phpt
[Sat Dec 27 11:27:09 2008]  Script: 
'ext/session/tests/session_encode_variation5.phpt' 
/root/src/php-5.2.6/Zend/zend_vm_execute.h(3596) :  Freeing 0x0E76B990 (71 
bytes), script=ext/session/tests/session_encode_variation5.phpt
/root/src/php-5.2.6/Zend/zend_hash.c(388) : Actual location (location was 
relayed)

If I add:
$array["foo"] = null;
$array["blah"] = null;
in test code it works without errors. But is I always need to add 'null' ?

I'm asking because I have some site which genereating many errors like 
"Actual location (location was relayed)".

Thanks
Pawel R.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Finding user's timezone

2006-11-03 Thread Pawel Miroslawski

Hmm... in $_SERVER array you get a client IP so You know client coutry. if
exists a list of ip numbers and coutries should be exists list coutries and
timezones too, so it should be easy. Eventually you may create short list of
this countries what will be visitors from (or only biggest coutries).


Re: [PHP] preg_replace (again)

2006-09-20 Thread Pawel Miroslawski

Hi
it's example script:

';
$replacements[1] = '';

echo preg_replace($patterns, $replacements, $string);
?>

It should be ok, but i don't test it.

Pawel


Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Pawel Miroslawski

On 9/20/06, Kae Verens <[EMAIL PROTECTED]> wrote:


James Tu wrote:
> Hi:
>
> I'm trying to setup a dev environment using Apache, MySQL and PHP...to
> develop an application that will go to production.
> What is the most stable versions of the AMP components should I can
> install?
>
> The production environment will most likely live on a Linux machine.  My
> dev environment will be on OS X.

that's a religious question. some people advocate some distributions over
others.

Personally, I recommend Fedora - it's easy to install, and you can use
"yum"
and "yumex" (graphical yum) for package management.

Kae

--



Hi
I agree it's a religious question.
I prefer Debian, apt-get is a really comfortable tool and it install all
require dependencies. All procedure LAMP install it only 4 commands ex.
apt-get install php5 :) It's a very fast and nice (best what i know).

Representant of debian's church ;)
Paul
*
*


[PHP] XML and external parameter entities

2002-06-27 Thread Pawel

Hello,

I'm having a hard time getting expat to parse external parameter entities
and I'm wondering if any one tried this before (general entities work fine)

sample xml:



%common_entities;
]>
.
-

as the name suggests, the file "00-entities-00" contains common general 
entities
shared between multiple .xml's
Expat's external_entity_ref_handler doesn't catch parameter entities, but I'm
not even sure it should.

My question is: How should I parse something like this ?


Any hints appreciated
Pawel

PS. php version 4.3.0-dev (cli) (cvs from 6/25/02) 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] bulk mail()

2002-06-14 Thread Pawel


> > -Original Message-
> > From: Justin French [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 6:45 AM
> > To: php
> > Subject: [PHP] bulk mail()
> >
> >
> > Hi all,
> >
> > I've got a mailing on a website, with email address' / names / etc in a
> > MySQL table.
> >
> > I think there's around 120 on it at the moment.
> >
> > I've been noticing a growing lag on the sending of mail though...
> > I've got a
> > script which takes a message from a form, then runs a while loop
> > through the
> > rows of the mailing_list table, replacing a special string with the
> > subscribers name, and sending using the mail() command.
> >

You're using something like mysql_fetch_array and not querying the db 120 
times I hope.

> > However, this time, the script actually failed, with a "failure when
> > attempting to access blah.com/foo.php" (the sending script).  I
> > have no idea
> > if SOME people got the email, or what, and have no idea how to check.>

go through the your MTA's logs (long and painful process)


> > So, I make the assumption that as the mailing list has grown, the script
> > time has slowed... now it's too big (or the server was too busy)
> > to process
> > all the emails before the script timed out.

The time your MTA takes to process the emails has nothing to do with this.
120 calls to mail() should not time out, maybe you have a complicated 
regexp for fixing that name in the emails
what's the body of your while() loop ?


> >
> > If I didn't want to personalise the emails, I'm sure the script
> > would run a
> > lot quicker with every address in the Bcc header, but since we personalise
> > each email, I can't see any option other than using mail() 200
> > times...  and
> > it's only going to get a lot worse as we climb to 1000+.
> >

putting 120 email addresses in one bcc will surely get your email 
classified as spam

> > So, what options do I have?
> >
> > Break the mailing list up into batches of 40 or so?  How would I implement
> > something like this?
> >

you could try adding a column in your db that will reflect the last time 
you've sent an email to that person. Then you could just append "LIMIT 40" 
to your select query, but updating the column requires a separate query (1 
update per email if you want to know exactly how got the email and who didn't)

Pawel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] XML and parameter entities

2002-06-14 Thread Pawel

Hello,

I'm having a hard time getting expat to parse parameter entities and I'm 
wondering if any one tried this before (general entities work fine)

sample xml:



%common_entities;
]>
.
-

as the name suggests, the file "00-entities-00" contains common general 
entities shared between multiple .xml's
Expat's external_entity_ref_handler doesn't catch parameter entities, but 
I'm not even sure it should.

How should I parse this ?


Any hints appreciated
Pawel

PS. php version 4.3.0-dev (cli) (yesterday's cvs)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php