php-general Digest 10 Mar 2010 00:07:44 -0000 Issue 6630

Topics (messages 302630 through 302640):

Using ArrayObject
        302630 by: Peter van der Does
        302631 by: Timo Witte

Re: EHLO error 554: what can it be?
        302632 by: Kevin Kinsey
        302636 by: Adam Richardson
        302638 by: Andre Polykanine
        302639 by: Bob McConnell

Re: pear for fedora 11
        302633 by: Edward. S. P. Leong
        302635 by: Ashley Sheridan
        302637 by: Edward. S. P. Leong

Re: Load simulation tests
        302634 by: John Black

Re: Anyone good with multiple SSL on Apache?
        302640 by: Manuel Lemos

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
What is the advantage of using ArrayObject to build a Registry class?

-- 
Peter van der Does

GPG key: E77E8E98

IRC: Ganseki on irc.freenode.net
Twitter: @petervanderdoes

WordPress Plugin Developer
Blog: http://blog.avirtualhome.com
Forums: http://forums.avirtualhome.com
Twitter: @avhsoftware

--- End Message ---
--- Begin Message ---
you can use ArrayObject functions?
an Object is always easier to handle / convert.
instead of $serialized = serialize($array);
you can do things like $serialized = (string)$arrayObject; and things like that.

Peter van der Does wrote:
What is the advantage of using ArrayObject to build a Registry class?


--- End Message ---
--- Begin Message ---
Thilo Klein wrote:
Kevin Kinsey schrieb:
Andre Polykanine wrote:
Hello everyone,

I'm writing a class to send mail via an SMTP server with authorization.
Everything seems to work but I get an EHLO error:
554 SMTP synchronization error
Where should I look to avoid this?
Thanks!



Be polite :-D

Make sure your class waits for the other server's greeting
before you send HELO/EHLO.  ;-)

HTH,

Kevin Kinsey

He is polite. You are not.


I'm afraid that you've misinterpreted at the very least.

I'm not accusing him of being impolite, but saying that
what is probably happening is that his script is sending
HELO/EHLO before the receiving server sends its greeting.

I"m comparing that to talking when you should be listening,
which is impolite in general conversation, at least where
I live.

If Andre really thought I meant he was impolite, I apologize.
I did not.  That is, incidentally, the reason there is a
"smiley" there.

Also, I have to beg this question:  if I am impolite,
then why am I the only person who has attempted to
answer his question thus far?  ;-)

KDK

--- End Message ---
--- Begin Message ---
On Mon, Mar 8, 2010 at 11:46 PM, Kevin Kinsey <k...@daleco.biz> wrote:

> Andre Polykanine wrote:
>
>> Hello everyone,
>>
>> I'm writing a class to send mail via an SMTP server with authorization.
>> Everything seems to work but I get an EHLO error:
>> 554 SMTP synchronization error
>> Where should I look to avoid this?
>> Thanks!
>>
>>
>
> Be polite :-D
>
> Make sure your class waits for the other server's greeting
> before you send HELO/EHLO.  ;-)
>
> HTH,
>
> Kevin Kinsey
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I learned something and chuckled at the same time.  Thanks for the info,
Kevin.

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com

--- End Message ---
--- Begin Message ---
Hello Kevin and all,

          Sorry Kevin, How do I do that? Excuse me if it's a stupid
          question...( the only way I know is to set the timeout on
          the fsockopen function (the fifth parameter). I set it even
          to 60 but no change...
Thanks a lot!

-- 
With best regards from Ukraine,
Andre
Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule

----- Original message -----
From: Kevin Kinsey <k...@daleco.biz>
To: Andre Polykanine <an...@oire.org>
Date: Tuesday, March 9, 2010, 6:46:24 AM
Subject: [PHP] EHLO error 554: what can it be?

Andre Polykanine wrote:
> Hello everyone,
> 
> I'm writing a class to send mail via an SMTP server with authorization.
> Everything seems to work but I get an EHLO error:
> 554 SMTP synchronization error
> Where should I look to avoid this?
> Thanks!
> 


Be polite :-D

Make sure your class waits for the other server's greeting
before you send HELO/EHLO.  ;-)

