php-windows Digest 29 Jan 2002 22:19:28 -0000 Issue 975

Topics (messages 11681 through 11703):

Re: how to increase memory
        11681 by: Mike Maltese
        11682 by: "Spychała, Wojciech"
        11685 by: Piotr Pluciennik

Re: mail to too many users
        11683 by: Ross Fleming
        11687 by: Martin Lindhe
        11688 by: Svensson, B.A.T. (HKG)
        11694 by: Symeon Charalabides
        11700 by: Martin Lindhe

password protection
        11684 by: Martin.Andrew

Re: Is ISAPI stable ?
        11686 by: Samuel Collado

php 4.1 / xitami on a Win2k computer
        11689 by: Wolfgang Schneider
        11690 by: Martin Lindhe
        11691 by: Wolfgang Schneider
        11699 by: Wolfgang Schneider

XML-RPC & PHP Windows
        11692 by: Vincent Blavet

listing of column names...
        11693 by: Afan Pasalic
        11695 by: Piotr Pluciennik
        11696 by: Symeon Charalabides
        11698 by: Afan Pasalic

PHP 4.0.6 On Win2k IIS5
        11697 by: Jozsef Szilagyi

PHP ISAPI Filter on Windows 2K
        11701 by: Zackary Wilson

is create_function slow?
        11702 by: Emile Bosch

Shared Memory/Shmop on Windows
        11703 by: Gary Penn

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 ---
In the php.ini file under the heading "Resource Limits".

memory_limit = 8M ;<-- change this to whatever you need it to be


----- Original Message -----
From: "Spychała, Wojciech" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 12:24 AM
Subject: [PHP-WIN] how to increase memory


> I want to put file into variable but i have problems with files bigger
than
> 8MB - apache sais "Cannot allocate memory"
> where should I set this memory??
>
> Thanks,
> Greetings
>
> Wojciech
>
> --
> 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 ---
--- Begin Message ---
nop i've changet it to 64MB and its still the same 
(APache, PHP 4,04pl Win95 :-(

-----Original Message-----
From: Mike Maltese [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] how to increase memory


In the php.ini file under the heading "Resource Limits".

memory_limit = 8M ;<-- change this to whatever you need it to be


----- Original Message -----
From: "Spychała, Wojciech" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 12:24 AM
Subject: [PHP-WIN] how to increase memory


> I want to put file into variable but i have problems with files bigger
than
> 8MB - apache sais "Cannot allocate memory"
> where should I set this memory??
>
> Thanks,
> Greetings
>
> Wojciech
>
> --
> 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]
>
>



-- 
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 ---
--- Begin Message ---
Wojtku,

check if you've changed correct php.ini (look for all
php.ini in your machine). Sometimes by mistake you've
got more than one php.ini in different dirs and edit
not the appropriate one.

Greetings

Piotr


 --- "Spychała,_Wojciech" <[EMAIL PROTECTED]> wrote: >
nop i've changet it to 64MB and its still the same 
> (APache, PHP 4,04pl Win95 :-(
> 
> -----Original Message-----
> From: Mike Maltese [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] how to increase memory
> 
> 
> In the php.ini file under the heading "Resource
> Limits".
> 
> memory_limit = 8M ;<-- change this to whatever you
> need it to be
> 
> 
> ----- Original Message -----
> From: "Spychała, Wojciech" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 29, 2002 12:24 AM
> Subject: [PHP-WIN] how to increase memory
> 
> 
> > I want to put file into variable but i have
> problems with files bigger
> than
> > 8MB - apache sais "Cannot allocate memory"
> > where should I set this memory??
> >
> > Thanks,
> > Greetings
> >
> > Wojciech
> >
> > --
> > 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]
> >
> >
> 
> 
> 
> -- 
> 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]
> 
> --
> 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]
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
A byte per character.

-----Original Message-----
From: Mostafa Al-Mallawani [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2002 05:43
To: 'Angie Tollerson'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] mail to too many users


How big would a string of 19000 email addresses be?  Can anyone
estimate?

-----Original Message-----
From: Angie Tollerson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 28, 2002 11:55 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] mail to too many users

Last I heard BCC and CC wasn't working for Windows...it would only send
to the first person in the list.  That's what it did for me 6 months
ago..has that been fixed? 
Thanks!
Angie

>>> "Jim Lucas [php]" <[EMAIL PROTECTED]> 01/28/02 03:47PM >>>
with php's mail() funciton you can send to multiple recipents via the
headers.  just build the headers so it will BCC to everybody at once.
one word of caution, you can only have a header that is 5kb or
smaller.
otherwise php will start truncating the header.  Found that out the
hard
way.

