RE: [PHP] Persistent PHP web application?

2005-01-08 Thread Lance Lovette
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

RE: [PHP] Global persistent variables

2004-08-12 Thread Lance Lovette
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

RE: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Lance Lovette
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

RE: [PHP] An extension to CREATE zips??

2004-03-16 Thread Lance Lovette
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

RE: [PHP] caching variables and preloading functions

2003-06-02 Thread Lance Lovette
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.

RE: [PHP] Persistent values between executions

2003-03-15 Thread Lance Lovette
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

RE: [PHP] Best way to set global params for entire site??

2002-10-26 Thread Lance Lovette
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

RE: [PHP] Getting fully qualified host name

2002-10-07 Thread Lance Lovette
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

RE: [PHP] Static constants? Server persistent?

2002-10-05 Thread Lance Lovette
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:

RE: [PHP] Generate every possible combination

2002-05-16 Thread Lance Lovette
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'

RE: [PHP] Creating a global variable for all PHP pages?

2002-03-20 Thread Lance Lovette
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]

RE: [PHP] Creating a global variable for all PHP pages?

2002-03-20 Thread Lance Lovette
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

[PHP] fsockopen doesn't time out for 10 minutes

2001-07-20 Thread Lance Lovette
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

[PHP] Cannot determine HOSTNAME in 4.0.6?

2001-06-29 Thread Lance Lovette
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

[PHP] IP of server?

2001-03-28 Thread Lance Lovette
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

RE: [PHP] IP of server?

2001-03-28 Thread Lance Lovette
- 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