Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Curt Zirzow
* Thus wrote j kensler:
 1:11
 1:15
 1:19

heh.. I got this all graphed out on paper :)

I'm simply looking for patterns to decipher what ever this is abut:

  - 7 (0x111) is an  important key, no bit is ever added more than that
  - only one 10:XX - 10:07
  - differences only occure between 1,2,3,4,7; cept when carried
into the next hour.
0x001, 0x010, 0x011, 0x0100, 0x111

I know I'm way off but, those are some of  my observations of the
patterns involved.


Curt
-- 
The above comments may offend you. flame at will.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php script run by cron job

2004-10-01 Thread Merlin
Hi there,
I already managed it to run a php script by cron, but now I cant remember the 
exact syntax. Somehow it does not work. /var/log/messages tells me that cron has 
called the line, but it never runs. I did try to run the line without cron and 
it works.

Here is the how I did it:
14 8 * * *  root  /usr/local/bin/php /home/www/cron/statistics.php
Does anybody see an error in this?
Thanx, Merlin
PS: I also tried to run this as www but same results
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread I.A. Gray
Hi,

My brain is working very slowly this morning (maybe that is because of
having 5hrs sleep...)
Could someone help me with this problem.

I would like to show a different CD with information on it, on the home page
each week- a kind of 'recording of the week' and I would also like to have
on the same page something that changes every day.

The recordings are in a MYSQL database and I would like all of them (there
are 29 at present) to be shown over how ever long it would take to get
through them (in this case 29 weeks) and then once they have all been shown
this would then repeat.  I would like them to be shown in a random order and
make sure that the recording hasn't been shown within the 29.  The same goes
for the other project which uses a mysql database which I would like to
rotate daily (in this case there are 103 items)

Obviously if I use PHP random functions this will always return a random
number, but how do I produce a random number which relates to the day or
week of the year?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Zend Optimizer not installed

2004-10-01 Thread Ox
Hey All,

Does anyone know of a hosting company that will provide Zend Optimizer
v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)

I have been helping a guy out who has had a development done and the
developers kindly didnt tell me that they use Zend Optimizer to encode
their pages, and the hosting package even after they said it was
perrfect is now not working cause it doesnt have Zend Optimizer on
it :\

Thanks
Ox

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How do I produce a random database query for each day or week?

2004-10-01 Thread Merlin
Hello Gray,
could you possibly use some case clauses? Lets say you use 7 case clauses for 
the week. And each day has a random number. So you do a random on Monday and 
then you sort it out int the monday case statement and so on.

Just an idea,
Merlin
I.A. Gray wrote:
Hi,
My brain is working very slowly this morning (maybe that is because of
having 5hrs sleep...)
Could someone help me with this problem.
I would like to show a different CD with information on it, on the home page
each week- a kind of 'recording of the week' and I would also like to have
on the same page something that changes every day.
The recordings are in a MYSQL database and I would like all of them (there
are 29 at present) to be shown over how ever long it would take to get
through them (in this case 29 weeks) and then once they have all been shown
this would then repeat.  I would like them to be shown in a random order and
make sure that the recording hasn't been shown within the 29.  The same goes
for the other project which uses a mysql database which I would like to
rotate daily (in this case there are 103 items)
Obviously if I use PHP random functions this will always return a random
number, but how do I produce a random number which relates to the day or
week of the year?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: include_path and safe_mode in virtualhost

2004-10-01 Thread Christian Ista
 because you've got allow_url_fopen = On. safe_mode doesn't stop that. You 
 need to turn the allow_url_fopen Off to limit that ability...

Thanks, That's work fine :)


Christian, 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Zend Optimizer not installed

2004-10-01 Thread Graham Cossey
Hi Ox

I'm UK based but currently use GlobalServers in the US
(www.globalservers.com).

They run Virtual Private Servers of 3 levels, 2 of which allow root access.
They do claim to run Zend Optimizer but as yet I have not determined if this
is active on my account.

HTH

Graham.

-Original Message-
From: Ox [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 08:35
To: [EMAIL PROTECTED]
Subject: [PHP] Zend Optimizer not installed


Hey All,

Does anyone know of a hosting company that will provide Zend Optimizer
v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)

I have been helping a guy out who has had a development done and the
developers kindly didnt tell me that they use Zend Optimizer to encode
their pages, and the hosting package even after they said it was
perrfect is now not working cause it doesnt have Zend Optimizer on
it :\

Thanks
Ox

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



Re: [PHP] list of Months

2004-10-01 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote:
Hi,
to create a list of all months in drop-down menu I use this code:
?php
$month_names = array(1='Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',
'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
?
select name=QuoteMonth
option value=/option
?php
for($i=1; $i=12; $i++)
{
 if(date('m') == $i) $selected_QuoteMonth = 'SELECTED';
 else $selected_QuoteMonth = '';
 echo option value=$i $selected_QuoteMonth $i /option;
}
?
/select
What about dumping the $month_names array and using strftime()?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread Graham Cossey
A couple of thoughts:

As you want to cycle through the list rather than randomly (with repetition)
picking from the list, have you considered storing the last CD shown details
in the DB?

If each CD has a sequential ID then each week (or day) you increment the
number which will determine what CD is shown. If the incremented CD id
exceeds the highest id in the DB, restart back at the first id.

You could also include a column (or two) in the CD info table to record when
it was last displayed and check that this is  29 days ago.

What about cookies? Each visitor could then have their own 'cycle' through
the list.

HTH

Graham

-Original Message-
From: I.A. Gray [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 07:34
To: [EMAIL PROTECTED]
Subject: [PHP] How do I produce a random database query for each day or
week?


Hi,

My brain is working very slowly this morning (maybe that is because of
having 5hrs sleep...)
Could someone help me with this problem.

I would like to show a different CD with information on it, on the home page
each week- a kind of 'recording of the week' and I would also like to have
on the same page something that changes every day.

The recordings are in a MYSQL database and I would like all of them (there
are 29 at present) to be shown over how ever long it would take to get
through them (in this case 29 weeks) and then once they have all been shown
this would then repeat.  I would like them to be shown in a random order and
make sure that the recording hasn't been shown within the 29.  The same goes
for the other project which uses a mysql database which I would like to
rotate daily (in this case there are 103 items)

Obviously if I use PHP random functions this will always return a random
number, but how do I produce a random number which relates to the day or
week of the year?

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



Re: [PHP] Zend Optimizer not installed

2004-10-01 Thread Wee Keat
Hi Ox,


 Does anyone know of a hosting company that will provide Zend Optimizer
 v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)

I'm with Lunarpages ( http://www.lunarpages.com ) on a virtual hosting
server and they have Zend Optimizer installed. However, I do not know what
version they are running on.

Hope that helped.



Yours,

Wee Keat Chin
http://www.visualdensity.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php script run by cron job

2004-10-01 Thread Nick Wilson

* and then Merlin declared
 Hi there,
 
 I already managed it to run a php script by cron, but now I cant remember 
 the exact syntax. Somehow it does not work. /var/log/messages tells me that 
 cron has called the line, but it never runs. I did try to run the line 
 without cron and it works.
 
 Here is the how I did it:
 14 8 * * *  root  /usr/local/bin/php /home/www/cron/statistics.php

No, but then im no cron expert either ;-)
Whenever i need to do a cron job i refer to this:
http://www.tech-geeks.org/contrib/mdrone/croncrontab-howto.htm

If the crontab line is executing but the script aint running try this:
14 8 * * *  root  php -q  /home/www/cron/statistics.php

-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
 Hello,
 
 On 10/01/2004 12:47 AM, Sam Smith wrote:
 Can anyone tell why the mail (see below) is not being relayed to
 [EMAIL PROTECTED]:
 
 #Note: There were 2 To: addresses. Below is the header from the successful
 mail to the second address.
 
 Each address will receive different message copies.

I wish.

The problem is the first address is not receiving the message. I suspect the
verizon mail server is rejecting it thinking it's spam because of something
missing in the header.

I put the Note in so no one would be confused by the fact the example mail
*was* delivered successfully.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How I can get x509 certificate distinguished name?

2004-10-01 Thread Diavolo
Hello, All!

I have SSL site, visitor to see a site content need valid certificate. I want to get 
their Distinguished name (DN) and authorize some users without prompting to enter 
username or password. It is possible do by php, other proposes also welcome



Sorry for my English, is not my first language


--
Diavolo
www.news.mums.lt - viskas apie naujien grupes
www.tinklai.ten.lt - lietuvos lokals tinklai

Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Greg Donald
On Thu, 30 Sep 2004 21:05:33 -0500, j kensler [EMAIL PROTECTED] wrote:
 1:11
 1:15
 1:19
 1:26
 1:27
 1:28

What about the durations between the times from frame to frame?

