php-general Digest 2 Oct 2004 22:14:51 -0000 Issue 3030
Topics (messages 198484 through 198510):
Re: array sort question
198484 by: Jasper Howard
198485 by: Jasper Howard
198500 by: Ed Lazor
Re: Session handlers
198486 by: Ewout de Boer
198488 by: Tim Van Wassenhove
198492 by: Chris Shiflett
Re: Office document upload to website (and inserting in MySQL if possible)
198487 by: Phill
Including function libraries
198489 by: Andrew W
198493 by: Graham Cossey
How to load another php page?
198490 by: Arnold
198491 by: afan.afan.net
198494 by: Arnold
198495 by: Arnold
198496 by: Lists
198497 by: Jason Davidson
198499 by: Alex Hogan
198502 by: Arnold
198504 by: Marek Kilimajer
198505 by: Arnold
198507 by: Arnold
198508 by: Marek Kilimajer
198510 by: Graham Cossey
Re: stand alone php
198498 by: Gerben
Using PHP4 or PHP5
198501 by: Michael Lauzon
Re: Detecting Mysql server is running
198503 by: mbox mbarsalou
Re: Naming conventions
198506 by: Daniel Schierbeck
Re: PHP (anti) crash policy?
198509 by: Olaf van der Spek
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 ---
On Fri, 1 Oct 2004 22:44:50 -0400, Paul Bissex <[EMAIL PROTECTED]> wrote:
> On Fri, 1 Oct 2004 19:12:30 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote:
> > Any ideas on how I could sort this array by Title?
> >
> > $menu[1]["ID"] = 5;
> >
> > $menu[1]["Title"] = "Test 1";
> >
> > $menu[2]["ID"] = 3;
> >
> > $menu[2]["Title"] = "Test 4";
>
>
> uasort() is what you need here.
>
> Also see the usort() documentation page for an example of how to write
> the comparison callback function that you pass to uasort().
>
> pb
>
> --
> paul bissex, e-scribe.com -- database-driven web development
> 413.585.8095
> 69.55.225.29
> 01061-0847
> 72�39'71"W 42�19'42"N
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
<<--------------------------------------------------------
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
------------------------------------------------------->>
--- End Message ---
--- Begin Message ---
Sorry for the empty reply (miss slide of the finger on my touch pad).
You can use array_multisort(); The code would look something like
this, remember, this is untested code so be warned before any flaming
is done:
//CODE
//You need to restructure your array like this:
$menu["ID"][1] = 5;
$menu["Title"][1] = "Test 1";
$menu["ID"][2] = 3;
$menu["Title"][2] = "Test 4";
//Then run array_multisort
array_multisort($menu['Title'],$menu['ID']);
//END CODE
Like this it will sort alphabetically or numerically (which ever
needed) ascending. You can put tags after the first variable like
this:
array_multisort($menu['Title'],SORT_ASC,SORT_STRING,$menu['ID']);
If there are any more keys in the $menu array you need to list them
after the $menu['ID'] key so they will be sorted according to the
$menu['Title'] key. The first key you put into array_multisort() is
the one that the rest get sorted by.
-Jasper Howard
On Fri, 1 Oct 2004 22:44:50 -0400, Paul Bissex <[EMAIL PROTECTED]> wrote:
> On Fri, 1 Oct 2004 19:12:30 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote:
> > Any ideas on how I could sort this array by Title?
> >
> > $menu[1]["ID"] = 5;
> >
> > $menu[1]["Title"] = "Test 1";
> >
> > $menu[2]["ID"] = 3;
> >
> > $menu[2]["Title"] = "Test 4";
>
>
> uasort() is what you need here.
>
> Also see the usort() documentation page for an example of how to write
> the comparison callback function that you pass to uasort().
>
> pb
>
> --
> paul bissex, e-scribe.com -- database-driven web development
> 413.585.8095
> 69.55.225.29
> 01061-0847
> 72�39'71"W 42�19'42"N
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
<<--------------------------------------------------------
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
------------------------------------------------------->>
--- End Message ---
--- Begin Message ---
Thanks for the example using array_multisort. I'd been wondering how I
could use that function to do what I want. It looks like it's more flexible
in the long run, but I was able to use Paul's recommendation to do what I
want. Here's the code I ended up using:
function cmp ($a, $b) {
return strcmp($a["Title"], $b["Title"]);
}
uasort($list, "cmp");
-Ed
> -----Original Message-----
> Sorry for the empty reply (miss slide of the finger on my touch pad).
> You can use array_multisort(); The code would look something like
> this, remember, this is untested code so be warned before any flaming
> is done:
>
> //CODE
> //You need to restructure your array like this:
> $menu["ID"][1] = 5;
> $menu["Title"][1] = "Test 1";
> $menu["ID"][2] = 3;
> $menu["Title"][2] = "Test 4";
> //Then run array_multisort
> array_multisort($menu['Title'],$menu['ID']);
>
> //END CODE
>
> Like this it will sort alphabetically or numerically (which ever
> needed) ascending. You can put tags after the first variable like
> this:
>
> array_multisort($menu['Title'],SORT_ASC,SORT_STRING,$menu['ID']);
>
> If there are any more keys in the $menu array you need to list them
> after the $menu['ID'] key so they will be sorted according to the
> $menu['Title'] key. The first key you put into array_multisort() is
> the one that the rest get sorted by.
--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Shawn McKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 02, 2004 2:11 AM
Subject: [PHP] Session handlers
> Just curious, what is the advantage of using a custom session handler,
> such as saving session data in MySQL?
security !
The default location for php to store session data is the tmp directory of
the host os (like /tmp), and in most cases these files are readable by the
webserver... and by all other scripts it's running. So if you're hosting
your site on a shared server other users can read your session data, that's
fine as long as you don't use it to store critical information like
username, password....
some more info on this topic:
http://shiflett.org/talks/phpworks2004-php-session-security/
regards,
Ewout
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>, Ewout De Boer wrote:
>
> ----- Original Message -----
> From: "Shawn McKenzie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, October 02, 2004 2:11 AM
> Subject: [PHP] Session handlers
>
>
>> Just curious, what is the advantage of using a custom session handler,
>> such as saving session data in MySQL?
>
> security !
>
> The default location for php to store session data is the tmp directory of
> the host os (like /tmp), and in most cases these files are readable by the
> webserver... and by all other scripts it's running. So if you're hosting
> your site on a shared server other users can read your session data, that's
> fine as long as you don't use it to store critical information like
> username, password....
If others can read from your session.save_path, i'm pretty sure
they'll be able to read the credentials you use in the scripts to connect the database
too. Which makes the security argument in this case invalid.
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
--- End Message ---
--- Begin Message ---
--- Tim Van Wassenhove <[EMAIL PROTECTED]> wrote:
> If others can read from your session.save_path, i'm pretty sure
> they'll be able to read the credentials you use in the scripts
> to connect the database too. Which makes the security argument
> in this case invalid.
You can store the database access credentials in a file that only root can
read. Because the parent process in the case of Apache typically runs as
root, it can read such a file, but the child processes that serve each
request run as the user nobody, so they can't.
More information is available here:
http://shiflett.org/articles/security-corner-mar2004
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming December 2004 http://httphandbook.org/
--- End Message ---
--- Begin Message ---
"Pugi!" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I would like to upload office-document (doc, xls, ...) using a form to a
> website (apache, php, mysql) in a specific directory and if possible
> insert
> it into a table (MySQL-db). Is this possible. If yes, how ? You don't have
> to explain it in detail, a link to a website or online manual or example
> is
> fine.
>
> Thanks,
>
> Pugi!
>
>
>
> Please reply to group or to pugilator at yahoo dot com
>
I think I get what you want to do, do you want to have a form on a webpage,
where you specify the path of it on that pc, and then be able to upload it
to a folder on the server. Then, you store the details, such as original
filename, current filename, location etc. in the database.
I know this is possible, but I've never managed to do it myself. Try looking
in PHP and MySQL, it's by Larry Ullman and is published by Peachpit Press.
There is something towards the back of the book about file uploads, and it
gives an example of a solution like I explained above
--- End Message ---
--- Begin Message ---
Ok, I've got a file called functions.lib which contains the following:
function checkLoggedIn()
{
return (true);
}
function Test ($x)
{
return ($x * $x);
}
and a file called test.php which contains the following:
<?php
include 'functions.lib';
if (checkLoggedIn())
{
print "Logged in";
}
else
{
print "Not logged in";
}
?>
They're both stored in a directory called 'test' which Ive uploaded to
my webserver. When I call test.php from my browser I get the following
output:
function checkLoggedIn() { return (true); } function Test ($x) {
return ($x * $x); }
Fatal error: Call to undefined function: checkloggedin() in
/home/sites/site116/web/test/test.php on line 5
Why can't I call the function defined in the lib file?
Thanks
AW
--- End Message ---
--- Begin Message ---
Do you have <?php and ?> in functions.lib ?
-----Original Message-----
From: Andrew W [mailto:[EMAIL PROTECTED]
Sent: 02 October 2004 16:52
To: php-gen
Subject: [PHP] Including function libraries
Ok, I've got a file called functions.lib which contains the following:
function checkLoggedIn()
{
return (true);
}
function Test ($x)
{
return ($x * $x);
}
and a file called test.php which contains the following:
<?php
include 'functions.lib';
if (checkLoggedIn())
{
print "Logged in";
}
else
{
print "Not logged in";
}
?>
They're both stored in a directory called 'test' which Ive uploaded to
my webserver. When I call test.php from my browser I get the following
output:
function checkLoggedIn() { return (true); } function Test ($x) {
return ($x * $x); }
Fatal error: Call to undefined function: checkloggedin() in
/home/sites/site116/web/test/test.php on line 5
Why can't I call the function defined in the lib file?
Thanks
AW
--- End Message ---
--- Begin Message ---
Hi,
How can i load another php file ("another.php") directly without an action
(example: clicking on a button)?
I'd like to do in my php script:
if(isset($var1)) { // load another.php }
It is possible to include the file, but i just want to load the whole
"another.php" file.
I guess that there should be a php command like "load", but i didnt found it
yet.
Who can help me?
Regards, Arnold
--- End Message ---
--- Begin Message ---
if(isset($var1)) { include 'another.php'; }
> Hi,
>
> How can i load another php file ("another.php") directly without an action
> (example: clicking on a button)?
> I'd like to do in my php script:
>
> if(isset($var1)) { // load another.php }
>
> It is possible to include the file, but i just want to load the whole
> "another.php" file.
> I guess that there should be a php command like "load", but i didnt found
> it
> yet.
>
> Who can help me?
>
> Regards, Arnold
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Does an "include" replace the file who called include?
Arnold
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> if(isset($var1)) { include 'another.php'; }
>
>
>
> > Hi,
> >
> > How can i load another php file ("another.php") directly without an
action
> > (example: clicking on a button)?
> > I'd like to do in my php script:
> >
> > if(isset($var1)) { // load another.php }
> >
> > It is possible to include the file, but i just want to load the whole
> > "another.php" file.
> > I guess that there should be a php command like "load", but i didnt
found
> > it
> > yet.
> >
> > Who can help me?
> >
> > Regards, Arnold
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
I don't think include replaces the calling php script.
What i mean is that i want exactly the same as what is done by an "submit"
action but then you have to press a button, whereafter a new phpfile is
loaded and the button-press is what i want to ignore.
Arnold
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> if(isset($var1)) { include 'another.php'; }
>
>
>
> > Hi,
> >
> > How can i load another php file ("another.php") directly without an
action
> > (example: clicking on a button)?
> > I'd like to do in my php script:
> >
> > if(isset($var1)) { // load another.php }
> >
> > It is possible to include the file, but i just want to load the whole
> > "another.php" file.
> > I guess that there should be a php command like "load", but i didnt
found
> > it
> > yet.
> >
> > Who can help me?
> >
> > Regards, Arnold
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
Hmmm, I'm not sure I am following you. Maybe:
header ("Location: page.php");
exit;
So you could do something like: if this condition then go to new page,
else go to other page?
-dg
On Oct 2, 2004, at 9:44 AM, Arnold wrote:
I don't think include replaces the calling php script.
What i mean is that i want exactly the same as what is done by an
"submit"
action but then you have to press a button, whereafter a new phpfile is
loaded and the button-press is what i want to ignore.
Arnold
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
if(isset($var1)) { include 'another.php'; }
Hi,
How can i load another php file ("another.php") directly without an
action
(example: clicking on a button)?
I'd like to do in my php script:
if(isset($var1)) { // load another.php }
It is possible to include the file, but i just want to load the whole
"another.php" file.
I guess that there should be a php command like "load", but i didnt
found
it
yet.
Who can help me?
Regards, Arnold
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
"Arnold" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> How can i load another php file ("another.php") directly without an action
> (example: clicking on a button)?
> I'd like to do in my php script:
>
> if(isset($var1)) { // load another.php }
>
> It is possible to include the file, but i just want to load the whole
> "another.php" file.
> I guess that there should be a php command like "load", but i didnt found it
> yet.
>
What is wrong with include or include_once?
> Who can help me?
>
> Regards, Arnold
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
[snip]
How can i load another php file ("another.php") directly without an action
(example: clicking on a button)?
[/snip]
If you're looking to check a condition and then add another php file
to your existing page then;
if(isset($var1)) {
include ('another.php');
or
include_once('another.php');
}
is what you're looking for.
If you're looking to redirect to another file based on a condition then;
if(isset($var)){
header('Location: another.php');
}
will work.
alex hogan
--- End Message ---
--- Begin Message ---
This (header() function) works only if this is the first output sent to
browser so later in the script this doesnt work anymore, i've tried that.
After that you get error messages like: "Warning: Cannot modify header
information - headers already sent by (output started at
D:\Inetpub\wwwroot\xxxxxxx.php:5) in D:\Inetpub\wwwroot\xxxxxx.php on line
31"
So what i want is to go to another php file everywhere in the php script
with something like: if(thisistrue) { load yyyyy.php; exit; }
Arnold
"Lists" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hmmm, I'm not sure I am following you. Maybe:
>
> header ("Location: page.php");
> exit;
>
> So you could do something like: if this condition then go to new page,
> else go to other page?
>
> -dg
>
> On Oct 2, 2004, at 9:44 AM, Arnold wrote:
>
> > I don't think include replaces the calling php script.
> > What i mean is that i want exactly the same as what is done by an
> > "submit"
> > action but then you have to press a button, whereafter a new phpfile is
> > loaded and the button-press is what i want to ignore.
> >
> > Arnold
> > <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> if(isset($var1)) { include 'another.php'; }
> >>
> >>
> >>
> >>> Hi,
> >>>
> >>> How can i load another php file ("another.php") directly without an
> > action
> >>> (example: clicking on a button)?
> >>> I'd like to do in my php script:
> >>>
> >>> if(isset($var1)) { // load another.php }
> >>>
> >>> It is possible to include the file, but i just want to load the whole
> >>> "another.php" file.
> >>> I guess that there should be a php command like "load", but i didnt
> > found
> >>> it
> >>> yet.
> >>>
> >>> Who can help me?
> >>>
> >>> Regards, Arnold
> >>>
> >>> --
> >>> PHP General Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--- End Message ---
--- Begin Message ---
Arnold wrote:
This (header() function) works only if this is the first output sent to
browser so later in the script this doesnt work anymore, i've tried that.
After that you get error messages like: "Warning: Cannot modify header
information - headers already sent by (output started at
D:\Inetpub\wwwroot\xxxxxxx.php:5) in D:\Inetpub\wwwroot\xxxxxx.php on line
31"
So what i want is to go to another php file everywhere in the php script
with something like: if(thisistrue) { load yyyyy.php; exit; }
Once again, why cannot you use inlude()?
If include() does not work for you, you have to rethink the logic of
your script.
--- End Message ---
--- Begin Message ---
I created another php page with html and php code in it. What i want is
exact what is done in an form action when a new php file is loaded, but
without letting the customer pushing a button.
Include works for including php code with functions and the header()
function works if it is the first output sent in the script (otherwise you
get errors like: Warning: Cannot modify header information - headers already
sent by (output started at D:\Inetpub\wwwroot\xxxxxx.php:5) in
D:\Inetpub\wwwroot\xxxxxx.php on line 31
But what i want is to load another php/html script and stop the running
script. I guess it should be done with the header() function but then i have
to put the test rigth in the beginning of the script?
Arnold
"Alex Hogan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [snip]
> How can i load another php file ("another.php") directly without an action
> (example: clicking on a button)?
> [/snip]
>
> If you're looking to check a condition and then add another php file
> to your existing page then;
>
> if(isset($var1)) {
> include ('another.php');
> or
> include_once('another.php');
> }
> is what you're looking for.
>
> If you're looking to redirect to another file based on a condition then;
>
> if(isset($var)){
> header('Location: another.php');
> }
>
> will work.
>
>
> alex hogan
--- End Message ---
--- Begin Message ---
Ok, i can live with it, include works but this doesnt replace the whole
running script, only the rest of the script (what is still coming), so if a
few things have been written in "a.php", when "include('b.php') is executed,
this "b.php" does not replace all the (allready written) output of "a.php".
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Arnold wrote:
> > This (header() function) works only if this is the first output sent to
> > browser so later in the script this doesnt work anymore, i've tried
that.
> > After that you get error messages like: "Warning: Cannot modify header
> > information - headers already sent by (output started at
> > D:\Inetpub\wwwroot\xxxxxxx.php:5) in D:\Inetpub\wwwroot\xxxxxx.php on
line
> > 31"
> > So what i want is to go to another php file everywhere in the php script
> > with something like: if(thisistrue) { load yyyyy.php; exit; }
> >
>
> Once again, why cannot you use inlude()?
>
> If include() does not work for you, you have to rethink the logic of
> your script.
--- End Message ---
--- Begin Message ---
Arnold wrote:
Ok, i can live with it, include works but this doesnt replace the whole
running script, only the rest of the script (what is still coming), so if a
few things have been written in "a.php", when "include('b.php') is executed,
this "b.php" does not replace all the (allready written) output of "a.php".
That's how the life goes. Once you say something, you can't take it
back. So think first, then open your mouth :) (put your logic before the
output).
--- End Message ---
--- Begin Message ---
For my own clarification, would it not be possible to use output buffering
and then either redirect to another script using header() or output the
buffer contents?
<?php
ob_start();
[php code]
if ($variable = 1)
header("Location: script1.php");
if ($variable = 2)
header("Location: script2.php");
ob_flush();
?>
thanks
Graham
-----Original Message-----
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 02 October 2004 21:07
To: Arnold
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to load another php page?
Arnold wrote:
> Ok, i can live with it, include works but this doesnt replace the whole
> running script, only the rest of the script (what is still coming), so if
a
> few things have been written in "a.php", when "include('b.php') is
executed,
> this "b.php" does not replace all the (allready written) output of
"a.php".
That's how the life goes. Once you say something, you can't take it
back. So think first, then open your mouth :) (put your logic before the
output).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
search the history.
questions about compiling are already asked before, so search for it. I
wouldn's know.
"Mag" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> Is there any app that converts php to a stand alone
> version?
>
> like a windows .exe program.
>
>
> Just curious.
>
> Thanks,
> Mag
>
> =====
> ------
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
--- End Message ---
--- Begin Message ---
As I mentioned earlier, I am putting a team together to create a
web-based RPG, different from the one I am currently playing. Would
it be better to use PHP4 with it's strong developer base, or the new
PHP5 which is more object oriented an in my opinion would be easier to
keep the game up to date?
--
Michael Lauzon
P.S. This is the game I am playing, but I have ideas that I think can
be done better than what was done for this game -- but everyone always
says that!:
http://phantasyrpg.com/main.php?view=9898
--- End Message ---
--- Begin Message ---
Thanks to the responses I got. One of them will surely work for me.
Mike B.
On Sat, 2004-10-02 at 01:35, Marek Kilimajer wrote:
> barsalou wrote:
> > I know I can see if php has the ability to talk with the Mysql server,
> > but is there a way to determine if the Mysql server is running. In some
> > cases, I wouldn't have passwords, so a mysql_connect wouldn't work.
>
> I'm sure, at any given time, there is a mysql server running somewhere
> in the world.
>
> If you mean if it is running on your server, run
>
> ps ax |grep mysqld | grep -v grep
--- End Message ---
--- Begin Message ---
"Jensen, Kimberlee" <[EMAIL PROTECTED]> wrote:
What do you use for your naming conventions for
variables
functions
classes
I'm trying to tell my students what the standard is currently. Are people using
camel case or underscores or both?
I use this:
$a_variable
ClassName
a_function()
aMethod()
--- End Message ---
--- Begin Message ---
Manuel Lemos wrote:
AFAIK PHP runs safely in multi-threaded servers. What you can't expect
is that PHP handles abnormal situations caused by flaws in the external
libraries that PHP links with.
When I link with the same library in a C app, this 'abnormal situation'
just results in a normal return from 'gzinflate' with an error value.
So why is it a flaw in code from zlib?
Maybe you should try this script on a multi-threaded webserver. Is this
also caused by flaws in external libraries?
<?php
function f()
{
f();
}
f();
?>
--- End Message ---