php-windows Digest 31 Dec 2001 05:09:33 -0000 Issue 928

Topics (messages 11215 through 11224):

Error using session with Apache 1.3.22, PHP 4.1 and Windows 2000 SP2.
        11215 by: Sébastien Thüler

Re: Performance tuning #2
        11216 by: Peter Illes
        11219 by: Manuel Lemos

Deleting a file under Windows
        11217 by: Sébastien Thüler
        11220 by: Daniel Beulshausen
        11221 by: Sébastien Thüler
        11222 by: LaserJetter

Error found
        11218 by: Sébastien Thüler

Re: Humor... Was: Mathimatical equations in PHP [This message has nothing to do with 
PHP and if thats your prime concern, please, delete t his message]
        11223 by: Svensson, B.A.T. (HKG)

Re: MySQL problems...
        11224 by: VivoAnt

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hello everybody!

I'm using Apache 1.3.22 and PHP 4.1.0 (in SAPI mode) under Windows 2000 SP2.
When I try to register a variable for PHP session using
session_register("variable-name");
I get an error message : 'Instruction at "0x005d956c" use memory address
"0x8b2b43b1". Memory cannot be "read".' (translated from French)

Anyone know why I get this error? And how I can fix that?

Thanks for any help,

- Sebastien Thueler


--- End Message ---
--- Begin Message ---
Some more details:

We are implementing a Web Services server (essentially SOAP server) in PHP
and one of the calls has to return a data packet as XML so we want to
accumulate the response in a string variable and then return it (optionally
logginig it for security reasons).

We would like to avoid using external files for the accumulation, since we
need some good performance and typically disk v.s. memory cannot compete
(the server has enough RAM;-).

"Peter Illes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> This is the second post of this problem since I did not get any answer for
> the first. Please, could someone out there help? Thanks in advance...
>
> I wonder if there is any performance tuning newsgroup/faq/whatever related
> to PHP. I searchead to no avail...
>
> Anyway, my current mind boggler is: we are accumulating a large (~400k)
XML
> response in a string before sending it out by adding little pieces a time
> (like 10-20 chars). Now this results in  very bad performance -- most
> probably due to the fact that the string is enlarged/re-allocated
thousands
> of times. I would love to pre-allocate a big buffer for the string so that
> performance gets better (something like SetLength() in Delphi). How can I
do
> this?
>
> Xuse me if the answer is much too trivial, I'm a newbie in PHPland :-)
>
> Thanks for any suggestion,
>
> Peter
>
>
>
>


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

Peter Illes wrote:
> 
> Some more details:
> 
> We are implementing a Web Services server (essentially SOAP server) in PHP
> and one of the calls has to return a data packet as XML so we want to
> accumulate the response in a string variable and then return it (optionally
> logginig it for security reasons).
> 
> We would like to avoid using external files for the accumulation, since we
> need some good performance and typically disk v.s. memory cannot compete
> (the server has enough RAM;-).

If you were using a Unix OS, maybe you could use the shared memory
extension. I wonder if isn't there anything like that for Windows.

Alternatively you may want to establish a persistent connection to local
TCP socket and send your log data to it so a daemon could collect it
periodically.

Regards,
Manuel Lemos


> 
> "Peter Illes" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > This is the second post of this problem since I did not get any answer for
> > the first. Please, could someone out there help? Thanks in advance...
> >
> > I wonder if there is any performance tuning newsgroup/faq/whatever related
> > to PHP. I searchead to no avail...
> >
> > Anyway, my current mind boggler is: we are accumulating a large (~400k)
> XML
> > response in a string before sending it out by adding little pieces a time
> > (like 10-20 chars). Now this results in  very bad performance -- most
> > probably due to the fact that the string is enlarged/re-allocated
> thousands
> > of times. I would love to pre-allocate a big buffer for the string so that
> > performance gets better (something like SetLength() in Delphi). How can I
> do
> > this?
> >
> > Xuse me if the answer is much too trivial, I'm a newbie in PHPland :-)
> >
> > Thanks for any suggestion,
> >
> > Peter
> >
> >
> >
> >
--- End Message ---
--- Begin Message ---
Hello!

The manual says that unlink() doesn't work under Windows.
Question is : what is the way to delete a file under Windows ?

- Sébastien Thüler


--- End Message ---
--- Begin Message ---
At 18:11 30.12.2001 +0100, Sébastien Thüler wrote:
>Hello!
>
>The manual says that unlink() doesn't work under Windows.
>Question is : what is the way to delete a file under Windows ?

i must be blind then :)
for sure unlink works under windows, everyone saying something different is 
nuts.

daniel