so, just build a big header and send out 300 at a time.

Jim Lucas
----- Original Message -----
From: "Mostafa Al-Mallawani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 11:41 AM
Subject: [PHP-WIN] mail to too many users


> I need to send an email to 19000 users using a script, any
suggestions.
> Looping on a result set using the mail function would kill the
server.
> I know it can be done using a mailing list module but I'm running a
> windows machine with IIS, what's the best thing for this?  Thanks.
>


-- 
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] 




-- 
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 ---
--- Begin Message ---
> How big would a string of 19000 email addresses be?  Can 
> anyone estimate?

you wouldnt want to send all mails in one call to mail(), loop and do a
couple of hundred bcc's in each time or something

/Martin
--- End Message ---
--- Begin Message ---
>From: Mostafa Al-Mallawani
>Sent: Tuesday, January 29, 2002 6:43 AM

>How big would a string of 19000 email addresses be?  Can anyone estimate?

Anything between 200KB and 1MB.
--- End Message ---
--- Begin Message ---
> >>> "Jim Lucas [php]" <[EMAIL PROTECTED]> 01/28/02 03:47PM >>>
> with php's mail() funciton you can send to multiple recipents via the
> headers.  just build the headers so it will BCC to everybody at once.
> one word of caution, you can only have a header that is 5kb or
> smaller.
> otherwise php will start truncating the header.  Found that out the
> hard
> way.
> 
> so, just build a big header and send out 300 at a time.
> 
It's not like the messages will not still be placed in the job queue, or that the 
server will not have to parse each address one by one, if they're in the Cc or 
BCc header: you may as well place the addresses in the To: field, separated by 
commas for all the difference it will make.
Sending them out in lumps of 100s is likely to be more server-friendly, though. 
Can you schedule the equivalent of a Cron job on IIS?
Have you experimented with the PHP 'sleep' and 'usleep' functions? Maybe you 
can give the server time to catch its breath this way...
> 
> 
> > I need to send an email to 19000 users using a script, any
> suggestions.
> > Looping on a result set using the mail function would kill the
> server.
> > I know it can be done using a mailing list module but I'm running a
> > windows machine with IIS, what's the best thing for this?  Thanks.
> >


Symeon Charalabides (cosmopolitan trainee)
------------------------------------------
Rm 305, IT centre, NUI Galway, Ireland.
+353-91-524411 x3180

http://www.it.nuigalway.ie/~symeon/

--- End Message ---
--- Begin Message ---

> > >>> "Jim Lucas [php]" <[EMAIL PROTECTED]> 01/28/02 03:47PM >>>
> > with php's mail() funciton you can send to multiple 
> recipents via the 
> > headers.  just build the headers so it will BCC to 
> everybody at once. 
> > one word of caution, you can only have a header that is 5kb or 
> > smaller. otherwise php will start truncating the header.  
> Found that 
> > out the hard
> > way.
> > 
> > so, just build a big header and send out 300 at a time.
> > 
> It's not like the messages will not still be placed in the 
> job queue, or that the 
> server will not have to parse each address one by one, if 
> they're in the Cc or 
> BCc header: you may as well place the addresses in the To: 
> field, separated by 
> commas for all the difference it will make.
> Sending them out in lumps of 100s is likely to be more 
> server-friendly, though. 
> Can you schedule the equivalent of a Cron job on IIS?
> Have you experimented with the PHP 'sleep' and 'usleep' 
> functions? Maybe you 
> can give the server time to catch its breath this way...

I strongly disagree with putting all recipients in the To: field,
you just dont want to give out all other peoples mail-addresses
when they recieve the mail. That's why a Bcc: field exists (blind carbon
copy) :)
/Martin


> > 
> > 
> > > I need to send an email to 19000 users using a script, any
> > suggestions.
> > > Looping on a result set using the mail function would kill the
> > server.
> > > I know it can be done using a mailing list module but I'm 
> running a 
> > > windows machine with IIS, what's the best thing for this?  Thanks.
> > >
> 
> 
> Symeon Charalabides (cosmopolitan trainee)
> ------------------------------------------
> Rm 305, IT centre, NUI Galway, Ireland.
> +353-91-524411 x3180
> 
http://www.it.nuigalway.ie/~symeon/


-- 
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 ---
--- Begin Message ---
Part of my site is PHP based the other part is HTML. I want to certain parts
of the site to only be available to users with valid passwords.

The current solution uses a .htaccess file, where the user has to enter
valid username and password to gain access. This is fine but pretty basic,
the user must know the url in the first place.