HTH,

Kevin Kinsey


--- End Message ---
--- Begin Message ---
After you open the socket, you first need to read from it to receive the
welcome message. After you verify the contents of that message, then
send the hello and wait for the response from it.

Bob McConnell

-----Original Message-----
From: Andre Polykanine [mailto:an...@oire.org] 
Sent: Tuesday, March 09, 2010 10:50 AM
To: Kevin Kinsey
Cc: Php general list
Subject: Re[2]: [PHP] EHLO error 554: what can it be?

Hello Kevin and all,

          Sorry Kevin, How do I do that? Excuse me if it's a stupid
          question...( the only way I know is to set the timeout on
          the fsockopen function (the fifth parameter). I set it even
          to 60 but no change...
Thanks a lot!

-- 
With best regards from Ukraine,
Andre
Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule

----- Original message -----
From: Kevin Kinsey <k...@daleco.biz>
To: Andre Polykanine <an...@oire.org>
Date: Tuesday, March 9, 2010, 6:46:24 AM
Subject: [PHP] EHLO error 554: what can it be?

Andre Polykanine wrote:
> Hello everyone,
> 
> I'm writing a class to send mail via an SMTP server with
authorization.
> Everything seems to work but I get an EHLO error:
> 554 SMTP synchronization error
> Where should I look to avoid this?
> Thanks!
> 


Be polite :-D

Make sure your class waits for the other server's greeting
before you send HELO/EHLO.  ;-)

HTH,

Kevin Kinsey


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


--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:

> On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:
>
>>Ashley Sheridan wrote:
>>
>>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:
>>>
>>>  
>>>
>>>>Dear All,
>>>>
>>>>Which can we download pear ann install into fc 11 system ?
>>>>
>>>>Thank for your help !
>>>>
>>>>Edward.
>>>>
>>>>    
>>>>
>>>
>>>
>>>I'm not sure I understand your question. Do you mean what Pear
>>>components can be installed on a Fedora 11 system? I'm running Fedora 11
>>>on my desktop and laptop at the moment, and both systems are running
>>>5.2.12, so any of the Pear modules that say they will run on that are
>>>fine. If you need to check to see what version of PHP is running, in a
>>>console or text login, type 'yum list php' and you'll get a line that
>>>reads something like:
>>>
>>>php.i586    5.2.12-1.fc11    @updates
>>>
>>>Thanks,
>>>Ash
>>>http://www.ashleysheridan.co.uk
>>>  
>>>
>>Dear Ash,
>>
>>1, My means is where can we download the pear and install it into the
>>fedora 11 system ?
>>Due to our web server :
>>[pear]# pwd
>>/usr/share/pear
>>[pear]# dir
>>Archive data OS pearcmd.php peclcmd.php System.php XML
>>Console doc PEAR PEAR.php Structures test
>>[pear]#
>>So, it is not update ( pear ) ?
>>
>>2, Would you mind to send me your php config ( php.ini ) and Web Server
>>config ( httpd.conf ) as sample ?
>>Due to our Web Server is problem :
>>After upload all of homepage data ( php format ) to Web Server, then
>>type "http://ip or domain_name" the result is blank page...
>>
>>Thank for your help !
>>
>>Edward.
>>    
>>
>
> If you're getting a blank page, the first port of call is your error
> log. At a console type:
>
> sudo tail -f /var/log/httpd/error_log
>
> which should then continually update itself with a list of errors as
> and when they occur, which will be useful to you if you need to view
> the log while you're debugging. This file is only readable by the root
> user.
>
> My config files won't be that much help I don't think, as the setup of
> both our servers will be quite different.
>
> How did you try to install Pear on your Fedora 11 system? The package
> manager that comes with Fedora (I use KPackageKit on KDE) allows you
> install and remove Pear modules as you need.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Dear Ash,

When I tried to install pear from the net into our server ( FC11 64Bit )
as the following cmd :
[root]# yum install pear
Loaded plugins: refresh-packagekit
Setting up Install Process
No package pear available.
Nothing to do
[root]#

So, I ask for the solution here ( for help )...

Hope anyone or you can help me...

Edward.