/*--
Daniel Beulshausen - [EMAIL PROTECTED]
Using PHP on Windows? http://www.php4win.com

--- End Message ---
--- Begin Message ---
I suppose the PDF version of the manual is not up-to-date, then.
Thanks for the info!

-Séb

"Daniel Beulshausen" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
At 18:11 30.12.2001 +0100, Sébastien Thüler wrote:
>Hello!
>
>The manual says that unlink() doesn't work under Windows.
>Question is : what is the way to delete a file under Windows ?

i must be blind then :)
for sure unlink works under windows, everyone saying something different is
nuts.

daniel

/*--
Daniel Beulshausen - [EMAIL PROTECTED]
Using PHP on Windows? http://www.php4win.com



--- End Message ---
--- Begin Message ---
The PDF manual I downloaded for 4.0.6 said something about unlink not
working on windows but it's always worked fine for me!
It might be a warning as it may not work under certain conditions


"SéBastien ThüLer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I suppose the PDF version of the manual is not up-to-date, then.
> Thanks for the info!
>
> -Séb
>
> "Daniel Beulshausen" <[EMAIL PROTECTED]> a écrit dans le message news:
> [EMAIL PROTECTED]
> At 18:11 30.12.2001 +0100, Sébastien Thüler wrote:
> >Hello!
> >
> >The manual says that unlink() doesn't work under Windows.
> >Question is : what is the way to delete a file under Windows ?
>
> i must be blind then :)
> for sure unlink works under windows, everyone saying something different
is
> nuts.
>
> daniel
>
> /*--
> Daniel Beulshausen - [EMAIL PROTECTED]
> Using PHP on Windows? http://www.php4win.com
>
>
>


--- End Message ---
--- Begin Message ---
session wasn't explicitely started neither was session_auto_open set to 1.
No comment, please ;)

- Séb


--- End Message ---
--- Begin Message ---
>-----Original Message-----
>From: Ross Fleming
>Sent: Saturday, December 29, 2001 7:34 PM
>To: Svensson, B.A.T. (HKG)
>Cc: [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] Mathimatical equations in PHP
>
>
>I personally think that there was a bit of an over-reaction to 
>Svenssons emails.  Most of them are funny, and a lot of the questions do 
>only need a quick search of the manual.

Gentlemen (because we are still Gentlemen, aren't we? ;),

I do not intend to defend my self in public in this mathematical matter, and
I wont either. I have though been selecting some letters that I will make
some private replies on - and if the author hasn't bother to configure his
mail reader to send the proper response address I wont bother to try to
figure it out for my self.

Secondly: Thanks for your support Ross. I know that at least you (among some
other guys) appreciate some of my ironic comments as humor - I have had this
confirmed in private response from these guys - but some people does not,
and they seams to prefer to response in public rather than privately (and
suddenly with all private CC replies mysteriously gone to ;).

Why is that the case? 

Anyhow I have a strong believe that humor makes the world goes around just a
little bit smother, and is some case even can prevent wars between nations -
humor is a source of relief. Anybody who does not comprehend with this kind
of thinking is actually, and in fact, more likely to start a conflict, raise
a case of anger or hate between different parties.

We all need humor, and we all need a pretty good laugh from time to time. 

With this I do no try to suggest to say that I am brilliant with humor nor
the savior of this world.

For those of you guys who does not share my opinion or appreciate my kind of
humor: Well, I don't dislike you guys, but I do honestly think you guys are
a bit boring, and would most likely not prefer you company Friday night at
the pub. ;)

And to be really really nasty and ugly against my opponents of criticism: it
is more or less a proven fact that sensitivity of humor is related to the
intelligence level of the beholder: the more intelligent a person is the
more likely it is that this person will appreciate the more subtle humor in
a message.

And as we all know, Americans are a very stupid people and will hence most
likely have no humor at all when encounter with it. But the world is bigger
than America - even if the Americans doesn't know that them self. Therefore
humor will always prevail! (Those guys of you who are intelligent will
understand that this was humor - the other not, and hence need to read this
"declaration of humor" in parenthesis in order to understand this - and I
beat you are an American if you did that to... ;)


Cheers and Happy new years to _all_ of you (intelligent or not :),
Anders

--- End Message ---
--- Begin Message ---
Do I have to CHMOD PHPMyAdmin ???

----- Original Message -----
From: "Pac mon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 30, 2001 1:59 AM
Subject: Re: [PHP-WIN] MySQL problems...


> My guess is that you have a password set for the root user in Mysql, but
> (from the error statement) I can see that a password was not sent to Mysql
> for verification. That being neccessary, of course. I believe David is
> referring the the exact variables in phpMyAdmin that would hold the value
in
> question. Good Luck.
>
> >
> >Hi VivoAnt
> >
> >On 30 December 2001 at 01:02:22 -0800 (which was 09:02 where I live)
> >VivoAnt
> >rearranged electrons to get
> >
> >V> Thanks for the help on my previous question :) I got it to work
finally
> >V> :) After I did everything I tried to upload phpmyadmin to my server. I
> >V> tried accessing the page but I got this error:
> >
> >V> Error
> >V> MySQL said:
> >
> >V> Access denied for user: 'root@localhost' (Using password: NO)
> >
> >V> I'm not sure what that means...
> >
> >At a guess I would say that you have not configured config.inc.php3 (or
> >config.inc.php) correctly check the following entries
> >
> >$cfgServers[1]['host']
> >$cfgServers[1]['user']
> >$cfgServers[1]['password']
> >
> >--
> >  BBFN,
_______________________________________________
> >   David                   |    David  Elliott    |   Software Engineer
> >|
> >  _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534
> >|
> >| We're riding on the Escalator of Life
|
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

--- End Message ---

Reply via email to