I would like one entry point redirecting specific users to the particular
part of the site they have access to. I thought about session management and
again this would work fine if all sub sites were PHP based, but this not the
case as some site will be HTML.

Is there another solution or an easy workaround?

Andrew

--- End Message ---
--- Begin Message ---
I think so.

I work with php 4.1.0 on IIS 5 (Windows 2000) with php_mssql.dll and 
php_oracle.dll and all it's ok. We have done some tests with Mercury 
LodeRunner with many SQL requests at the same time and we noticed some 
memory leak but it was IIS fault ! PHP is, in my opinion, stable with 
these dll.

Samuel

Steen Rabol wrote:

> Hi
> 
> According to the install.txt of php, the ISAPI version is not stable, but.... that 
>statement have been there for about 1 year, so my question is: Is ISAPI version 
>considered stable ?
> 
> Thanks in advance.
> 
> Best
> Steen
> 
> 
> 

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

I am running Xitami together with PHP 4.1 and mySQL on a Win2k
computer for locally testing websites ... everything seems to work
fine, except for a bit of a strange thing I encountered now .

When running the phpinfo() to get all the values for the system
variables etc ... the PHP_SELF variable is blank/empty .... it should
normally return the URL of the webpage from where you call the
phpinfo () function or the variable itself.

Anyone have an idea where the mistake might be? some Xitami server
setting somewhere? perhaps a setting in the php.ini configuration?
Any help is much appreciated. Thanks!

God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 



--- End Message ---
--- Begin Message ---
> Hello all,
> 
> I am running Xitami together with PHP 4.1 and mySQL on a 
> Win2k computer for locally testing websites ... everything 
> seems to work fine, except for a bit of a strange thing I 
> encountered now .
> 
> When running the phpinfo() to get all the values for the 
> system variables etc ... the PHP_SELF variable is blank/empty 
> .... it should normally return the URL of the webpage from 
> where you call the phpinfo () function or the variable itself.
> 
> Anyone have an idea where the mistake might be? some Xitami 
> server setting somewhere? perhaps a setting in the php.ini 
> configuration? Any help is much appreciated. Thanks!

Does _SERVER["PHP_SELF"] under "PHP Variables" have a value?

/Martin
--- End Message ---
--- Begin Message ---
Hello Martin,

>Does _SERVER["PHP_SELF"] under "PHP Variables" have a value?

