I wrote a PHP extension a while ago that implements executor persistence
for scalar variables and constants. I never looked much into persisting
objects, arrays or resources but it would be a useful addition to the
extension if someone wants to contribute. I haven't updated the Web site
with the
If you have the ability to compile extensions into PHP and you're not
running under Windows you may find useful an extension I wrote that is one
solution to this problem (and more).
http://pwee.sourceforge.net/
Note that I haven't yet compiled it under anything later than PHP 4.2.1.
Lance
If you only need to persist a handful of request-agnostic variables you may
be able to make use of an extension I wrote. Note that it doesn't work under
Windows and I haven't tested it under PHP 4.3.x.
http://pwee.sourceforge.net/
Lance
-Original Message-
From: Santiago Peirano
Did you try this class?
http://www.phpconcept.net/pclzip/index.en.php
Is there function library capable of creating zip files and
adding files to a zip archive under the windows/apache
platform? After some extensive browsing I can only turn
up read-only access functions.
--
PHP General
If you are not running PHP under a Windows platform and can compile
extensions into PHP the most efficient way to solve problem #2 may be with a
PHP extension I developed. It handles constants and provides a type of
persistent variable too. It has been immensely useful for my projects.
The most efficient way to solve your problem is with a PHP extension I
developed. It handles constants and provides a type of persistent variable
too. It has been immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
-Original Message-
From: Mike Mannakee [mailto:[EMAIL
If you are not running PHP under a Windows platform the most efficient way
to solve your problem is with a PHP extension I developed. It handles
constants and provides a type of persistent variable too. It has been
immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
If you happen to be running *nix (which it sounds like you are) and want to
compile the Pwee extension into PHP you can have access to constants like
SERVER_HOSTNAME.
http://pwee.sourceforge.net
Lance
-Original Message-
From: Spongle [mailto:[EMAIL PROTECTED]]
Sent: Monday, October
I wrote the PWEE PHP extension to solve this exact problem.
http://pwee.sourceforge.net
It's great for constants but it's true power comes from executor
persistent variables. I haven't updated the web site but it does work with
PHP 4.2.3.
Lance
-Original Message-
From:
Here's the function I use:
// array array_permute(array [, string])
//
// Returns an array containing the permutations of the values in an array.
//
// Example:
// $a = array(1, 2, 3);
// $p = array_permute($a)
//
// Result:
// p[0] = '1,2,3'
// p[1] = '1,3,2'
// p[2] = '2,1,3'
// p[3] = '2,3,1'
Take a look at this PHP extension and see if it will help solve your
problem. It doesn't work on Windows yet though...
http://pwee.sourceforge.net
Lance
-Original Message-
From: Warrick Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 2:49 PM
To: [EMAIL PROTECTED]
The short answer - efficiency. The FAQ has a more elaborate explanation.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:14 AM
To: 'Lance Lovette'; Warrick Wilson; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a global variable for all
I am calling fsockopen with a timeout parameter of 60 seconds. Despite the
timeout value however fsockopen on some servers doesn't return for 10 to 13
minutes. The error given is usually Connection timed out and sometimes No
route to host. Is this much of a delay to be expected? Is there any way
Something was changed between 4.0.5 and 4.0.6 and now there is no way to determine the
host name of the local host from a PHP script when executed in Apache. The output of
phpinfo shows that the HOSTNAME environment variable that existed in 4.0.5 is not
available in 4.0.6. This affects the
I want to base the database a PHP script uses on the IP address of the
server running the script. What is the fastest way to get the IP address of
the server from a script? I could use environment variables but they are
unreliable (when run from cron for example, the environment doesn't have all
-
From: wx [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 5:09 PM
To: Lance Lovette
Subject: Re: [PHP] IP of server?
Why just not use the built in variables:
$SERVER_ADDR
$SERVER_NAME
not that tough, :)
- Rob
- Original Message -
From: "Lance Lovette" [EMAIL
16 matches
Mail list logo