--- End Message ---
--- Begin Message ---
On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote:

> Ashley Sheridan wrote:
> 
> > On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:
> >
> >>Ashley Sheridan wrote:
> >>
> >>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:
> >>>
> >>>  
> >>>
> >>>>Dear All,
> >>>>
> >>>>Which can we download pear ann install into fc 11 system ?
> >>>>
> >>>>Thank for your help !
> >>>>
> >>>>Edward.
> >>>>
> >>>>    
> >>>>
> >>>
> >>>
> >>>I'm not sure I understand your question. Do you mean what Pear
> >>>components can be installed on a Fedora 11 system? I'm running Fedora 11
> >>>on my desktop and laptop at the moment, and both systems are running
> >>>5.2.12, so any of the Pear modules that say they will run on that are
> >>>fine. If you need to check to see what version of PHP is running, in a
> >>>console or text login, type 'yum list php' and you'll get a line that
> >>>reads something like:
> >>>
> >>>php.i586    5.2.12-1.fc11    @updates
> >>>
> >>>Thanks,
> >>>Ash
> >>>http://www.ashleysheridan.co.uk
> >>>  
> >>>
> >>Dear Ash,
> >>
> >>1, My means is where can we download the pear and install it into the
> >>fedora 11 system ?
> >>Due to our web server :
> >>[pear]# pwd
> >>/usr/share/pear
> >>[pear]# dir
> >>Archive data OS pearcmd.php peclcmd.php System.php XML
> >>Console doc PEAR PEAR.php Structures test
> >>[pear]#
> >>So, it is not update ( pear ) ?
> >>
> >>2, Would you mind to send me your php config ( php.ini ) and Web Server
> >>config ( httpd.conf ) as sample ?
> >>Due to our Web Server is problem :
> >>After upload all of homepage data ( php format ) to Web Server, then
> >>type "http://ip or domain_name" the result is blank page...
> >>
> >>Thank for your help !
> >>
> >>Edward.
> >>    
> >>
> >
> > If you're getting a blank page, the first port of call is your error
> > log. At a console type:
> >
> > sudo tail -f /var/log/httpd/error_log
> >
> > which should then continually update itself with a list of errors as
> > and when they occur, which will be useful to you if you need to view
> > the log while you're debugging. This file is only readable by the root
> > user.
> >
> > My config files won't be that much help I don't think, as the setup of
> > both our servers will be quite different.
> >
> > How did you try to install Pear on your Fedora 11 system? The package
> > manager that comes with Fedora (I use KPackageKit on KDE) allows you
> > install and remove Pear modules as you need.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >
> Dear Ash,
> 
> When I tried to install pear from the net into our server ( FC11 64Bit )
> as the following cmd :
> [root]# yum install pear
> Loaded plugins: refresh-packagekit
> Setting up Install Process
> No package pear available.
> Nothing to do
> [root]#
> 
> So, I ask for the solution here ( for help )...
> 
> Hope anyone or you can help me...
> 
> Edward.
> 

By default yum matches the beginning of the package name. As there is no
package called pear, it finds nothing.

Instead, you can use:

yum install php-pear*

to install all the php-pear packages, or install them as you need by:

yum install php-pear-subpackage

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:

