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



[PHP] Re: testing

2011-08-04 Thread Jim Giner

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(?).

Something's wrong.  My OE still cannot connect to the news server for this 
list, it continues to show unread messages are available, but it cannot 
download them.  Something has changed.  PLUS - this 'testing' msg of mine 
DOES show up - whassup with 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 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



[PHP] Re: testing

2011-08-03 Thread Al



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



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



[PHP] Re: testing

2011-08-02 Thread Jim Giner

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



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



[PHP] Re: Testing a URL with regex

2009-01-07 Thread Nathan Rixham

Sn!per wrote:

Let's say I have these URLs

http://example.com/index.php?q=gallery
http://example.com/index.php?q=galleryg2_itemId=81
http://example.com/index.php?q=galleryg2_itemId=100

I want to have a line of code that will extract just the 
http://example.com/index.php?q=gallery; part of the URL.


I am never good with regex, please help. TIA.

--
roger




--
Sign Up for free Email at http://ureg.home.net.my/



http://uk3.php.net/parse_url may be more suited to you're needs

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



[PHP] Re: Testing HTTPS without certificate

2008-04-23 Thread Shawn McKenzie

Ken Kixmoeller wrote:

Hi - - -   - --

I have a typical setup -- my development machine, a testing server and, 
of course, the production server. My development machine, of course, 
doesn't have a Secure certificate, yet I need to be able to test https 
pages here, before getting to the testing server. (Currently, the 
testing server doesn't have one either, but that will be remedied shortly.)


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.


Environment: PHP 5.2.5
Win 2K
IIS 5

- or, if I need to -

Mac OS-X 10.4
Apache? (I haven't set up the Mac as a server)

 - or -

Linux (Ubuntu) with Apache (I am moving this direction and haven't yet 
learned how to run Apache)


Ken


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


-Shawn

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



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

2005-10-10 Thread zzapper
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 ?!?



-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/

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



[PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Aidan Lister
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] Re: Testing if cookies are enabled

2004-06-21 Thread Martin Schneider
Hi Aidan,
 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
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?).

Martin
Aidan Lister schrieb:
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


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



[PHP] Re: Testing Pear install

2004-03-03 Thread Ben Ramsey
David Jackson wrote:
How can I test to see if and what portions of Pear are installed on a 
vhosted website?

TX,
david
I'm not sure how to tell what portions are installed, exactly, but you 
can test to see whether PEAR itself is installed simply by using

require 'PEAR.php';

If it complains, then it can't find it and it's probably not installed. 
 You can download the PEAR packages yourself, though, drop them into a 
directory in your site (or outside the root of your site), and use 
ini_set() to set your include_path to the directory where your PEAR 
classes reside.  Then you can use PEAR without having to install it.

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Testing Pear install

2004-03-03 Thread DAvid Jackson
Ben Ramsey wrote:

 You can download the PEAR packages yourself, though, drop them into a 
directory in your site (or outside the root of your site), and use 
ini_set() to set your include_path to the directory where your PEAR 
classes reside.  Then you can use PEAR without having to install it.
Ben --
It's looks like that's what I'm going to have to do :-(
My church made a poor decision, about which hosting company to go with
Tx,
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Testing for Well-Formed XML

2003-12-30 Thread Al
Ian Williams [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi
 I'm trying to build a validator in PHP, to check that XML documents are
 well-formed.

As a starting point I'd check out the excellent, open-source PEAR modules
available for XML manipulation at
http://pear.php.net/packages.php?catpid=22catname=XML, and in particular
the XML parser module at http://pear.php.net/package/XML_Parser.

Hope that helps,

Al

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



[PHP] Re: testing for 0

2003-03-01 Thread Niels Andersen
Data from POST is a hash table of strings, so you should use this to check
for zero:

if ($_POST['field'] == 0)
 // Zero was entered



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



[PHP] Re: testing for empty array

2002-11-26 Thread Kyle Gibson
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)
{
	//...
}


--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/


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




[PHP] Re: testing

2002-07-25 Thread lallous

test ok!



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




[PHP] Re: Testing PHP on a local machine

2002-06-26 Thread Craig

Thanks for pointing me in the right direction

However, just have a few other questions:-

Do i need to install apache if i use the windows self extracting version?
Can all this be also done on a laptop?

Thanks for all the advice

Craig
Craig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...



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




[PHP] Re: Testing PHP on a local machine

2002-06-26 Thread David Robley

In article [EMAIL PROTECTED], [EMAIL PROTECTED] 
says...
 Thanks for pointing me in the right direction
 
 However, just have a few other questions:-
 
 Do i need to install apache if i use the windows self extracting version?

I assume you are talking about php self extracting? If so, you will also 
need some sort of web server to be able ot develop php web based stuff.

 Can all this be also done on a laptop?
Works on mine.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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




[PHP] Re: testing for blank var

2002-03-21 Thread Julio Nobrega Trabalhando

if (ereg(^[[:blank:]]*$,$img_url)) {
// $img_url is blank
}

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


Robert McPeak [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 if $img_url has a value, then I'd like to show the image, if it doesn't,
 then I'd like to show a message.  What's wrong with my code?  Am I
 incorrectly testing for the value?  The else works fine, but not the if.
  Thanks!

 if (!$img_url)
 {
 echo bNo Image URL Entered/bbr;
 }
 else
 {
 echo img src=\$img_url\;
 }




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




[PHP] Re: testing for blank var

2002-03-21 Thread Marcel Besancon

Hi Robert,

maybe your variable doesn't exist. Try using

if(!isset($variable))  {
missing-message  }
else  {
show $variable  }

I hope this helps.

Bye, Marcel

--
registered Fli4l-User #0388



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




[PHP] Re: testing for cookies capable client (browser)

2002-02-02 Thread Manuel Lemos

Hello,

Justin French wrote:
 
 Hi,
 
 Is there a simple method for checking if cookies are enabled (able to be
 set) on a browser?  The only method I can think of is setting the
 cookie, then refreshing the page (or going to another URL) in order to
 tet if the cookie exists... which sounds messy.

It is the only reliable method, but make sure if you try persistent
cookies first to fallback to session cookies if persistent fail.


 
 I'd prefer not to use anything client-side (javascript etc).

The user may have a cookie enabled browser with Javascript disabled.

Regards,
Manuel Lemos

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




[PHP] Re: Testing Alert: Significant changes to DOM-XML

2001-12-01 Thread Markus Fischer

[This mail goes out to php-dev, php-qa and php-general and
has its Reply-To: set to php-dev!]

Hi Zak,

thanks for the mail, I was thinking about writing such a mail
myself but was to tired I guess.


Yep, the CVS note to the latest ext/domxml changes state it
clearly:

# Testers/patches/contribs welcome.

The actual changelog can be found here [1].


Also for anyone out there who has no idea about CVS: It won't
help me anything filing bug reports against any released
source code of PHP out there. Please use the HEAD branch when
filing bug reports. See CVS instructions at
http://www.php.net/anoncvs.php how to achive this.


Although I don't expect a rush on this ;) I want to give out
some simple rules for anyone helping us getting domxml more
stable:

.) If you have a reproduceable crash with small
   self-containing script with no other external
   dependencies than loading a file -

don't forget to use the bug reporting system!

   Do not mail me privately about it!

   No, I'm not lazy or whatever but I wan't to broaden
   the audience reading about the bugs (two eyes see less
   than more eyes) and it also helps me keeping track of
   all the problems.

.) If you have a reproduceable crash but can't create a
   small self-containing script, there are three options:

