Re: [PHP] Re: testing

2011-08-06 Thread Judson Vaughn
Regardless, I am the beneficiary of someone's good work all these years 
and I, for one, appreciate it.


Jud



On 8/5/11 4:45 AM, David Robley wrote:

Daniel Brown wrote:


On Thu, Aug 4, 2011 at 10:39, Jim Ginerjim.gi...@albanyhandball.com
wrote:

Mailing list, newsgroup, either one - something's changed in the last
week or so to interrupt the smooth (or semi-smooth) functioning of it.
The only messages I'm seeing currently are the ones in this single topic.
  Why is that???

 Actually, we haven't changed anything at all.  It's always been
temperamental, but it's always just been a small additional offering.
As Ash said, this is a mailing list, not a newsgroup.  The fact that
we offer a newsgroup interface at all is by all means eligible for
discontinuation, since only about six people use it in any given year.


/me wonders who the other five are :-)


Cheers


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



Re: [PHP] Re: testing

2011-08-05 Thread David Robley
Daniel Brown wrote:

 On Thu, Aug 4, 2011 at 10:39, Jim Giner jim.gi...@albanyhandball.com
 wrote:

 Mailing list, newsgroup, either one - something's changed in the last
 week or so to interrupt the smooth (or semi-smooth) functioning of it. 
 The only messages I'm seeing currently are the ones in this single topic.
  Why is that???
 
 Actually, we haven't changed anything at all.  It's always been
 temperamental, but it's always just been a small additional offering.
 As Ash said, this is a mailing list, not a newsgroup.  The fact that
 we offer a newsgroup interface at all is by all means eligible for
 discontinuation, since only about six people use it in any given year.
 

/me wonders who the other five are :-)


Cheers
-- 
David Robley

I've mixed up my gloves, Tom said intermittently.
Today is Boomtime, the 71st day of Confusion in the YOLD 3177. 


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



Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
 Aln...@ridersite.org  wrote:



 On 8/2/2011 5:18 PM, Jim Giner wrote:
 Don't seem to be getting any feeds thru the newsgroup mirror(?).



 This newsgroup has been a mess for almost a year now.

 One big problem is that the server only accepts a small number of
 connections,
 for just some mail clients, eg Thunderbird; but works for others.  My
 Thunderbird works flawlessly for numerous other newsgroups.

 I've posted 2 or 3 bug reports, no response!


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

 This newsgroup is actually a mailing list.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk

 Oh, I thought news.php.net was a NNTP news server.  And,
 news://news.php.net:119/php.general was a newsgroup on the server.

 My mistake.


Mailing list, newsgroup, either one - something's changed in the last week 
or so to interrupt the smooth (or semi-smooth) functioning of it.  The only 
messages I'm seeing currently are the ones in this single topic.  Why is 
that??? 



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



Re: [PHP] Re: testing

2011-08-04 Thread Daniel Brown
On Thu, Aug 4, 2011 at 10:39, Jim Giner jim.gi...@albanyhandball.com wrote:

 Mailing list, newsgroup, either one - something's changed in the last week
 or so to interrupt the smooth (or semi-smooth) functioning of it.  The only
 messages I'm seeing currently are the ones in this single topic.  Why is
 that???

Actually, we haven't changed anything at all.  It's always been
temperamental, but it's always just been a small additional offering.
As Ash said, this is a mailing list, not a newsgroup.  The fact that
we offer a newsgroup interface at all is by all means eligible for
discontinuation, since only about six people use it in any given year.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
Sounds like time for me to move on.
Thanks for the info Dan.

All the talent on this group, and a bug like this (according to posts I've 
read) has been going on for years?

Daniel Brown danbr...@php.net wrote in message 
news:CAD9cneMicUmusc9Er7kOmLZKL_r-QORoYcMzGH5hQL=e4er...@mail.gmail.com...
On Thu, Aug 4, 2011 at 10:39, Jim Giner jim.gi...@albanyhandball.com 
wrote:

Actually, we haven't changed anything at all.  It's always been
temperamental, but it's always just been a small additional offering.
As Ash said, this is a mailing list, not a newsgroup.  The fact that
we offer a newsgroup interface at all is by all means eligible for
discontinuation, since only about six people use it in any given year.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/ 



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



Re: [PHP] Re: testing

2011-08-04 Thread Daniel Brown
On Thu, Aug 4, 2011 at 10:48, Jim Giner jim.gi...@albanyhandball.com wrote:
 Sounds like time for me to move on.
 Thanks for the info Dan.

 All the talent on this group, and a bug like this (according to posts I've
 read) has been going on for years?