just as empty as the PHP_SELF ... :-(      

Also empty is  _SERVER["PATH_INFO"], 

_SERVER["PATH_TRANSLATED"]
_SERVER["DOCUMENT_ROOT"]

are both returning the proper directories.
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 


--- End Message ---
--- Begin Message ---
Hi everyone,

I've got the problem with the PHP_SELF question solved ... someone
did supply me with some code that "did the trick".  If anyone is
interested, here it is:
___________________________________

// Under Apache $PHP_SELF is needed, under Xitami it is $SCRIPT_NAME
// Find out based on which one has ".php" in it.
if (ereg ("\.php", $SCRIPT_NAME)) $CONSTANT_SELF = $SCRIPT_NAME;
else $CONSTANT_SELF = $PHP_SELF;
$CONSTANT_SELF = str_replace ("\\\\", "/", $CONSTANT_SELF);

        Then just use $CONSTANT_SELF
____________________________________

A different error message keeps coming up though which concerns
"sessions" and which I have no clue why this is happening ... it is
this:

Warning: open(/tmp\sess_9f1832e85d3853950d3467fac55b1d75, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on
line 0

I've not had experience with php 4.1 and sessions ... is there a
folder and file I need to "manually" create so that the php script
then can write session data to it?

Again, I appreciate your help ... either on the list or off list (is
that would be more appropriate, seeing that my questions perhaps are
too much of the  "beginner / newbie" type.



God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 



--- End Message ---
--- Begin Message ---
What should I do to have support of XML-RPC on the PHP compile for Windows ?

Is it included in the compile ?
Is an extension ? Which one ?

It seems to be a compilation options in linux.

Thanks for your help,

Vincent
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Hi all,
I need a function to make a list of names of columns of specific table. 
Any fast help? I was searching in MySQL documentation but I can't find it (I didn't 
say is not there...)
Thanks!


Afan
--- End Message ---
--- Begin Message ---
Try this:

http://www.php.net/manual/en/function.mysql-fetch-field.php

Piotr

 --- Afan Pasalic <[EMAIL PROTECTED]> wrote: > Hi all,
> I need a function to make a list of names of columns
> of specific table. 
> Any fast help? I was searching in MySQL
> documentation but I can't find it (I didn't say is
> not there...)
> Thanks!
> 
> 
> Afan
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
> Hi all,
> I need a function to make a list of names of columns of specific table. 
> Any fast help? I was searching in MySQL documentation but I can't find it (I
> didn't say is not there...) Thanks!
> 
mysql_field_name
mysql_fetch_field

Use externally, twice a day.

Symeon Charalabides (cosmopolitan trainee)
------------------------------------------
http://www.webmate.gr

--- End Message ---
--- Begin Message ---
Thanks guys, that was really fast. And helpful... Exactly what I needed...

Afan
--- End Message ---
--- Begin Message ---
I'm using PHP on a Win2k dual intel processor Server
to access an Oracle database, this working fine for
some days, but yesterday morning a strange event log appeared in the server
is anybody have any idea, about this ?

Thank you,
JSz

Event log :
----------------------------------------------------
Event Type: Error
Event Source: WAM
Event Category: None
Event ID: 204
Date: 1/28/2002
Time: 7:20:15 AM
User: N/A
Computer: SVWEB
Description:
The HTTP server encountered an unhandled exception while
processing the ISAPI Application '
php4ts!_efree + 0xA4
'.
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
----------------------------------------------------



--- End Message ---
--- Begin Message ---
 
  I am trying to bring PHP 4.1.1 up on a Dell Poweredge 1500, running
Windows 2K, SP2 and IIS 5. I have it running on an almost identical test
machine right beside it. However, when I try to restart the server, the
ISAPI filter fails to load, and I get a message in the Event Viewer
saying - 
 
 
Source: W3SVC
Category: None
Type: Error
Event ID: 14
User: N/A
 
Description:
The HTTP Filter DLL C:\WINNT\system\php4isapi.dll failed to load.  The
data is the error. 
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
 
  I have the php4isapi.dll file located in the winnt/system directory
(Although I also have a coopy in the system32 directory and I get the
same error) I have copied all of my .dll's from the php/dll and
php/extension folder over to both the system and system32 directory and
have the php.ini file in the winnt directory. For now I have installed
it as a cgi, but I've been told there are a lot of speed benefits gained
from running as an ISAPI filter. Can anyone help me out, or set me
straight if I don't need ISAPI?
 
Thanks!
Zack
--- End Message ---
--- Begin Message ---

From: "Emile Bosch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: is create_function slow?
Date: dinsdag 29 januari 2002 14:17

Hi, is create function slow? Or has it a very significant slowdown compared
to an include?

i might want to create functions on the fly if it isn't tooo slow..

warm regards,
Emile Bosch




--- End Message ---
--- Begin Message ---
I am porting a website from a Unix server to IIS 5.0 on W2K Advanced
Server.  The PHP code currently is using Shared Memory calls.  My
developer tells me the information is shmop-based.

Here's a sample of the code.  The site is not functioning as it's
supposed to and I believe this may be the reason.  Does anyone have
suggestions?  I'm a newbie to PHP.

<?

$sharedmemory_pclass = true;

define(SHMEM_INDEX_ID,          0x77770);
define(SHMEM_SESSION_ID,        0x77771);
define(SHMEM_LOCKSEM,           0x77772);

define(SHMEM_INDEX_SIZE,        262144);
define(SHMEM_SHARED_SIZE,       1048576);

define(SHMEM_SEQUENCE_KEY,      1);
define(SHMEM_INDEX_KEY,         2);
define(SHMEM_COLLECT_KEY,       3);

class SharedMemory {
   var $_IndexSem;

   var $_IndexShr;
   var $sessionShr;
   var $next_collect; /* Timestamp of next expected garbage collect */


   function SharedMemory() 
   {
      //try to create the memory shares
//     2001-03-05 JvO: this does not seem to work; let's just hope the
segments are detached at process exit
//      register_shutdown_function("_onExit");

      $this->_IndexShr = @shm_attach(SHMEM_INDEX_ID, SHMEM_INDEX_SIZE);
      $this->sessionShr = @shm_attach(SHMEM_SESSION_ID,
SHMEM_SHARED_SIZE);
      $this->next_collect = @shm_get_var($this->_IndexShr,
SHMEM_COLLECT_KEY);
      if ($this->next_collect <= 0)
        $this->next_collect = 0x7fffffff; /* way into the future :) */
   }

   function destroy() {
      @shm_detach($this->_IndexShr);
      @shm_detach($this->sessionShr);
   }

   // private functions

=========================================
Gary Penn, MCSE, MCP+I, OCP
Webmaster/Systems Support, Shimano, Inc.
One Holland, Irvine, CA 92618 USA
+1 949 9515003  |  Fax +1 949 9516212
http://www.shimano.com
_________________________________________
--- End Message ---

Reply via email to