like: 4,4,7,1,1 for the above.  That's what I was graphing out
yesterday evening.  Some definate patterns in there.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Hi,
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Olaf van der Spek wrote:
Hi,
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?
No
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 08:54 AM, Olaf Van Der Spek wrote:
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?
A PHP served request can only crash if there is a bug that makes it crash.
Under Apache pre-fork model only the current process that is serving a 
PHP request will die when the PHP engine crashes. This is why Apache in 
the pre-fork model is more robust than multi-threaded servers like IIS.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 08:54 AM, Olaf Van Der Spek wrote:
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?

A PHP served request can only crash if there is a bug that makes it crash.
Sure. But what is the answer to my question?
Is a (bug in a) script allowed to cause such a crash?
Under Apache pre-fork model only the current process that is serving a 
PHP request will die when the PHP engine crashes. This is why Apache in 
the pre-fork model is more robust than multi-threaded servers like IIS.
Or Apache with the threaded MPM.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Christophe Chisogne
Olaf van der Spek wrote:
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?
Oh yes, at least with php4 as an apache module :(
On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time
(with apache doing gracefull restart) with the following error,
which makes Apache crash (then all its child after some time)
PHP Fatal error:  Unable to start session mm module in Unknown on line 0
I've googled to find a solution. There's a bug related to php dynamic loading,
glibc and some crypto modules (a workaround is to enable the ssl apache module).
But this didnt stop the php4 to crash (last time this morning, 'mon' warned me)
I now use apache restart instead of apache reload, crossing my fingers.
But perhaps I've got unusual config (ex perl script to split logs)
My next try will be to split logs with perl code and a pipe.
Btw if someone has detailed explanations or good workaround,
I'll be glad to hear/read, even with gory details ;-)
Christophe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 09:41 AM, Olaf Van Der Spek wrote:
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP 
itself?

A PHP served request can only crash if there is a bug that makes it 
crash.

Sure. But what is the answer to my question?
Is a (bug in a) script allowed to cause such a crash?
Not bugs in a script but rather in the PHP engine. In theory, the PHP 
engine should never crash but there is no such thing as bug free software.


Under Apache pre-fork model only the current process that is serving a 
PHP request will die when the PHP engine crashes. This is why Apache 
in the pre-fork model is more robust than multi-threaded servers like 
IIS.

Or Apache with the threaded MPM.
If you crash one thread, you kill all threads under the same process. 
That is why that is less robust than using one process to serve only one 
request.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Christophe Chisogne wrote:
Olaf van der Spek wrote:
Are scripts allowed to cause a crash or fatal error of Apache/PHP itself?

Oh yes, at least with php4 as an apache module :(
On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time
(with apache doing gracefull restart) with the following error,
which makes Apache crash (then all its child after some time)
PHP Fatal error:  Unable to start session mm module in Unknown on line 0
That is not a bug in a php script, but in the php engine itself.
I've googled to find a solution. There's a bug related to php dynamic 
loading,
glibc and some crypto modules (a workaround is to enable the ssl apache 
module).
But this didnt stop the php4 to crash (last time this morning, 'mon' 
warned me)
I now use apache restart instead of apache reload, crossing my fingers.
But perhaps I've got unusual config (ex perl script to split logs)
My next try will be to split logs with perl code and a pipe.

Btw if someone has detailed explanations or good workaround,
I'll be glad to hear/read, even with gory details ;-)
Maybe if you lower the logrotate script's priority?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 09:41 AM, Olaf Van Der Spek wrote:
What is the PHP policy regaring crashes and fatal errors?
Are scripts allowed to cause a crash or fatal error of Apache/PHP 
itself?


A PHP served request can only crash if there is a bug that makes it 
crash.

Sure. But what is the answer to my question?
Is a (bug in a) script allowed to cause such a crash?

Not bugs in a script but rather in the PHP engine. In theory, the PHP 
engine should never crash but there is no such thing as bug free software.
So if I report a script that causes such a crash, it should be marked as 
bug (and solved)?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Suggestion for IN()

2004-10-01 Thread Daniel Schierbeck
Jay Blanchard wrote:
You could write a function and share it with the rest of us!
function between ($var, $min, $max)
{
return ($var  $min  $var  $max) ? TRUE : FALSE;
}
function in ()
{
	if (func_num_args()  2)
		trigger_error('You must provide at least one argument for in()', 
E_USER_WARNING);
	
	$haystack = func_get_args();
	$needle   = array_shift($haystack);
	
	return in_array($needle, $haystack) ? TRUE : FALSE;
}

if (in('foo', 'bar', 'foobar', 'foo')) //... TRUE
if (in('foo', 'bar', 'foobar', 'baz')) //... FALSE
if (between(15, 10, 20)) //... TRUE
I'm not sure if you want = and = instead in between(), but you can 
just change it yourself.

Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Christophe Chisogne
Marek Kilimajer wrote:
That is not a bug in a php script, but in the php engine itself.
Indeed, and I found it very annoying.
Maybe if you lower the logrotate script's priority?
Process priority making php crash? I dont understand how.
Ok, I become a little out of topic,
but here's what my apache logrotate config looks like:
/var/log/apache/*.log {
prerotate
  /path/to/splitlogs.pl  /path/to/access.log
endscript
missingok
compress
delaycompress
sharedscripts
postrotate
/path/to/init.d/apache restart  /dev/null
endscript
}
Christophe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Suggestion for IN()

2004-10-01 Thread Christophe Chisogne
Daniel Schierbeck wrote:
return ($var  $min  $var  $max) ? TRUE : FALSE;
 (...)
 return in_array($needle, $haystack) ? TRUE : FALSE;
You can return booleans without comparing them to true/false:
return $var  $min  $var  $max;
return in_array($needle, $haystack);
Christophe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 10:00 AM, Olaf Van Der Spek wrote:
Is a (bug in a) script allowed to cause such a crash?

Not bugs in a script but rather in the PHP engine. In theory, the PHP 
engine should never crash but there is no such thing as bug free 
software.

So if I report a script that causes such a crash, it should be marked as 
bug (and solved)?
Right. There are instructions on how to provide a backtrace so the bug 
report contains information useful enough for a developer to try 
locating and fixing the bug.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Zend Optimizer not installed

2004-10-01 Thread Dan Joseph
Hi,

 Does anyone know of a hosting company that will provide Zend Optimizer
 v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)

www.1and1.co.uk

-Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 10:00 AM, Olaf Van Der Spek wrote:
Is a (bug in a) script allowed to cause such a crash?
Not bugs in a script but rather in the PHP engine. In theory, the PHP 
engine should never crash but there is no such thing as bug free 
software.
So if I report a script that causes such a crash, it should be marked 
as bug (and solved)?
Right. There are instructions on how to provide a backtrace so the bug 
report contains information useful enough for a developer to try 
locating and fixing the bug.
So what went wrong with this bug report?
http://bugs.php.net/bug.php?id=30153
It's marked as bogus, although it provides a script to reproduce the crash.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Suggestion for IN()

2004-10-01 Thread Daniel Schierbeck
Christophe Chisogne wrote:
Daniel Schierbeck wrote:
return ($var  $min  $var  $max) ? TRUE : FALSE;
  (...)
  return in_array($needle, $haystack) ? TRUE : FALSE;
You can return booleans without comparing them to true/false:
return $var  $min  $var  $max;
return in_array($needle, $haystack);
Christophe
Thanks, nicely spotted there.
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] successive imap_open calls result in failure

2004-10-01 Thread felix
Hi,

Have been experiencing a problem with the webmail program IMP
(http://www.horde.org).

It appears that after a large search through many folders something happens in
either the c-client or the imapd server but I can't seem to trace the problem.


Debugging so far has shown me that, after accessing a large number of folders
using the imap_open call in quick succession, imap_open starts to fail for no
apparent reason (using the same credentials all the time). In order to retreive
data from the folder it must call this for each folder. Adding in calls

print_r(imap_alerts());
print_r(imap_errors());

and removing the @ from in front of the imap_open calls helped identify that
after 39 to 51 successful folder opens on a search accessing 80 folders using
the imap_open call, errors appeared indicating that imap_open was unable to open
any further folders. As a result when refreshing to the next page the webmail
assumed that it was dealing with a failed login. Each folder is being opened
read only and is not being accessed by any other program at the time.


The problem is so far from php all I've been able to determine is that after
so many folders being opened in quick succession, it gets blocked from being
able to access any more for a period of about 5-10 minutes, which means that
when your logged out due to the failed imap_open calls, you can't log back in
for that period.



Does anyone know of any issues with the imap_open function calls, is there some
form of access limit that would cause this or would it be down to the imapd
server. I'm not the admin on the machine so I'm having to ask the admins to pass
along various log files, alter some configs while I try and trace the problem.
Their being faily helpful since they use the same webmail as well :)

If anyone knows of any way to get some better details from php. The imap_alerts
and imap_errors don't produce anything meaningful in this case. I've asked the
admins to enable debugging so I'm hoping that will help.


--
Darragh Bailey
[EMAIL PROTECTED]

Nothing is foolproof to a sufficiently talented fool.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] list of Months

2004-10-01 Thread afan
Well, looks like the idea is alway the same, with some (very usefull)
variations.

Thanks for help!

Afan



 [EMAIL PROTECTED] wrote:
 Hi,
 to create a list of all months in drop-down menu I use this code:

 ?php
 $month_names = array(1='Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul',
 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
 ?

 select name=QuoteMonth
 option value=/option
 ?php
 for($i=1; $i=12; $i++)
 {
  if(date('m') == $i) $selected_QuoteMonth = 'SELECTED';
  else $selected_QuoteMonth = '';
  echo option value=$i $selected_QuoteMonth $i /option;
 }
 ?
 /select

 What about dumping the $month_names array and using strftime()?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 10:12 AM, Olaf Van Der Spek wrote:
Is a (bug in a) script allowed to cause such a crash?

Not bugs in a script but rather in the PHP engine. In theory, the 
PHP engine should never crash but there is no such thing as bug free 
software.

So if I report a script that causes such a crash, it should be marked 
as bug (and solved)?

Right. There are instructions on how to provide a backtrace so the bug 
report contains information useful enough for a developer to try 
locating and fixing the bug.

So what went wrong with this bug report?
http://bugs.php.net/bug.php?id=30153
It's marked as bogus, although it provides a script to reproduce the crash.
That is not a crash. Your script making a PHP function request 600MB of 
memory. Since it exceeds the configured memory limit, there is no way to 
recover from memory exhaustion and the script just exits cleanly. It 
does not crash the current process, even less the Web server.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 10:12 AM, Olaf Van Der Spek wrote:
So what went wrong with this bug report?
http://bugs.php.net/bug.php?id=30153
It's marked as bogus, although it provides a script to reproduce the 
crash.

That is not a crash. Your script making a PHP function request 600MB of 
memory. Since it exceeds the configured memory limit, there is no way to 
recover from memory exhaustion and the script just exits cleanly. It 
does not crash the current process, even less the Web server.
So Apache restarts just because it thinks that's funny?
FATAL:  erealloc():  Unable to allocate 603602944 bytes
[Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with
status 1 -- Restarting.
[Sun Sep 19 16:11:16 2004] [notice] Parent: Created child process 3908
[Sun Sep 19 16:11:16 2004] [notice] Child 3908: Child process is
running
[Sun Sep 19 16:11:16 2004] [notice] Child 3908: Acquired the start
mutex.
[Sun Sep 19 16:11:16 2004] [notice] Child 3908: Starting 250 worker
threads.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] successive imap_open calls result in failure

2004-10-01 Thread raditha dissanayake
[EMAIL PROTECTED] wrote:

The problem is so far from php all I've been able to determine is that after
so many folders being opened in quick succession, it gets blocked from being
able to access any more for a period of about 5-10 minutes, which means that
when your logged out due to the failed imap_open calls, you can't log back in
for that period.
 

This probably means that your imap server is running under xinetd (or 
something similar) that has a rate limit or a limit on the number of 
connections from one client. You can find out how many connections are 
open with netstat and i think you will find it's reached the allowed limit.

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
That is not a crash. Your script making a PHP function request 600MB of 
memory. Since it exceeds the configured memory limit, there is no way to 
recover from memory exhaustion and the script just exits cleanly. It 
BTW, I don't agree. It's easily possible to recover from this error.
Just return NULL and the gzinflate function will return false.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread -{ Rene Brehmer }-
At 10:31 01-10-2004, Graham Cossey wrote:
A couple of thoughts:
As you want to cycle through the list rather than randomly (with repetition)
picking from the list, have you considered storing the last CD shown details
in the DB?
If each CD has a sequential ID then each week (or day) you increment the
number which will determine what CD is shown. If the incremented CD id
exceeds the highest id in the DB, restart back at the first id.
Just incrementing the ID is not a good idea. It does not allow for the 
flexibility required if you suddenly delete a CD in the middle. So it'd be 
better doing something like SELECT * FROM cds WHERE `CDid`'$LastCDid' . 
Then obviously you'd need to check if the last shown was the last in the 
base, you'd get 0 rows. But this can be circumvented by just checking the 
number of rows returned, and if the rowcount is  1, simply do a new SELECT 
with CDid  0.

You could also include a column (or two) in the CD info table to record when
it was last displayed and check that this is  29 days ago.
I agree that this would be the easiest way. On every display you do an 
update to store the date, then on each page load just calculate how long 
ago the CD show must've been shown last.

What about cookies? Each visitor could then have their own 'cycle' through
the list.
This is a per need basis. With the last shown date you don't need the 
cookies.

--
Rene Brehmer
aka Metalbunny
If your life was a dream, would you wake up from a nightmare, dripping of 
sweat, hoping it was over? Or would you wake up happy and pleased, ready to 
take on the day with a smile?

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] World time convertor

2004-10-01 Thread -{ Rene Brehmer }-
At 11:19 30-09-2004, Phpu wrote:
Howdy
Is there a time convertor written in php?
I mean to convert a specific hour/date in all world countries.
I've been looking for something like this as well, but have come up empty 
... apparently noone's felt comfortable dealing with the Daylight Saving 
Time issues for 184 countries in 24 time zones ... (and some of those don't 
even have DST). But if you stumble across something useful, do let us know :)
--
Rene Brehmer
aka Metalbunny

If your life was a dream, would you wake up from a nightmare, dripping of 
sweat, hoping it was over? Or would you wake up happy and pleased, ready to 
take on the day with a smile?

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Suggestion for IN()

2004-10-01 Thread Ford, Mike
On 01 October 2004 14:05, Daniel Schierbeck wrote:

 Jay Blanchard wrote:
  You could write a function and share it with the rest of us!
 
 function between ($var, $min, $max)
 {
   return ($var  $min  $var  $max) ? TRUE : FALSE; }

Don't make PHP do more work than it needs to:

  return ($var  $min  $var  $max)

is quite sufficient.


 
 function in ()
 {
   if (func_num_args()  2)
   trigger_error('You must provide at least one
 argument for in()',
 E_USER_WARNING);
 
   $haystack = func_get_args();
   $needle   = array_shift($haystack);
 
   return in_array($needle, $haystack) ? TRUE : FALSE; }

  return in_array($needle, $haystack)
 
Also, you may find array_splice($haystack, 0, 1) more efficient, since
array_shift() renumbers all the keys.  ($needle = $haystack[0]; unset
$haystack[0]; would be another possibility.)

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread -{ Rene Brehmer }-
At 17:08 30-09-2004, Pankaj Kafley wrote:
What an ass !
And my filters don't even catch the many exclamation marks cuz this list is 
white-listed . *sigh*

--
Rene Brehmer
aka Metalbunny
If your life was a dream, would you wake up from a nightmare, dripping of 
sweat, hoping it was over? Or would you wake up happy and pleased, ready to 
take on the day with a smile?

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 10:29 AM, Olaf Van Der Spek wrote:
So what went wrong with this bug report?
http://bugs.php.net/bug.php?id=30153
It's marked as bogus, although it provides a script to reproduce the 
crash.

That is not a crash. Your script making a PHP function request 600MB 
of memory. Since it exceeds the configured memory limit, there is no 
way to recover from memory exhaustion and the script just exits 
cleanly. It does not crash the current process, even less the Web server.

So Apache restarts just because it thinks that's funny?
FATAL:  erealloc():  Unable to allocate 603602944 bytes
[Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with
status 1 -- Restarting.
I was not aware that memory allocation failures could make PHP to exit 
its process but since it seems intentional there must be a reasoning 
behind that for which I am not the person that should explain. Maybe the 
reason has to due to the fact that when memory allocation fails, PHP 
allocation code can't be certain about memory integrity.

Anyway, 600MB memory allocation is not normal in a typical memory 
application. If it is normal in your application, why don't you just 
raise the memory limit setting? It would avoid making PHP exit.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 10:32 AM, Olaf Van Der Spek wrote:
That is not a crash. Your script making a PHP function request 600MB 
of memory. Since it exceeds the configured memory limit, there is no 
way to recover from memory exhaustion and the script just exits 
cleanly. It 

BTW, I don't agree. It's easily possible to recover from this error.
Just return NULL and the gzinflate function will return false.
If you think that is a good idea, why don't you just write a patch and 
discuss about it in php-dev mailing list?

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] successive imap_open calls result in failure

2004-10-01 Thread felix
Quoting raditha dissanayake [EMAIL PROTECTED]:

 This probably means that your imap server is running under xinetd (or
 something similar) that has a rate limit or a limit on the number of
 connections from one client. You can find out how many connections are
 open with netstat and i think you will find it's reached the allowed limit.

Cheers that does appear to be the problem, it runs under inetd and at the nowait
argument it does not specify how many connections many be started within 60
seconds. Apparently its limited to 40 by default so this could explain why when
searching 80 folders it craps out due to opening 80 connections without about 10
seconds.

Guess I'll have to get the admins to increase the limit to something like
200-300 and look to see if there is any way for the php scripts to detect the
problem and stop before hitting it.

--
Darragh Bailey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
On 10/01/2004 10:29 AM, Olaf Van Der Spek wrote:
So Apache restarts just because it thinks that's funny?
FATAL:  erealloc():  Unable to allocate 603602944 bytes
[Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with
status 1 -- Restarting.

I was not aware that memory allocation failures could make PHP to exit 
its process but since it seems intentional there must be a reasoning 
behind that for which I am not the person that should explain. Maybe the 
reason has to due to the fact that when memory allocation fails, PHP 
allocation code can't be certain about memory integrity.
Why would memory integrity be compromised?
It's not like a buffer overflow.
Anyway, 600MB memory allocation is not normal in a typical memory 
application. If it is normal in your application, why don't you just 
raise the memory limit setting? It would avoid making PHP exit.
It's not normal in my app either.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] successive imap_open calls result in failure

2004-10-01 Thread Michael Sims
[EMAIL PROTECTED] wrote:
 Quoting raditha dissanayake [EMAIL PROTECTED]:
 This probably means that your imap server is running under xinetd (or
 something similar) that has a rate limit or a limit on the number of
 connections from one client. You can find out how many connections
 are open with netstat and i think you will find it's reached the
 allowed limit.

 Cheers that does appear to be the problem, it runs under inetd and at
 the nowait argument it does not specify how many connections many be
 started within 60 seconds. Apparently its limited to 40 by default so
 this could explain why when searching 80 folders it craps out due to
 opening 80 connections without about 10 seconds.

 Guess I'll have to get the admins to increase the limit to something
 like 200-300 and look to see if there is any way for the php scripts
 to detect the problem and stop before hitting it.

If possible, use an IMAP proxy.  The proxy will keep a pool of connections open and
when your IMP scripts request a new IMAP connection the proxy will return an
already-open one if it exists (similar to persistant SQL connections).  This may
help reduce the frequency of the problem since fewer connections will open in a
given time frame.  Two imap proxies:

http://www.horde.org/imapproxy/
http://www.imapproxy.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 10:32 AM, Olaf Van Der Spek wrote:
That is not a crash. Your script making a PHP function request 600MB 
of memory. Since it exceeds the configured memory limit, there is no 
way to recover from memory exhaustion and the script just exits 
cleanly. It 

BTW, I don't agree. It's easily possible to recover from this error.
Just return NULL and the gzinflate function will return false.

If you think that is a good idea, why don't you just write a patch and 
discuss about it in php-dev mailing list?
Because (some of) the PHP developers don't consider this a bug.
I doubt the patch would be accepted.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
I was not aware that memory allocation failures could make PHP to exit 
its process but since it seems intentional there must be a reasoning 
behind that for which I am not the person that should explain. Maybe the 
reason has to due to the fact that when memory allocation fails, PHP 
allocation code can't be certain about memory integrity.
But this does mean the policy does allow scripts to crash the engine/server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:14 AM, Olaf Van Der Spek wrote:
So Apache restarts just because it thinks that's funny?
FATAL:  erealloc():  Unable to allocate 603602944 bytes
[Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with
status 1 -- Restarting.

I was not aware that memory allocation failures could make PHP to exit 
its process but since it seems intentional there must be a reasoning 
behind that for which I am not the person that should explain. Maybe 
the reason has to due to the fact that when memory allocation fails, 
PHP allocation code can't be certain about memory integrity.

Why would memory integrity be compromised?
It's not like a buffer overflow.
Yes, but the memory allocation code does not know if the memory block 
that is being request was computed normally or was result of an 
operation with trashed values. Since it exceeds the configured limit 
this may be an hint of eventual process data corruption.

Anyway, I am not saying that is the reasoning that made the PHP 
developers decide for this behaviour. You should ask them directly in 
php-dev list.


Anyway, 600MB memory allocation is not normal in a typical memory 
application. If it is normal in your application, why don't you just 
raise the memory limit setting? It would avoid making PHP exit.

It's not normal in my app either.
If it is not normal, why don't you just evaluate the expected memory 
size that is going to be allocated before calling the PHP function that 
does it and handle the situation within your PHP code?

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:15 AM, Olaf Van Der Spek wrote:
That is not a crash. Your script making a PHP function request 600MB 
of memory. Since it exceeds the configured memory limit, there is no 
way to recover from memory exhaustion and the script just exits 
cleanly. It 
BTW, I don't agree. It's easily possible to recover from this error.
Just return NULL and the gzinflate function will return false.
If you think that is a good idea, why don't you just write a patch and 
discuss about it in php-dev mailing list?
Because (some of) the PHP developers don't consider this a bug.
I doubt the patch would be accepted.
If you want to solve the situation differently, you need to propose an 
alternative to the actual developers that may discuss and consider your 
alternative. That certainly won't happen in php-general because most of 
those developers do not read this list.

Some developers opposing does not mean, that all developers against it. 
Chances are that if you propose a alternative solution in php-dev, maybe 
some developers agree and commit a patch or something more agreeable to 
them.

If you do not think that discussing your alternative solution is worth 
doing in php-dev, I do not think that keep discussing it php-general is 
helping anybody.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
If it is not normal, why don't you just evaluate the expected memory 
size that is going to be allocated before calling the PHP function that 
does it and handle the situation within your PHP code?
Because I've no idea how gzinflate decides how much memory to allocate.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:20 AM, Olaf Van Der Spek wrote:
I was not aware that memory allocation failures could make PHP to exit 
its process but since it seems intentional there must be a reasoning 
behind that for which I am not the person that should explain. Maybe 
the reason has to due to the fact that when memory allocation fails, 
PHP allocation code can't be certain about memory integrity.

But this does mean the policy does allow scripts to crash the 
engine/server.
The way I see it, calling exit() is not a crash. If the code was 
accessing invalid memory addresses that would cause it segmentation 
faults, that would crash *ONE* process, you only see an entry in the 
server error log, the child process would be restarted, but it still 
would not crash the whole server as you seem to be thinking.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Question about error_reporting()

2004-10-01 Thread Al
If I place this at the top of my script file, the page just hangs.
error_reporting (E_ERROR | E_WARNING);
A virtual host on a Unix/Apache system.  Runs fine without the error_reporting().
The default system error reporting only shows E_ERRORS, so I wanted to see 
warnings also.

Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:34 AM, Olaf Van Der Spek wrote:
If it is not normal, why don't you just evaluate the expected memory 
size that is going to be allocated before calling the PHP function 
that does it and handle the situation within your PHP code?

Because I've no idea how gzinflate decides how much memory to allocate.
Use worse case estimates. AFAIK, that algorithm can only compress upto 
5:1 . If you are taking data from a file, read the file size and 
multiply by 5 . If the resulting case exceeds the reasonable memory 
limit, you should not bother to even try opening that way.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 11:34 AM, Olaf Van Der Spek wrote:
If it is not normal, why don't you just evaluate the expected memory 
size that is going to be allocated before calling the PHP function 
that does it and handle the situation within your PHP code?

Because I've no idea how gzinflate decides how much memory to allocate.

Use worse case estimates. AFAIK, that algorithm can only compress upto 
5:1 . If you are taking data from a file, read the file size and 
multiply by 5 . If the resulting case exceeds the reasonable memory 
limit, you should not bother to even try opening that way.
I know. But the crashing input is just 144 kb.
It's an invalid stream, but I do expect my script not to crash when it 
encounters such a stream.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
Hello,
On 10/01/2004 11:20 AM, Olaf Van Der Spek wrote:
I was not aware that memory allocation failures could make PHP to 
exit its process but since it seems intentional there must be a 
reasoning behind that for which I am not the person that should 
explain. Maybe the reason has to due to the fact that when memory 
allocation fails, PHP allocation code can't be certain about memory 
integrity.

But this does mean the policy does allow scripts to crash the 
engine/server.

The way I see it, calling exit() is not a crash. If the code was 
Indeed, I should've added or fatal error.
But from the script's point of view, it's the same as a crash.
accessing invalid memory addresses that would cause it segmentation 
faults, that would crash *ONE* process, you only see an entry in the 
server error log, the child process would be restarted, but it still 
would not crash the whole server as you seem to be thinking.
Yes, assuming you run on a non-threaded server.
But isn't the goal to get PHP4/5 safe for multi-threaded servers too?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Zend Optimizer not installed

2004-10-01 Thread Ox
Many thanks to all!

Ill have to investigate further with these provisders, 

Thanks again


On Fri, 1 Oct 2004 09:12:35 -0400, Dan Joseph [EMAIL PROTECTED] wrote:
 Hi,
 
  Does anyone know of a hosting company that will provide Zend Optimizer
  v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)
 
 www.1and1.co.uk
 
 -Dan Joseph
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



-- 
Ox
http://www.guinnesspig.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Olaf van der Spek
Manuel Lemos wrote:
If you do not think that discussing your alternative solution is worth 
doing in php-dev, I do not think that keep discussing it php-general is 
helping anybody.
I will post there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:42 AM, Olaf Van Der Spek wrote:
If it is not normal, why don't you just evaluate the expected memory 
size that is going to be allocated before calling the PHP function 
that does it and handle the situation within your PHP code?
Because I've no idea how gzinflate decides how much memory to allocate.

Use worse case estimates. AFAIK, that algorithm can only compress upto 
5:1 . If you are taking data from a file, read the file size and 
multiply by 5 . If the resulting case exceeds the reasonable memory 
limit, you should not bother to even try opening that way.

I know. But the crashing input is just 144 kb.
Therefore it seems corrupted.

It's an invalid stream, but I do expect my script not to crash when it 
encounters such a stream.
I suspect that it is not PHP engine code fault for the request to 
allocate the invalid amount of memory. It seems to me that it is up to 
gzip libraries that PHP links to that need to be fixed, if possible, 
detecting data corruption and failing cleanly because it seems that PHP 
is not aware that the data is corrupted.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Manuel Lemos
Hello,
On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote:
But this does mean the policy does allow scripts to crash the 
engine/server.

The way I see it, calling exit() is not a crash. If the code was 

Indeed, I should've added or fatal error.
But from the script's point of view, it's the same as a crash.
From the script point of view, PHP never crashes. You seem to be 
dealing with an abnormal situation that is not caused by PHP engine code 
but rather in gzip library. Therefore it seems that gzip library needs 
to be fixed, not PHP.


accessing invalid memory addresses that would cause it segmentation 
faults, that would crash *ONE* process, you only see an entry in the 
server error log, the child process would be restarted, but it still 
would not crash the whole server as you seem to be thinking.

Yes, assuming you run on a non-threaded server.
But isn't the goal to get PHP4/5 safe for multi-threaded servers too?
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.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Jay Blanchard
[snip]
I know I'm way off but, those are some of  my observations of the
patterns involved.
[/snip]

Anyone see that sneaky Shiflett character this morning? I sent in the
answer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote:
 If I place this at the top of my script file, the page just hangs.
 
 error_reporting (E_ERROR | E_WARNING);
 
 A virtual host on a Unix/Apache system.  Runs fine without the error_reporting().
 
 The default system error reporting only shows E_ERRORS, so I wanted to see
 warnings also.

Comment the entire script out starting below your call to
error_reporting(), then start uncommenting and testing it from the top
down until you find the issue.  It's doubtful error_reporting() is
causing the issue, it more likely it's uncovering an issue.  You might
try E_ALL, as it may help you discover the issue faster.

Posting the script and getting some more eyes on it also an option.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Manuel Lemos wrote:
Hello,
On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote:
But this does mean the policy does allow scripts to crash the 
engine/server.


The way I see it, calling exit() is not a crash. If the code was 

Indeed, I should've added or fatal error.
But from the script's point of view, it's the same as a crash.

 From the script point of view, PHP never crashes. You seem to be 
dealing with an abnormal situation that is not caused by PHP engine code 
but rather in gzip library. Therefore it seems that gzip library needs 
to be fixed, not PHP.


accessing invalid memory addresses that would cause it segmentation 
faults, that would crash *ONE* process, you only see an entry in the 
server error log, the child process would be restarted, but it still 
would not crash the whole server as you seem to be thinking.

Yes, assuming you run on a non-threaded server.
But isn't the goal to get PHP4/5 safe for multi-threaded servers too?

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.
gunzip handles the file gracefully: unexpected end of file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] list of Months

2004-10-01 Thread Paul Bissex
On Fri, 01 Oct 2004 10:30:19 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
 What about dumping the $month_names array and using strftime()?

Interesting -- more portable since the month names would then follow
locale settings.

Plus it paves the way for a really hairy one-liner. With apologies to
the original poster for the drift and the perversity of this example:

?php
printselect 
name='QuoteMonth'.implode(\n,array_map(create_function('$n','returnoption
value=\$n\.(date(n)==$n?
selected=\selected\:)..strftime(%b,strtotime(2004-$n-01))./option;'),range(1,12)))./select;
?



-- 
paul bissex, e-scribe.com -- database-driven web development
413.585.8095
69.55.225.29
01061-0847
72°39'71W 42°19'42N

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about error_reporting()

2004-10-01 Thread Al
Greg Donald wrote:
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote:
If I place this at the top of my script file, the page just hangs.
error_reporting (E_ERROR | E_WARNING);
A virtual host on a Unix/Apache system.  Runs fine without the error_reporting().
The default system error reporting only shows E_ERRORS, so I wanted to see
warnings also.

Comment the entire script out starting below your call to
error_reporting(), then start uncommenting and testing it from the top
down until you find the issue.  It's doubtful error_reporting() is
causing the issue, it more likely it's uncovering an issue.  You might
try E_ALL, as it may help you discover the issue faster.
Posting the script and getting some more eyes on it also an option.

What's puzzling is that I can simply comment out the error_reporting line and 
the code runs fine.

Also, the Apache error log doesn't show any errors. with or without the 
error_reporting.

Is error_reporting() all that is necessary, or must I also have a error_log() 
statement?

The manual is not clear on this point.
Also, must I have a an existing error file for the errors to append to?
Again, thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Neal Carmine
Hello List,

I'm trying to locate a PHP web host, preferably one running PHP 5, that also
supports the PHP payflow pro binaries? Anyone have any recommendations?

Thanks,
Neal Carmine

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 12:13:18 -0400, Al [EMAIL PROTECTED] wrote:
 What's puzzling is that I can simply comment out the error_reporting line and
 the code runs fine.
 
 Also, the Apache error log doesn't show any errors. with or without the
 error_reporting.

Make sure you have

log_errors = On

in your php.ini.

 Is error_reporting() all that is necessary, or must I also have a error_log()
 statement?

To see the errors on screen you need

display_errors = On

 The manual is not clear on this point.
 
 Also, must I have a an existing error file for the errors to append to?

No, the web server error log is where they shoudl appear.



-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
 have you tried sending the same message, via the same path (i.e.,
 smtp server), but not generated via php, to this recipient?  by
 same that includes the same rfc821 from/return-path.

I logged on to the web server where php is running and did telnet localhost
25
hello ...

The mail was reported to have not been received.

 
 do make certain that your correspondent doesn't have some funky spam
 filtering of their own.

Excellent idea.

 
 the bottom line, however, is that this isn't a php issue. you're
 successfully getting the message, so your script is working fine.

Yes, thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Image Manipulation

2004-10-01 Thread GH
I would like to know if there is a way to have PHP determine the
dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide
or height have it scale it down proportionally to that width or
height?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
Hey fella's, i thought i would start a thread for once :)

Ive got a 'php sandbox', that im encorparating into a simple php
tutorial.  THe tutorial is much like any php tutoiral, and really, is
just for me to get more comfortable using and parsing xml with the dom
functions.  What i would like to discuss is, the kind of security to
apply on the sandbox.  

The sanbox is simply and iframe, with designmode turned on, that allows
a user to write some code, submit, and that code gets written to a
file, and then included again to show the output.  I like this method
over eval(), for a couple reasons, we can discuss that as well later if
you want.  One of the nice things about using designmode on an iframe,
is that you can use tabs and such for formating your code.  You can
also easily set the src of the frame to a .phps file, that will display
in classic highlighted format the sourcecode.  

Anywys.. heres the question.. what do you think is the most viable
solution for security. 
1.  run apache in chroot envirnment.
2.  run php in safe_mode
3.  simply str_replace all filesystem functions with nothing.
4.  use the disable_function settings to disable filesystem functions...

5. .all of these
6. none of these
7 . other.


THanks
Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Image Manipulation

2004-10-01 Thread Jason Davidson
Yes there is way, search for GD in the php manual, it will explain a
solution better than i will.

Jason

GH [EMAIL PROTECTED] wrote: 
 
 I would like to know if there is a way to have PHP determine the
 dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide
 or height have it scale it down proportionally to that width or
 height?
 
 -- 
 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



Re: [PHP] Image Manipulation

2004-10-01 Thread Matt M.
 I would like to know if there is a way to have PHP determine the
 dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide
 or height have it scale it down proportionally to that width or
 height?

look at

http://us4.php.net/gd

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Naming conventions

2004-10-01 Thread Jensen, Kimberlee
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?


-Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Fri 10/1/2004 11:16 AM
To: [EMAIL PROTECTED]
Cc: 
Subject:[BULK] - php-general Digest 1 Oct 2004 18:16:29 - Issue 3028

php-general Digest 1 Oct 2004 18:16:29 - Issue 3028

Topics (messages 198379 through 198445):

php script run by cron job
198379 by: Merlin
198388 by: Nick Wilson

Re: Zend PHP Certification test
198380 by: Curt Zirzow
198391 by: Greg Donald
198436 by: Jay Blanchard

How do I produce a random database query for each day or week?
198381 by: I.A. Gray
198383 by: Merlin
198386 by: Graham Cossey
198413 by: -{ Rene Brehmer }-

Zend Optimizer not installed
198382 by: Ox
198384 by: Graham Cossey
198387 by: Wee Keat
198404 by: Dan Joseph
198432 by: Ox

Re: list of Months
198385 by: Marek Kilimajer
198408 by: afan.afan.net
198439 by: Paul Bissex

Re: mail() and Verizon
198389 by: Sam Smith
198443 by: Sam Smith

How I can get x509 certificate distinguished name?
198390 by: Diavolo

PHP (anti) crash policy?
198392 by: Olaf van der Spek
198393 by: Marek Kilimajer
198394 by: Manuel Lemos
198395 by: Olaf van der Spek
198396 by: Christophe Chisogne
198397 by: Manuel Lemos
198398 by: Marek Kilimajer
198399 by: Olaf van der Spek
198401 by: Christophe Chisogne
198403 by: Manuel Lemos
198405 by: Olaf van der Spek
198409 by: Manuel Lemos
198410 by: Olaf van der Spek
198412 by: Olaf van der Spek
198417 by: Manuel Lemos
198418 by: Manuel Lemos
198420 by: Olaf van der Spek
198421 by: Olaf van der Spek
198423 by: Olaf van der Spek
198424 by: Manuel Lemos
198425 by: Manuel Lemos
198426 by: Olaf van der Spek
198427 by: Manuel Lemos
198429 by: Manuel Lemos
198430 by: Olaf van der Spek
198431 by: Olaf van der Spek
198433 by: Olaf van der Spek
198434 by: Manuel Lemos
198435 by: Manuel Lemos
198438 by: Marek Kilimajer

Re: Suggestion for IN()
198400 by: Daniel Schierbeck
198402 by: Christophe Chisogne
198406 by: Daniel Schierbeck
198415 by: Ford, Mike

successive imap_open calls result in failure
198407 by: felix.compsoc.nuigalway.ie
198411 by: raditha dissanayake
198419 by: felix.compsoc.nuigalway.ie
198422 by: Michael Sims

Re: World time convertor
198414 by: -{ Rene Brehmer }-

Re: UNSUBSCRIBE
198416 by: -{ Rene Brehmer }-

Question about error_reporting()
198428 by: Al
198437 by: Greg Donald
198440 by: Al
198442 by: Greg Donald

PHP Host with PayFlow Pro
198441 by: Neal Carmine

Image Manipulation
198444 by: GH

PHP sandbox discussion
198445 by: Jason Davidson

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]


--





Re: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Matt M.
 I'm trying to locate a PHP web host, preferably one running PHP 5, that also
 supports the PHP payflow pro binaries? Anyone have any recommendations?

have you tried google?

http://www.google.com/search?hl=enlr=ie=UTF-8client=firefox-aq=PHP5+hosting+payflowbtnG=Search

also, search the mailing list archives

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Mark

--- Sam Smith [EMAIL PROTECTED] wrote:

  have you tried sending the same message, via the same path (i.e.,
  smtp server), but not generated via php, to this recipient?  by
  same that includes the same rfc821 from/return-path.
 
 I logged on to the web server where php is running and did telnet
 localhost
 25
 hello ...
 
 The mail was reported to have not been received.
 
  
  do make certain that your correspondent doesn't have some funky
 spam
  filtering of their own.
 
 Excellent idea.
 
  
  the bottom line, however, is that this isn't a php issue. you're
  successfully getting the message, so your script is working fine.
 
 Yes, thanks.

I  believe the problem is that Verizon checks the MAIL FROM address
during the SMTP session against the domain portion of the From
header. If they don't match, the mail is rejected (or dropped). This
was an issue for a webboard I use...

 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Naming conventions

2004-10-01 Thread Jason Davidson
Oh please dont start a thread on which is better .. 
but i beleive it was decided that camel case is the standard now.
Jason

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?
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Fri 10/1/2004 11:16 AM
 To:   [EMAIL PROTECTED]
 Cc:   
 Subject:  [BULK] - php-general Digest 1 Oct 2004 18:16:29 - Issue 3028
 
 php-general Digest 1 Oct 2004 18:16:29 - Issue 3028
 
 Topics (messages 198379 through 198445):
 
 php script run by cron job
   198379 by: Merlin
   198388 by: Nick Wilson
 
 Re: Zend PHP Certification test
   198380 by: Curt Zirzow
   198391 by: Greg Donald
   198436 by: Jay Blanchard
 
 How do I produce a random database query for each day or week?
   198381 by: I.A. Gray
   198383 by: Merlin
   198386 by: Graham Cossey
   198413 by: -{ Rene Brehmer }-
 
 Zend Optimizer not installed
   198382 by: Ox
   198384 by: Graham Cossey
   198387 by: Wee Keat
   198404 by: Dan Joseph
   198432 by: Ox
 
 Re: list of Months
   198385 by: Marek Kilimajer
   198408 by: afan.afan.net
   198439 by: Paul Bissex
 
 Re: mail() and Verizon
   198389 by: Sam Smith
   198443 by: Sam Smith
 
 How I can get x509 certificate distinguished name?
   198390 by: Diavolo
 
 PHP (anti) crash policy?
   198392 by: Olaf van der Spek
   198393 by: Marek Kilimajer
   198394 by: Manuel Lemos
   198395 by: Olaf van der Spek
   198396 by: Christophe Chisogne
   198397 by: Manuel Lemos
   198398 by: Marek Kilimajer
   198399 by: Olaf van der Spek
   198401 by: Christophe Chisogne
   198403 by: Manuel Lemos
   198405 by: Olaf van der Spek
   198409 by: Manuel Lemos
   198410 by: Olaf van der Spek
   198412 by: Olaf van der Spek
   198417 by: Manuel Lemos
   198418 by: Manuel Lemos
   198420 by: Olaf van der Spek
   198421 by: Olaf van der Spek
   198423 by: Olaf van der Spek
   198424 by: Manuel Lemos
   198425 by: Manuel Lemos
   198426 by: Olaf van der Spek
   198427 by: Manuel Lemos
   198429 by: Manuel Lemos
   198430 by: Olaf van der Spek
   198431 by: Olaf van der Spek
   198433 by: Olaf van der Spek
   198434 by: Manuel Lemos
   198435 by: Manuel Lemos
   198438 by: Marek Kilimajer
 
 Re: Suggestion for IN()
   198400 by: Daniel Schierbeck
   198402 by: Christophe Chisogne
   198406 by: Daniel Schierbeck
   198415 by: Ford, Mike
 
 successive imap_open calls result in failure
   198407 by: felix.compsoc.nuigalway.ie
   198411 by: raditha dissanayake
   198419 by: felix.compsoc.nuigalway.ie
   198422 by: Michael Sims
 
 Re: World time convertor
   198414 by: -{ Rene Brehmer }-
 
 Re: UNSUBSCRIBE
   198416 by: -{ Rene Brehmer }-
 
 Question about error_reporting()
   198428 by: Al
   198437 by: Greg Donald
   198440 by: Al
   198442 by: Greg Donald
 
 PHP Host with PayFlow Pro
   198441 by: Neal Carmine
 
 Image Manipulation
   198444 by: GH
 
 PHP sandbox discussion
   198445 by: Jason Davidson
 
 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]
 
 
 --
 
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Naming conventions

2004-10-01 Thread Greg Donald
On Fri, 1 Oct 2004 11:28:57 -0700, 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?

You probably want to look at:

http://pear.php.net/manual/en/standards.php

The PEAR guidlines you will find there are what most of us use I think.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Why won't my attached PDF go through ??

2004-10-01 Thread PHP Junkie
Ave,

I created a form which can accept 2 file attachments and send an HTML
Email... Everything works great... The files even get attached and sent, the
ONLY problem is... The PDF file I'm sending attached open up empty! They are
all blank.. Like everything has been wiped off from them!!

Here's my code.. 

form action=?php echo $PHP_SELF ? method=post
ENCTYPE=multipart/form-data name=f1 id=f1 
table
  tr
td align=left valign=middle class=style13From
(Name):/td
tdinput name=from_name type=text value=Gerson Bullock
size=40/td
  /tr
  tr
td align=left valign=middle class=style13From
(Email):/td
tdinput name=from type=text
value=[EMAIL PROTECTED] size=40/td
  /tr
  tr
td align=left valign=middle class=style13To
(First,Last):/td
tdinput name=to_nameF type=text id=to_nameF size=15
input name=to_nameL type=text id=to_nameL size=15/td
  /tr
  tr
td align=left valign=middle class=style13To
(Email):/td
tdinput name=to type=text size=40/td
  /tr
  tr
td align=left valign=middle
class=style13Subject:/td
tdinput name=subject type=text value=Your Conversation
with Gerson Bullock size=40/td
  /tr
  tr
td align=left valign=top class=style13Message:/td
tdtextarea name=message_html cols=35 rows=4
bTest Message/b
/textarea/td
  /tr
  tr
td align=left valign=middle class=style13Attachment
1 /td
tdinput type=file name=file1/td
  /tr
  tr
td align=left valign=middle class=style13Attachment
2 /td
tdinput type=file name=file2/td
  /tr
/table
input name=doSubmit type=submit id=doSubmit value=Send Mail
Mail
  /form

?php
$message_html = stripslashes($message_html);
  $m = new CMIMEMail($to_nameF $to_nameL $to,$from_name
$from,$subject);
 $m-mailbody($message_html, $message_html);
 if( $file1) {
$m-attachFile_raw($file1,$file1_name,$file1_type);
 };
 if( $file2)
{$m-attachFile_raw($file2,$file2_name,$file2_type);};
 $m-send();
?

?php
/*
* $m = new CMIMEMail($to,$from,$subject);
* $m-mailbody(This is simply text,htmlbodyh1This is HTML
text/h1);
* $m-attach(example.html,text/html,$filebody);
* $m-attachFile(resume.gif,image/gif);
* $m-send();
*/

class CMIMEMail {
 var $to;
 var $boundary;
 var $smtp_headers;
 var $filename_real;
 var $body_plain;
 var $body_html;
 var $atcmnt;
 var $atcmnt_type;
 
 function CMIMEMail($to,$from,$subject,$priority=3) {
   $this-to=$to; $this-from=$from;
   $this-subject=$subject; $this-priority=$priority;
   $this-boundary==_NextPart_.time()._.md5(time())._;
 }
 function  mailbody( $plain, $html= ) {
   $this-body_plain=$plain;
   $this-body_html=$html;
 }
 function  attach( $name, $content_type, $data ) {
 }
 function  attachfile_raw( $fname, $mailFileName, $content_type ) {
   if([EMAIL PROTECTED]($fname,r)) {
$this-atcmnt[$mailFileName]=fread($f,filesize($fname));
$this-atcmnt_type[$mailFileName]=$content_type;
fclose($f);
  } 
 }
 function  attachfile( $fname, $content_type ) {
attachfile_raw($fname,$fname,$content_type);
 }
 function  clear() {
   unset( $atcmnt );
   unset( $atcmnt_type );
 }
 function  makeheader() {
   $out =From: .$this-from.\n;
   $out.=Reply-To: .$this-from.\n;
   $out.=MIME-Version: 1.0\n.
Content-Type: multipart/mixed;\n\t boundary=\.$this-boundary.\\n.
X-Priority: .$this-priority.\n.
X-Mailer: phpMimeMail ( http://www.informed-sources.com/ )\n;
   return $out;
 }
 function  makebody() {
   $boundary2= =_NextAttachedPart_.time()._.md5(time()+101)._;
   $out=;
   if(  .$this-body_html!=  ) {
 $out=\nThis is a multi-part message in MIME format.\n\n;
 $out.=--.$this-boundary.\nContent-Type:
multipart/alternative;\n\tboundary=\$boundary2\\n;
 $out.=$body_plan\n.
   --$boundary2\nContent-Type: text/plain\n.
#   Content-Disposition: inline\n.
   Content-Transfer-Encoding: quoted-printable\n\n.
   $this-body_plain.
   \n\n--$boundary2\n.
   Content-Type: text/html\n.
#   Content-Disposition: attachment;\n\tfilename=\message.html\\n.
   Conent-Transfer-Encoding: quoted-printable\n.
   \n$this-body_html\n\n.
   --$boundary2--\n;
   } else {
 $out=\n\n.$this-body_plain.\n\n;
 $out.=--.$this-boundary.\n.
Content-Type: text/plain\n.
Content-Transfer-Encoding: quoted-printable\n\n.
$this-body_plain.
\n\n--.$this-boundary.
\n;
   }
   if( is_array( $this-atcmnt_type ) ) {
 reset( $this-atcmnt_type);
 while( list($name, $content_type) = 

Re: [PHP] Naming conventions

2004-10-01 Thread Paul Bissex
On Fri, 1 Oct 2004 11:28:57 -0700, 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?
 

Without getting into personal preferences I'd say that  the closest
thing we have to an industry standard are the PEAR conventions:

  http://pear.php.net/manual/en/standards.naming.php

pb


-- 
paul bissex, e-scribe.com -- database-driven web development
413.585.8095
69.55.225.29
01061-0847
72°39'71W 42°19'42N

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Naming conventions

2004-10-01 Thread Dan Joseph
Hi,

 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'm not sure there is a standard for naming things.  Here's how I
do it...

classes:  CHelloWorld { ... }
function: helloWorld() {  }
vars: hello_world

I guess I tend to stick to the camel style for function or class naming,
then use underscores in vars.  I also put a C before each class name.  There
is Hungarian notation that a lot of developers like to use.  You could
google that.

-Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Host with PayFlow Pro

2004-10-01 Thread Neal Carmine
Yes... I tried google but was looking for recommendations, google does not
give you experiences that people on this list may have. Hence the point of
an email list in the first place.

Neal 

-Original Message-
From: Matt M. [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 12:31 PM
To: Neal Carmine
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Host with PayFlow Pro

 I'm trying to locate a PHP web host, preferably one running PHP 5, that
also
 supports the PHP payflow pro binaries? Anyone have any recommendations?

have you tried google?

http://www.google.com/search?hl=enlr=ie=UTF-8client=firefox-aq=PHP5+host
ing+payflowbtnG=Search

also, search the mailing list archives

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Michelle Konzack
Am 2004-10-01 15:57:47, schrieb -{ Rene Brehmer }-:
 At 17:08 30-09-2004, Pankaj Kafley wrote:
 What an ass !
 
 And my filters don't even catch the many exclamation marks cuz this list is 
 white-listed . *sigh*

I do not get them:

   ( '/home/michelle/.procmail/FLT_spam' ) _
 /
|  :0
|  * ^Subject:.*(subscribe|subscrible|suscribe|unsubcribe)
|  ATTENTION/unsubscribe/
|  # /dev/null
|  
 \__

I get every day around 20-30 of them...

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/3/8845235667100 Strasbourg/France   IRC #Debian (irc.icq.com)


signature.pgp
Description: Digital signature


Re: [PHP] Naming conventions

2004-10-01 Thread Greg Beaver
Jason Davidson wrote:
Oh please dont start a thread on which is better .. 
but i beleive it was decided that camel case is the standard now.
Jason

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?
The standard in built-in PHP functions is underscores for procedural 
code (simplexml_load_string) and studlyCaps/CamelCaps for 
object-oriented code.  classes are named using CamelCaps 
(SimpleXMLElement) and methods are named using studlyCaps 
(SimpleXMLElement-attributes(), simpleXMLElement-asXML()).  It would 
be best to adhere to this standard, regardless of personal convictions, 
as any class that extends a built-in class will otherwise end up with a 
medley of method-naming conventions.

Regards,
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] exec lynx -dump failure

2004-10-01 Thread Compu-Creations
Hello,
I have a problem in getting lynx to run through the exec function.
Here is my code ...
$cmd = /usr/bin/lynx -dump http://freebsd.razvan.ca/copydir.php 21;
exec($cmd,$err);
print_r($err);
I'm not sure what the problem is but I get this back ..
Array ( [0] = /root/: No such directory )
Based on the documentation the above code should work ...
If someone can give me a hand with this, I would greatly appreciate it...
Thank you for your time ...
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] set multiple variables

2004-10-01 Thread Joe Szilagyi
Hi, I have this working:


if ($REMOTE_ADDR == 212.3.54.65)  {
header(Location: http://www.google.com/search?q=huzzah;);
Redirect browser
exit;
}


But I want to specify multiple IPs. What's the best recommended way for
doing that?


thanks
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Zend PHP Certification test

2004-10-01 Thread Chris Shiflett
--- Jay Blanchard [EMAIL PROTECTED] wrote:
 Anyone see that sneaky Shiflett character this morning? I sent in
 the answer

Several people, including Jay, are very close, but no one has solved it
yet.

If you were thinking of taking the Zend Certification exam anyway, this
could save you $200. :-)

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming December 2004http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] set multiple variables

2004-10-01 Thread Paul Bissex
On Fri, 1 Oct 2004 17:38:31 -0400, Joe Szilagyi [EMAIL PROTECTED] wrote:
 Hi, I have this working:
 
 if ($REMOTE_ADDR == 212.3.54.65)  {
 header(Location: http://www.google.com/search?q=huzzah;);
 Redirect browser
 exit;
 }
 
 But I want to specify multiple IPs. What's the best recommended way for
 doing that?
 

Build an array and use in_array():

$redirect_me = array ('212.3.54.65', '127.0.0.1', '192'168.0.1');
if (in_array ($_SERVER['REMOTE_ADDR'], $redirect_me))
{
header (Location: ...);
exit;
}

If the addresses you are targeting are ranges in CIDR format (e.g.
192.168.0.0/24), take a look at the PEAR package Net_IPv4.

pb

-- 
paul bissex, e-scribe.com -- database-driven web development
413.585.8095
69.55.225.29
01061-0847
72°39'71W 42°19'42N

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] set multiple variables

2004-10-01 Thread Marek Kilimajer
Joe Szilagyi wrote:
Hi, I have this working:
if ($REMOTE_ADDR == 212.3.54.65)  {
header(Location: http://www.google.com/search?q=huzzah;);
Redirect browser
exit;
}
But I want to specify multiple IPs. What's the best recommended way for
doing that?
There was one request for IN() fuction few hours ago. You ca either use 
the function suplied in the thread or use || operator:

if ($REMOTE_ADDR == 212.3.54.65 || $REMOTE_ADDR == 212.3.54.64 ...)  {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] set multiple variables

2004-10-01 Thread Brad Pauly
On Fri, 1 Oct 2004 17:38:31 -0400, Joe Szilagyi [EMAIL PROTECTED] wrote:
 Hi, I have this working:
 
 if ($REMOTE_ADDR == 212.3.54.65)  {
 header(Location: http://www.google.com/search?q=huzzah;);
 Redirect browser
 exit;
 }
 
 But I want to specify multiple IPs. What's the best recommended way for
 doing that?

One way would be to create an array of ips and look for it in that array:

$ips = array('127.0.0.1','192.168.1.50');

if (in_array($REMOTE_ADDR, $ips)) {

// do stuff

}

- Brad

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session handlers

2004-10-01 Thread Shawn McKenzie
Just curious, what is the advantage of using a custom session handler, 
such as saving session data in MySQL?

TIA,
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Detecting Mysql server is running

2004-10-01 Thread barsalou
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.

Anyone have ideas?

Thanks for the help.

Mike B.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Detecting Mysql server is running

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 16:13:23 -0800, barsalou [EMAIL PROTECTED] 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.
 
 Anyone have ideas?

system('telnet localhost 3306');


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP sandbox discussion

2004-10-01 Thread raditha dissanayake
Jason Davidson wrote:
Anywys.. heres the question.. what do you think is the most viable
solution for security. 
1.  run apache in chroot envirnment.
2.  run php in safe_mode
3.  simply str_replace all filesystem functions with nothing.
4.  use the disable_function settings to disable filesystem functions...

5. .all of these
6. none of these
7 . other.
 

All of those and a many more things besides!
for example the mail() function can send mail through the localy 
installed smtp server without a username and password so you need to 
watch for the mail function or perhaps even attempts to open a socket on 
localhost host. You will then need to watch out for include or fopen 
urls that will eat up bandwidth or worse.
all in all i think this is pretty dangerous.

THanks
Jason
 


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Session handlers

2004-10-01 Thread raditha dissanayake
Shawn McKenzie wrote:
Just curious, what is the advantage of using a custom session handler, 
such as saving session data in MySQL?
The main reason you might want to store session informaton in a database 
instead of in files is that you can then load balance your site across 
multiple servers. If you save your session data in a file and the user 
is transferred from one load balanced server to another (eg with dns 
round robin) in the middle of a transaction the session data is lost.

If you are on a shared server it may also be possible for other users to 
take a peek at the contents of the session data if they are stored in 
files. (of course you should not save sensitive data in the session anyway).

TIA,
Shawn

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
Hey, yup it is kind of dangerous, there is no argument there.  
Currenly i have php running safemode, and apache is running with user
nobody.  This combination makes it imposible for any filesystem
commands to work on anything that isnt owned by nobody.. its an
interesting situatoin i beleive... ive enjoyed reading documentaiton on
these things.

Jason

[EMAIL PROTECTED] wrote: 
 
 
 Jason Davidson wrote:
 
 Anywys.. heres the question.. what do you think is the most viable
 solution for security. 
 1.  run apache in chroot envirnment.
 2.  run php in safe_mode
 3.  simply str_replace all filesystem functions with nothing.
 4.  use the disable_function settings to disable filesystem functions...
 
 5. .all of these
 6. none of these
 7 . other.
 
 
   
 
 All of those and a many more things besides!
 for example the mail() function can send mail through the localy 
 installed smtp server without a username and password so you need to 
 watch for the mail function or perhaps even attempts to open a socket on 
 localhost host. You will then need to watch out for include or fopen 
 urls that will eat up bandwidth or worse.
 all in all i think this is pretty dangerous.
 
 THanks
 Jason
 
   
 
 
 
 -- 
 Raditha Dissanayake.
 
 http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
 Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
 Graphical User Inteface. Just 128 KB | with progress bar.
 
 -- 
 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



RE: [PHP] Session handlers

2004-10-01 Thread Vail, Warren
I have used MySQL sessions and session handler routines to perform the
following;

1.  I was able to set different session timeouts for different applications
as long as each application used a different session table.  The garbage
cleanup routines could be programmed to ignore the global session limit and
use different session life times for the different tables (a different set
of routines for each application).

2.  I was able to use session table to look over site users shoulders (so to
speak) and by watching key session variables was able to monitor who was
using different areas of the site.  Obviously this kind of thing would be
totally unmanageable for a public site, but on an intranet, I had phone
numbers for all users and when something got hung, I was able to identify
the user and give them a call while the problem was occurring.  I also used
this over the shoulder technique once to identify a hacker, and kicked him
off the site by deleting his session entry, forcing him to logon again,
course his password had been changed, and this only slowed him down for a
little while, but it sure felt good.

I'm sure there are many other uses, so I'll be watching this thread.

Warren Vail
(415) 667-0240
SF211-07-434
 


-Original Message-
From: Shawn McKenzie [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 5:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Session handlers


Just curious, what is the advantage of using a custom session handler, 
such as saving session data in MySQL?

TIA,
Shawn

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



Re: [PHP] php script run by cron job

2004-10-01 Thread Andrew Kreps
On Fri, 01 Oct 2004 08:18:55 +0200, Merlin [EMAIL PROTECTED] wrote:
 Here is the how I did it:
 14 8 * * *  root  /usr/local/bin/php /home/www/cron/statistics.php
 
 Does anybody see an error in this?
 

I'm not familiar with a crontab format that allows you to specify a
username as you have there.  If you'd like the process to run as root,
login as root, do a crontab -e, and paste this in there:

14 8 * * * /usr/local/bin/php /home/www/cron/statistics.php

see if that works for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] array sort question

2004-10-01 Thread Ed Lazor
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;

$menu[3][ID] = 56;

$menu[3][Title] = Test 8;

$menu[4][ID] = 44;

$menu[4][Title] = Test 3;

 

 

Thanks,

 

-Ed

 

 



RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread Mag
Prick.

=
--
- 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!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] stand alone php

2004-10-01 Thread Mag
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array sort question

2004-10-01 Thread Paul Bissex
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'71W 42°19'42N

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] READ BEFORE REPLYING TO : Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-01 Thread GH
Dear EVERYONE WHO HAS POSTED OR WANTS TO POST IN THIS THREAD...

If Ms. Holland managed to get herself off of this list she is not
seeing any of this... however you seem to be FLAMING the rest of the
board with information that is NOT PHP related NOR is it relevant to
ANY DISCUSSION that pertains to a PHP related topic... i.e.
PEAR/DataBase/Servers etc...

CAN WE PLEASE CONSIDER THIS MATTER TO BE CLOSED?
Twenty Four Messages (not counting this #25)  of which almost 18 of
them have been not relavent to this subject. Yes, yesterday it could
be said that it was nice to have a joke at her blatent inability to
not read the unsubscribe instructions even if they are at the end of
each message! However, these messages have been either (1) Beating
around the same bush again and again... or (2) Personal and Rude
attacks at an individual.

Can we please move on to more PHP related discussions... 

Thank You
Gary


On Fri, 1 Oct 2004 19:22:26 -0700 (PDT), Mag [EMAIL PROTECTED] wrote:
 Prick.
 
 =
 --
 - 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!?
 Read only the mail you want - Yahoo! Mail SpamGuard.
 http://promotions.yahoo.com/new_mail 
 
 
 
 --
 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



  1   2   >