Yeah, it's always been low-priority.  I've started to add a
dedicated NNTP box a number of times, but always wound up having to
move on to higher-priority things.  And, of course, being a completely
volunteer effort, it loses even more priority status when work is
busy.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: Re: [PHP] Re: testing

2011-08-04 Thread Tim Streater
On 04 Aug 2011 at 15:48, Jim Giner jim.gi...@albanyhandball.com wrote: 

 Sounds like time for me to move on.
 Thanks for the info Dan.

Say Jim,

Why don't you pick it up as mail like the rest of us?

--
Cheers  --  Tim

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

Re: Re: [PHP] Re: testing

2011-08-04 Thread Jim Giner
Because I'm lazy.  I LIKE the newsgroup method - all my mail in one place: 
email, newsgroups together yet separate so that I can read the news postings 
when I have time, and the email is purely mine.
Tim Streater t...@clothears.org.uk wrote in message 
news:08.87.13433.b57ba...@pb1.pair.com...
On 04 Aug 2011 at 15:48, Jim Giner jim.gi...@albanyhandball.com wrote:

 Sounds like time for me to move on.
 Thanks for the info Dan.

Say Jim,

Why don't you pick it up as mail like the rest of us?

--
Cheers  --  Tim



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



Re: [PHP] Re: testing

2011-08-04 Thread Tamara Temple


On Aug 4, 2011, at 10:21 AM, Jim Giner wrote:

Because I'm lazy.  I LIKE the newsgroup method - all my mail in one  
place:
email, newsgroups together yet separate so that I can read the news  
postings

when I have time, and the email is purely mine.
Tim Streater t...@clothears.org.uk wrote in message
news:08.87.13433.b57ba...@pb1.pair.com...
On 04 Aug 2011 at 15:48, Jim Giner jim.gi...@albanyhandball.com  
wrote:



Sounds like time for me to move on.
Thanks for the info Dan.


Perhaps so, when to support your laziness you expect other to spend  
lots of uncompensated effort


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



Re: [PHP] Re: testing

2011-08-03 Thread Ashley Sheridan


Al n...@ridersite.org wrote:



On 8/2/2011 5:18 PM, Jim Giner wrote:
 Don't seem to be getting any feeds thru the newsgroup mirror(?).



This newsgroup has been a mess for almost a year now.

One big problem is that the server only accepts a small number of
connections,
for just some mail clients, eg Thunderbird; but works for others.  My
Thunderbird works flawlessly for numerous other newsgroups.

I've posted 2 or 3 bug reports, no response!


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

This newsgroup is actually a mailing list.

Thanks,
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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



Re: [PHP] Re: testing

2011-08-03 Thread Al



On 8/3/2011 9:16 AM, Ashley Sheridan wrote:



Aln...@ridersite.org  wrote:




On 8/2/2011 5:18 PM, Jim Giner wrote:

Don't seem to be getting any feeds thru the newsgroup mirror(?).




This newsgroup has been a mess for almost a year now.

One big problem is that the server only accepts a small number of
connections,
for just some mail clients, eg Thunderbird; but works for others.  My
Thunderbird works flawlessly for numerous other newsgroups.

I've posted 2 or 3 bug reports, no response!


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


This newsgroup is actually a mailing list.

Thanks,
Ash
http://www.ashleysheridan.co.uk


Oh, I thought news.php.net was a NNTP news server.  And,
news://news.php.net:119/php.general was a newsgroup on the server.

My mistake.


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



RE: [PHP] Re: testing

2011-08-02 Thread admin
 -Original Message-
 From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
 Sent: Tuesday, August 02, 2011 5:25 PM
 To: php-general@lists.php.net
 Subject: [PHP] Re: testing
 
 
 Jim Giner jim.gi...@albanyhandball.com wrote in message
 news:6d.60.30104.5b968...@pb1.pair.com...
  Don't seem to be getting any feeds thru the newsgroup mirror(?).
 
 Ok - this showed up in my OE newsgroup, but OE still shows 36 more
 messages
 in php.general that I haven't/can't seem to retrieve.  Is something
 wrong
 with the list-to-newgroup interface?
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


I was thinking the same thing I have none myself.


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



Re: [PHP] Re: testing

2011-08-02 Thread Jim Giner
- Original Message - 
From: ad...@buskirkgraphics.com
To: 'Jim Giner' jim.gi...@albanyhandball.com; 
php-general@lists.php.net

Sent: Tuesday, August 02, 2011 6:01 PM
Subject: RE: [PHP] Re: testing


I was thinking the same thing I have none myself.



Your response did show up in my newsgroup.  But that's the first since the 
26th. 




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