1) still try to create one (prefered)

2) Provide backtrace in your bug report
   ('bt full' command, not normal bt)

3) give me access to your devel system
   (no, no joke. This has worked in the past, it can
   in the future) But no promises.

.) Before reporting, try creating a testcase which is
   suiteable to run on the command line of PHP (read:
   with the CGI version).

   Apache is nice but it adds some extra work when
   handling the bugs I prefer the reproduceable scripts
   which use the CGI version for testing and don't
   contain any fancy br / tags but newlines and such
   instead. The find bug/fix it cycle is much faster
   without apache.

   Again, I'm not lazy, but I'm also using MSVC for
   debugging and although I'm not a windows fan I've seen
   myself being faster chasing down bugs with it then
   with gdb (doh!).

.) Patches can go directly to me; but please also tell me
   why and what and give a testing script and not only
   send a diff to me.

   Of cousre, anyone with the proper karma is encouraged
   to fix it himself (you might want to check back if I'm
   not currently working on it).

.) NEW FEATURES

   No, I do NOT plan to add now featuers. I'm just
   interesting in making the current version more stable
   but time doesn't permit to expand this scope.

   But you're still encouraged to use the bug report
   system to put your feature requests there or do it
   yourself.


What I wrote done seems normal to me and I do not explicetely
prefer this for domxml but anything else too. Saves mit quite
lot of time.


On Sat, Dec 01, 2001 at 08:19:47PM -0700, Zak Greant wrote : 
 Marcus Fischer has made [...]

Yo, and its still MarKKKus ;-)

- Markus

[1] http://cvs.php.net/cvs.php/php4/ext/domxml/php_domxml.c

-- 
Please always Cc to me when replying to me on the lists.

-- 
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] Re: Testing MySQL 4.0 ; detaching queries

2001-11-28 Thread Julio Nobrega Trabalhando

  Save the queries on different files, one for each query. Then make a
script that will read all these files and execute the queries, maybe run it
as a cron job, and delete the succesful ones . With several files will be
easier to spot an error if occur, just open it and see the query.

  Okay, it's not much 'on-the-fly', because doesn't have all agreggated
processes from the whole script running, but your queries will be tested...

--

Julio Nobrega

No matter where you go, this.

Steven Roussey [EMAIL PROTECTED] wrote in message
news:003001c17844$9c7b9aa0$[EMAIL PROTECTED]...
  You could just exec() the page again, with a parameter telling it to
 use
  the test server, like so:

 I like this general idea, though the above method would take a little
 more work since I would have to pass the environment variables and
 apache variables (GET and POST, etc) to exec and I don't know how.

 However, I can try and setup a test web server on the test SQL server
 and have a auto_postpend file that sets up all these variables (cookies,
 post vars, etc) and sends them off using fsockopen, etc., as a HTTP
 request to the other server. If I setup the other server to ignore
 hangups, then I can send the request and quit.

 Thanks for the idea!

 Sincerely,
 Steven Roussey
 http://Network54.com/?pp=e






-- 
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] Re: Testing for the presence of HTML

2001-11-20 Thread Fred

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]




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

2001-11-20 Thread Richard S. Crawford

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]




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]




[PHP] Re: Testing if Scripting has been disabled

2001-08-01 Thread Richard Lynch

 Is there a method to test if Scripting has been disabled in the browser?

Sure.

Use JavaScript to forward to another page, or set a variable, or something,
and check it on the next page.

Either JavaScript worked, or it didn't.

There is *NO* way, a priori, to tell for the first page though.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



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