> On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote:
>
>>Ashley Sheridan wrote:
>>
>>> On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:
>>>
>>>>Ashley Sheridan wrote:
>>>>
>>>>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:
>>>>>
>>>>>  
>>>>>
>>>>>>Dear All,
>>>>>>
>>>>>>Which can we download pear ann install into fc 11 system ?
>>>>>>
>>>>>>Thank for your help !
>>>>>>
>>>>>>Edward.
>>>>>>
>>>>>>    
>>>>>>
>>>>>
>>>>>
>>>>>I'm not sure I understand your question. Do you mean what Pear
>>>>>components can be installed on a Fedora 11 system? I'm running Fedora 11
>>>>>on my desktop and laptop at the moment, and both systems are running
>>>>>5.2.12, so any of the Pear modules that say they will run on that are
>>>>>fine. If you need to check to see what version of PHP is running, in a
>>>>>console or text login, type 'yum list php' and you'll get a line that
>>>>>reads something like:
>>>>>
>>>>>php.i586    5.2.12-1.fc11    @updates
>>>>>
>>>>>Thanks,
>>>>>Ash
>>>>>http://www.ashleysheridan.co.uk
>>>>>  
>>>>>
>>>>Dear Ash,
>>>>
>>>>1, My means is where can we download the pear and install it into the
>>>>fedora 11 system ?
>>>>Due to our web server :
>>>>[pear]# pwd
>>>>/usr/share/pear
>>>>[pear]# dir
>>>>Archive data OS pearcmd.php peclcmd.php System.php XML
>>>>Console doc PEAR PEAR.php Structures test
>>>>[pear]#
>>>>So, it is not update ( pear ) ?
>>>>
>>>>2, Would you mind to send me your php config ( php.ini ) and Web Server
>>>>config ( httpd.conf ) as sample ?
>>>>Due to our Web Server is problem :
>>>>After upload all of homepage data ( php format ) to Web Server, then
>>>>type "http://ip or domain_name" the result is blank page...
>>>>
>>>>Thank for your help !
>>>>
>>>>Edward.
>>>>    
>>>>
>>>
>>> If you're getting a blank page, the first port of call is your error
>>> log. At a console type:
>>>
>>> sudo tail -f /var/log/httpd/error_log
>>>
>>> which should then continually update itself with a list of errors as
>>> and when they occur, which will be useful to you if you need to view
>>> the log while you're debugging. This file is only readable by the root
>>> user.
>>>
>>> My config files won't be that much help I don't think, as the setup of
>>> both our servers will be quite different.
>>>
>>> How did you try to install Pear on your Fedora 11 system? The package
>>> manager that comes with Fedora (I use KPackageKit on KDE) allows you
>>> install and remove Pear modules as you need.
>>>
>>> Thanks,
>>> Ash
>>> http://www.ashleysheridan.co.uk
>>>
>>>
>>>
>>Dear Ash,
>>
>>When I tried to install pear from the net into our server ( FC11 64Bit )
>>as the following cmd :
>>[root]# yum install pear
>>Loaded plugins: refresh-packagekit
>>Setting up Install Process
>>No package pear available.
>>Nothing to do
>>[root]#
>>
>>So, I ask for the solution here ( for help )...
>>
>>Hope anyone or you can help me...
>>
>>Edward.
>>
>>    
>>
> By default yum matches the beginning of the package name. As there is
> no package called pear, it finds nothing.
>
> Instead, you can use:
>
> yum install php-pear*
>
> to install all the php-pear packages, or install them as you need by:
>
> yum install php-pear-subpackage
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Dear Ash,

1, Thank for your technical support of the installation / update
operation....
2, If your is FC11 System, so, would you mind to send me (
edwardspl...@gmail.com ) your php.ini ( config ) for reference ?

Thanks !

--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
I was wondering if there were any ways to simulate loads on a PHP script
running on the server? Basically, I'd just like to take one of my sites
through a dry-run so to speak and simulate x number of visitors.
Ideally, I'd prefer something that didn't have to be installed on the
remote server. Also, it would have to be something I could use from
within Linux, as I only have Windows running as a VM, and I'm not sure
it would work as intended if run though a VM.
Have any of you used such tools, and if so, are there any you'd
recommend?
Ash

I have used JMeter in the past.
Since it is written in Java it will run just fine on Linux. Setting up a test scenario may take some time but it can browse your page like a regular user would (with delays) and supply input where required. This is executed from a client machine and does not require anything to be installed on your server.

http://jakarta.apache.org/jmeter/

--
John



--- End Message ---
--- Begin Message ---
Hello,

on 03/08/2010 07:13 PM Skip Evans said the following:
> Hey all,
> 
> I have an Apache virtual config running a bunch of sites, one with SSL.
> I finally have a need to add SSL to one more, but when I do the first
> one (which is further down the file) comes up "untrusted".
> 
> Since this is pretty far off topic I'd be obliged if someone who has
> configured this before can email me off list for some assistance.

AFAIK, you need to have a different certificate per domain, although
there are certificates that can be used for all domains.

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---

Reply via email to