Re: [PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Ken Kixmoeller.com


On Apr 23, 2008, at 4:53 PM, Shawn McKenzie wrote:


Ken Kixmoeller wrote:


I know how to test for the existance of HTTPS, and stuff like that.
So: Can one test https on a local machine? Resources, anyone? I  
have Googled my fingers off.


Why not just generate a free self-signed certificate for use on the  
dev server or workstation?




Thanks, Shawn  Mike --

I'll research that. Many thanks...

Ken

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



Re: [PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Shawn McKenzie

Ken Kixmoeller.com wrote:


On Apr 23, 2008, at 4:53 PM, Shawn McKenzie wrote:


Ken Kixmoeller wrote:


I know how to test for the existance of HTTPS, and stuff like that.
So: Can one test https on a local machine? Resources, anyone? I have 
Googled my fingers off.


Why not just generate a free self-signed certificate for use on the 
dev server or workstation?




Thanks, Shawn  Mike --

I'll research that. Many thanks...

Ken


May be more involved with IIS 5 (most likely download openssl and go 
thru some gyrations), but IIS 6 and greater you can use the IIS resource 
kit.  Apache on Windows probably requires the same openssl incantations 
plus more, but anything on linux should be fairly easy with just 1 or 
several commands.  No clue on OSX, but will probably be same as linux 
but you'll probably not have the needed libs etc installed so you'll 
need to install some openssl stuff, etc...


-Shawn

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



Re: [PHP] Re: Testing a String for 'most' Capitalised

2005-10-10 Thread Richard Lynch
On Mon, October 10, 2005 12:31 pm, zzapper wrote:
 On Mon, 10 Oct 2005 15:27:05 +0100,  wrote:

On 10/10/05, zzapper [EMAIL PROTECTED] wrote:
 Hi,

 Image that there could be a string

 fred
 Fred
 FRED

 First of all I need to know that these are same which I can do with
 strtolower, but how could I tell
 that 'FRED' is 'most captilised?

 Thanx 4 various replies. In fact speed is more important 4 me than
 exactitude as it's right inside a
 critical loop.

 I think strcmp will do the biz even though it sees fred as being
 greater than Fred ?!?

A = 65
B = 66
C = 67
.
.
.

a = 120 (?)
b = 121 (?)
c = 122 (?)
.
.
.

f  F
a  A
fred  Fred  FRED

The smallest string is the most capitalized, assuming they are the
same in lowercase.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Re: Testing if cookies are enabled

2004-06-22 Thread deseavers
Reading Aidan's e-mails is like watching a Disney movie.  You can't help but feel warm 
and fuzzy inside and loving toward the whole world.

Basically, create a page with an HTML form that takes the user name and password (or 
whatever login information you think is appropriate).  The action of the form could be 
the next page, which sets the cookie.  However, if you just want to have personalized 
data based on the login, you have some other options, such as sessions and, even 
better in my opinion, accessing records in a database.

Aidan, in his loving way, pointed you to a good starting point for setting cookies: if 
you haven't read the manual, it migh be helpful.

-Original Message-
From: Aidan Lister [EMAIL PROTECTED]
Sent: Jun 21, 2004 5:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Testing if cookies are enabled

Think about it.

Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie

Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie

If you can't work it out, and have actually done some reading, feel free to
ask for some more help.



Martin Schneider [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello!

 I saw this on some pages and want to do the same:

 - On one page the user can login. Before that no cookie is set!

 - On the next page they set the cookie and show either the user data or
 a warning that the user has disabled cookies and should enable them.

 I wasn't able to set and text a cookie on the same page! How is it done?

 Martin

-- 
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] Re: Testing if cookies are enabled

2004-06-22 Thread Umesh Deshmukh
Hi,

You can check if browser cookies are enabled or not by using follow. given
JavaScript functions.
//** jsfunc.js ***//

function f_ReadCookie(cookieName)
{
if (cookieName ==  )
{
 return;
}
var theCookie=+document.cookie+((/) ? ; path= + / : ) ;
var ind=theCookie.indexOf(cookieName);
if (ind==-1 || cookieName==) return ;
var ind1=theCookie.indexOf(';',ind);
if (ind1==-1) ind1=theCookie.length;
return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
/ read cookie /

/* Cookie Check function call  /
f_WriteCookie(ckTmp,Y); // write temp. cookie
sVal = f_ReadCookie(ckTmp); // read this value again
if (sVal != Y)
{
return false;
}
return true;
}

function f_WriteCookie(name, value)
{
if (name == )
{
return false;
}

if (value != null)
{
var curCookie = name + = + escape(value) + ((/) ? ; path= + / :
) //+
document.cookie = curCookie;
}
}// write cookie


function f_CheckBrowserCookie()
{ 
// Cookie Check function call 
f_WriteCookie(ckTmp,Y); // write temp. cookie
sVal = f_ReadCookie(ckTmp); // read this value againbr
if (sVal != Y)
{
return false;
}
return true;
}
//** Use follow. given function in Onload of Body of HTML file of 
Login page ***//
SCRIPT language=JavaScript
function CheckBrowserCookie()
{
if(!f_CheckBrowserCookie())
alert('Browser cookies are disabled.Please enable them.');
}
/SCRIPT

// *** in onload  call it as  below **//
body bgcolor=#C7D1F1 leftmargin=0 marginheight=0 marginwidth=0 topmargin=0 
onLoad=CheckBrowserCookie();

With these functions you will be able to check if the cookies are enabled or disabled.

Regards,

Umesh.

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



RE: [PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Ford, Mike [LSS]
On 21 June 2004 12:11, Martin Schneider wrote:

 thanks for your reply, I think you missunderstood, please read more
 carefully. I know how to set and read a cookie, but as I
 wrote I wasn't
 able to set and text a cookie ON THE SAME PAGE.
 
 The manual says: http://php.net/setcookie
 Once the cookies have been set, they can be accessed ON THE
 NEXT PAGE.
 
 But I have seen pages on which it seems they set und check if
 the cookie
 has been set ON THE SAME PAGE. So I want to know how they do that
 (perhaps with a 302-header or something like that?).

Yes, that's one possibility, but there'd still have to be at least one page
load involved before you'd see the cookie.  What you describe makes it more
likely that there's actually some client-side technology involved, such as
JavaScript.

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] Re: Testing if cookies are enabled

2004-06-21 Thread Curt Zirzow
* Thus wrote Martin Schneider:
 
 But I have seen pages on which it seems they set und check if the cookie 
 has been set ON THE SAME PAGE. So I want to know how they do that 
 (perhaps with a 302-header or something like that?).

I think you answered you're own question :)

if(! isset($_COOKIE['var']) ) {
  setcookie(...);
  header('Location: this_same_script.php');
} else {
  ...

}

while technically not the same page, it just appears that way to
the client.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



Re: [PHP] Re: testing for empty array

2002-11-26 Thread Morgan Hughes
On Tue, 26 Nov 2002, Kyle Gibson wrote:

  I have an array $keywords, how do I test to see if it is empty?
  $keywords == '' seems to throw out an error.

 Maybe...

 if(count($keywords) = 0)
 {
   //...
 }

  I use sizeof(), which apparently is an alias to count(), and it works
  fine, so count() should do the trick.

  if ( !sizeof($keywords) )
print keywords is empty;

-- 
   Morgan Hughes
   C programmer and highly caffeinated mammal.
   [EMAIL PROTECTED]
   ICQ: 79293356



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




RE: [PHP] Re: Testing for the presence of HTML

2001-11-20 Thread Matthew Luchak


If I understand the question correctly - came late to the thread - I
think the easiest way to do this would be to check for the presence of
/ or as a minimum  when the user submits the form.  You could then
pop up a confirmation dialog This text seems to contain HTML code is
this correct?  - Ah! my god, I'm advocating clippy :( ... You can then
insert a boolean to mark the file according to their response.

 
Matthew Luchak 
Webmaster
Kaydara Inc. 
[EMAIL PROTECTED]


-Original Message-
From: Richard S. Crawford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Testing for the presence of HTML


Unfortunately, I also have users entering complex HTML code such as
tables; 
which, if each tag of a table is on a separate line, renders badly with 
nl2br().  I mean, really badly.  You have no idea.

My users range from professional web developers to people who are still 
frightened by the idea of using a mouse.


At 01:20 PM 11/20/2001, Fred wrote:
This may not actually be a problem.  If you are expecting that users
may
enter links as html you can still use nl2br and get a decent result.
The
only time this would be a problem, would be if the users actually
entered
BR as they filled in the form.  In my experience, it is highly
unlikely
that a user will write their own BR as they fill in a form, even if
they
do enter other html such as links.

Fred

Richard S. Crawford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
My database contains a field which may or may not contain HTML code,
depending on what a particular user enters when they enter the data.

Here's the challenge:

If there is HTML code in this field, then print the text with
interpreted
HTML.  No problem at all.

If there is no HTML code in the field, then I still want the data
printed
nice and neat; the users will probably use line returns to make their
text
look somewhat decent.

So, assuming that $text contains the contents of this field, then what
I
want to do is this:

  if (!HTMLin$text) then $text = nl2br($text);

What's the best way to check and see if HTML is present in the field?


Sliante,
Richard S. Crawford

http://www.mossroot.com
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
MSN: [EMAIL PROTECTED]

It is only with the heart that we see rightly; what is essential is
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]


Sliante,
Richard S. Crawford

http://www.mossroot.com
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
MSN: [EMAIL PROTECTED]

It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]