Re: [PHP] test

2012-06-07 Thread Camilo Sperberg
It seems so

Sent from my iPhone 5 Beta [Confidential use only]

On 7 jun. 2012, at 20:07, Sven Kowalski sven-kowal...@gmx.de wrote:

 does it work now?
 
 -- 
 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] test

2012-06-07 Thread Jay Blanchard

On 6/7/12 1:07 PM, Sven Kowalski wrote:

does it work now?


It pretty much always did.


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



Re: [PHP] Test

2012-02-21 Thread Tedd Sperling
On Feb 20, 2012, at 2:49 PM, Daniel Brown wrote:

 On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work
 
The list works just fine, it's you goofs who need to work now!  ;-P

It still doesn't work and I didn't get this. :-)

Cheers,

tedd


_
tedd.sperl...@gmail.com
http://sperling.com

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



Re: [PHP] Test

2012-02-21 Thread Jay Blanchard
It's like coming home, I knew I could count on certain of you to make 
light of this and that makes me strangely happy.


On 2/21/2012 7:55 AM, Tedd Sperling wrote:

On Feb 20, 2012, at 2:49 PM, Daniel Brown wrote:


On Mon, Feb 20, 2012 at 14:40, Bastienphps...@gmail.com  wrote:

Definitely doesn't work

The list works just fine, it's you goofs who need to work now!  ;-P

It still doesn't work and I didn't get this. :-)

Cheers,

tedd


_
tedd.sperl...@gmail.com
http://sperling.com




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



Re: [PHP] Test

2012-02-21 Thread Tedd Sperling
On Feb 21, 2012, at 9:44 AM, Jay Blanchard wrote:

 It's like coming home, I knew I could count on certain of you to make light 
 of this and that makes me strangely happy.

Seek professional help now. :-)

Cheers,

tedd

_
tedd.sperl...@gmail.com
http://sperling.com

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



Re: [PHP] Test

2012-02-20 Thread Daniel Brown
On Mon, Feb 20, 2012 at 13:57, Jay Blanchard
jay.blanch...@sigmaphinothing.org wrote:
 Does this work?

It does now.  Guessing your host fixed some routing issues when
you contacted them.

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

2012-02-20 Thread Marc Guay
 Does this work?

No?

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



Re: [PHP] Test

2012-02-20 Thread Jason Pruim
Nope doesn't work, ;)



On Feb 20, 2012, at 1:57 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org 
wrote:

 Does this work?
 
 -- 
 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] Test

2012-02-20 Thread Fatih P.
On Mon, Feb 20, 2012 at 8:57 PM, Jay Blanchard 
jay.blanch...@sigmaphinothing.org wrote:

 Does this work?

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


it works


Re: [PHP] Test

2012-02-20 Thread Bastien
Definitely doesn't work

Bastien Koert

On 2012-02-20, at 2:21 PM, Jason Pruim li...@pruimphotography.com wrote:

 Nope doesn't work, ;)
 
 
 
 On Feb 20, 2012, at 1:57 PM, Jay Blanchard 
 jay.blanch...@sigmaphinothing.org wrote:
 
 Does this work?
 
 -- 
 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
 

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



Re: [PHP] Test

2012-02-20 Thread Daniel Brown
On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work

The list works just fine, it's you goofs who need to work now!  ;-P

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

2012-02-20 Thread Jay Blanchard
I'll be darned - it finally works. What's up with that?

On Feb 20, 2012, at 1:49 PM, Daniel Brown wrote:

 On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work
 
The list works just fine, it's you goofs who need to work now!  ;-P
 
 -- 
 /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
 
 


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



Re: [PHP] Test

2012-02-20 Thread Jason Pruim
Someone finally got off their butt and got some work done? ;)

And I have today off for Washingtons birthday! 



On Feb 20, 2012, at 2:59 PM, Jay Blanchard jay.blanch...@sigmaphinothing.org 
wrote:

 I'll be darned - it finally works. What's up with that?
 
 On Feb 20, 2012, at 1:49 PM, Daniel Brown wrote:
 
 On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work
 
   The list works just fine, it's you goofs who need to work now!  ;-P
 
 -- 
 /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
 
 
 
 
 -- 
 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] Test

2012-02-20 Thread Camilo Sperberg
It's alvvve!!!

Sent from my iPhone 5 Beta [Confidential use only]

On 20 feb. 2012, at 21:08, Jason Pruim li...@pruimphotography.com wrote:

 Someone finally got off their butt and got some work done? ;)
 
 And I have today off for Washingtons birthday! 
 
 
 
 On Feb 20, 2012, at 2:59 PM, Jay Blanchard 
 jay.blanch...@sigmaphinothing.org wrote:
 
 I'll be darned - it finally works. What's up with that?
 
 On Feb 20, 2012, at 1:49 PM, Daniel Brown wrote:
 
 On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work
 
  The list works just fine, it's you goofs who need to work now!  ;-P
 
 -- 
 /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
 
 
 
 
 -- 
 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
 

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



Re: [PHP] Test

2012-02-20 Thread Matijn Woudt
Nooo, It's DEAD!

On Mon, Feb 20, 2012 at 9:45 PM, Camilo Sperberg unrea...@gmail.com wrote:
 It's alvvve!!!

 Sent from my iPhone 5 Beta [Confidential use only]

 On 20 feb. 2012, at 21:08, Jason Pruim li...@pruimphotography.com wrote:

 Someone finally got off their butt and got some work done? ;)

 And I have today off for Washingtons birthday!



 On Feb 20, 2012, at 2:59 PM, Jay Blanchard 
 jay.blanch...@sigmaphinothing.org wrote:

 I'll be darned - it finally works. What's up with that?

 On Feb 20, 2012, at 1:49 PM, Daniel Brown wrote:

 On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
 Definitely doesn't work

  The list works just fine, it's you goofs who need to work now!  ;-P

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




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


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

2010-01-11 Thread LAMP

I tried again and got this error message:

Hi. This is the qmail-send program at outbound-mail-319.bluehost.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

php-general@lists.php.net:
76.75.200.58 failed after I sent the message.
Remote host said: 550 we're manly enough already


?!?!?!!??!






--- Enclosed are the original headers of the message.



LAMP wrote:

sorry for this - previous email didn't get through?!!?!?




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



Re: [PHP] test

2010-01-11 Thread Daniel Brown
On Mon, Jan 11, 2010 at 15:52, LAMP l...@afan.net wrote:
 I tried again and got this error message:

 Hi. This is the qmail-send program at outbound-mail-319.bluehost.com.
 I'm afraid I wasn't able to deliver your message to the following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.

 php-general@lists.php.net:
 76.75.200.58 failed after I sent the message.
 Remote host said: 550 we're manly enough already

Sounds like a subscriber's mail server bounced your list message
because it thought it was SPAM.  Nothing to worry about your email
came through.

For the future, when unsure about list messages, check
http://news.php.net/php.general/ .

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers?  Ask me how we can fit your budget!

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



Re: [PHP] test

2010-01-11 Thread LAMP

Daniel Brown wrote:

On Mon, Jan 11, 2010 at 15:52, LAMP l...@afan.net wrote:
  

I tried again and got this error message:

Hi. This is the qmail-send program at outbound-mail-319.bluehost.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

php-general@lists.php.net:
76.75.200.58 failed after I sent the message.
Remote host said: 550 we're manly enough already



Sounds like a subscriber's mail server bounced your list message
because it thought it was SPAM.  Nothing to worry about your email
came through.

For the future, when unsure about list messages, check
http://news.php.net/php.general/ .


But I still can't send my question!?! :-)


LL


RE: [PHP] Test

2008-07-26 Thread Jay Blanchard


-Original Message-
From: Daniel Lambert [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 26, 2008 2:48 AM
To: php-general@lists.php.net
Subject: [PHP] Test

Just testing to see if this is correct address to email to.

It depends on what you are asking

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



Re: [PHP] Test

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 5:33 PM, Ray Hauge [EMAIL PROTECTED] wrote:
 I recently figured out how to use two SMTP accounts in Thunderbird.
  Hopefully this will help the list to not count me as spam so much (I was
  using my own host to send as gmail... doesn't work so well).

I hadn't noticed a problem at all before, but in any case, this
message came through just fine!

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

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



Re: [PHP] test for multi-dim array

2007-08-16 Thread Stut

John Pillion wrote:

I'm trying to recursively loop through a multi dimensional array with
unknown keys and unknown values, and echo the keys/values to a sql
statement, where the key is the field, and the value is the. value.

What I want to do is test an array index to see if it has any children
indices (which then need to be looped through again), or if it is the lowest
level child. in which case, the data needs to be extracted.

What is the easiest way to test an array index to see if it has one or more
children? Just doing a count() isn't reliable, as their may only be a single
parent on the highest level.


A combination of is_array and count should be enough.

-Stut

--
http://stut.net/

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



Re: [PHP] test

2006-10-04 Thread Philipp Schwarz

Stupid?

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



Re: [PHP] Test!

2006-08-29 Thread Robert Cummings
On Tue, 2006-08-29 at 23:00 -0400, Rafael Mora wrote:
 Hello! this is a test, can anyone tell me if u are getting my emails??

I'm not getting them :/

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] Test URL length please (Pretty much 0T)

2006-05-05 Thread tedd

At 1:36 PM -0700 5/4/06, Ryan A wrote:

Hi again,
Kindly save the below code as t.php and run it in as
many browsers/servers you can, then click on each of
the links and tell me if you run into any problems.

(Basically, I am checking to see how many characters
we can have in a URL that the server will accept and
process, the script checks 200-1000 chars.. add more
if you want to)

Thanks!
Ryan


Ryan:

http://xn--ovg.com/t.php

In Safari 2.0.3, FireFox 1.5.0.2, IE 5.2, Mozilla 1.83a I could run 
8168 characters (f-click) without any problems. But, Opera 8.5 failed.


However, when I increased it to 8169 characters (g-click) they all failed.

HTH's

tedd

PS: Mac OS-X 10.4.6
Linux server1.ghettowebhosting.net Apache/1.3.34 (Unix) 
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 
PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a

--

http://sperling.com

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



Re: [PHP] Test URL length please (Pretty much 0T)

2006-05-05 Thread Ryan A


 
 Ryan:
 
 http://xn--ovg.com/t.php
 
 In Safari 2.0.3, FireFox 1.5.0.2, IE 5.2, Mozilla
 1.83a I could run 
 8168 characters (f-click) without any problems. But,
 Opera 8.5 failed.
 
 However, when I increased it to 8169 characters
 (g-click) they all failed.
 
 HTH's
 
 tedd
 
 PS: Mac OS-X 10.4.6
 Linux server1.ghettowebhosting.net Apache/1.3.34
 (Unix) 
 mod_auth_passthrough/1.8 mod_log_bytes/1.2
 mod_bwlimited/1.4 
 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.25
 OpenSSL/0.9.7a
 -- 


Thanks Tedd,
I appreciate it.

Cheers,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED]
on Thursday, May 04, 2006 1:36 PM said:

 (Basically, I am checking to see how many characters
 we can have in a URL that the server will accept and
 process, the script checks 200-1000 chars.. add more
 if you want to)

Without any tweaking of the server mine went up to 4000 without a
problem. However, 5000 always times out.

Fx 1.5, Apache 2, Fedora 4, PHP 4.3.11


fwiw,
Chris.

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



RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 4:51 pm, Chris W. Parker wrote:
 Ryan A mailto:[EMAIL PROTECTED]
 on Thursday, May 04, 2006 1:36 PM said:

 (Basically, I am checking to see how many characters
 we can have in a URL that the server will accept and
 process, the script checks 200-1000 chars.. add more
 if you want to)

 Without any tweaking of the server mine went up to 4000 without a
 problem. However, 5000 always times out.

 Fx 1.5, Apache 2, Fedora 4, PHP 4.3.11

HTTP servers are required to support at least X bytes.

X changed from HTTP spec to spec.

In all specs, servers were encouraged to support as many characters
as is practical

Note that part of this stems from the fact that there are many
embedded HTTP servers with very specific minimalist goals.

EG the HTTP server in one of them little D-Link hub thingies has to be
pretty small, right?

But they want to be compliant with the spec, right?

Or, at least, non-compliance should not be over something as trivial
as the dang URL being too long

At any rate, other than being more than the minimum, it's entirely up
to your HTTP application how long is max length

Here's the thing though:  Do you really want a 4000-char URL?

That's probably not a Good Idea for a lot of different reasons -- some
of which may not apply to domain-specific applications, but...

MOST people asking this question are e, not newbies, but
journeymen web application developers, who are going to soon realize
that there are better ways to manage client/server I/O than cramming
4000 characters into a URL. :-) :-) :-)

IMHO YMMV IANAL

-- 
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] Test URL length please (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey,

Thanks for replying and testing it out.


 Here's the thing though:  Do you really want a
 4000-char URL?

Not at all, I just wanted to know if I can put 30-50
words in a url or would it break

 
 MOST people asking this question are e, not
 newbies, 

Well, if you compare me to the gurus on this list, I'm
always going to be a newbie...so dont worry about the
errr just say it ;-)


Cheers,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Ryan A
Hey,
Thanks for replying and testing it out.

 Without any tweaking of the server mine went up to
 4000 without a
 problem. However, 5000 always times out.
 
 Fx 1.5, Apache 2, Fedora 4, PHP 4.3.11

Cool...

 Are you sure you searched on this subject?

 maximum url length in Google turns up a number of 
 resources saying 2083 due to IE's limit.

Yes, I mentioned that in my original post...but read
that carefully, it says IE's limit,not everyone uses
IE and if you continue sifting through googles results
you will see that it also mentions some servers
settings may allow more or less. Infact, your test
itself proves that it was worth it coz you took it way
up more than the 2083 limit that you found :-)

I am on a windows machine running apache 1.3, no
problems, I wanted to know if anybody else had a
problem running it on their servers (differnet
platforms, different browsers etc).

Everything good!

Thanks,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED]
on Thursday, May 04, 2006 4:08 PM said:

 Are you sure you searched on this subject?
 
 maximum url length in Google turns up a number of
 resources saying 2083 due to IE's limit.
 
 Yes, I mentioned that in my original post...

Yes I know, that's why I said, are you sure. To question your claim of
having searched.

 but read
 that carefully, it says IE's limit,not everyone uses
 IE and if you continue sifting through googles results
 you will see that it also mentions some servers
 settings may allow more or less. Infact, your test
 itself proves that it was worth it coz you took it way
 up more than the 2083 limit that you found :-)

Well of course but that's because I wasn't using IE so my point is that
I don't think it matters (that I got over 2083). I would be willing to
say that 3/4 of all internet users are on IE still so tweaking server
settings and testing with browsers other than IE is useless. Unless of
course you know exactly your audience's setup (for example in a
corporate setting where you know your client's setup) in which case this
could possibly be worthwile. But then again if someone is passing long
strings like that they should rethink their implementation anyway... so
back to square one.



Chris.

p.s. fiddleIf I sound snippy it's because I'm at the office later than
planned because something has not gone as planned.../fiddle

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



Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Angelo Zanetti

Paul Scott wrote:

On Tue, 2006-04-04 at 15:32 -0800, Angelo Zanetti wrote:


Ive developed a site and now I've come to the stage where I need to test each 
textfield on each form for illegal characters that have been inputted.
I would like to know from some of you how you go about it?




In our framework, we use a few methods, depending on what needs to be
done in what way...

If you look at our wiki module, we use AJAX to check for valid PageNames
when using SmashWordsTogether. In our other forms we use a form
validation object that checks for numeric, alphanumeric, textonly etc on
form submission.

It sounds as though the AJAX route is more what you are looking for. If
you would like some help let me know, or ask on our developers list.


hi Paul.

Thanks for the reply. So what do you do if someone enters illegal characters in one of your form? Do you inform the user and prompt them to enter the fields again or do you just strip out all the bad 
characters and enter the rest of the info into the database?


Im concerned with what to do once a user has added the bad characters. I will 
be using a regular expression.

thanks in advance

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



Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Paul Scott
On Wed, 2006-04-05 at 13:34 -0800, Angelo Zanetti wrote:

 Thanks for the reply. So what do you do if someone enters illegal characters 
 in one of your form? Do you inform the user and prompt them to enter the 
 fields again or do you just strip out all the bad 
 characters and enter the rest of the info into the database?
 
 Im concerned with what to do once a user has added the bad characters. I will 
 be using a regular expression.
 

depends on what illegal characters are...

If I want a name, I will discard anything other than text for instance.
Send an error message to the user and get them to refill the input box.
Not sure what the question is?

--Paul

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



Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Angelo Zanetti


Paul Scott wrote:

On Wed, 2006-04-05 at 13:34 -0800, Angelo Zanetti wrote:


Thanks for the reply. So what do you do if someone enters illegal characters in one of your form? Do you inform the user and prompt them to enter the fields again or do you just strip out all the bad 
characters and enter the rest of the info into the database?


Im concerned with what to do once a user has added the bad characters. I will 
be using a regular expression.




depends on what illegal characters are...

If I want a name, I will discard anything other than text for instance.
Send an error message to the user and get them to refill the input box.
Not sure what the question is?


Ok thats perfect. So best is to prompt user to reinput their information. Thats 
exactly what I was asking.

thanks

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



Re: [PHP] test for illegal characters and consequences

2006-04-04 Thread Paul Scott
On Tue, 2006-04-04 at 15:32 -0800, Angelo Zanetti wrote:
 Ive developed a site and now I've come to the stage where I need to test each 
 textfield on each form for illegal characters that have been inputted.
 I would like to know from some of you how you go about it?
 

In our framework, we use a few methods, depending on what needs to be
done in what way...

If you look at our wiki module, we use AJAX to check for valid PageNames
when using SmashWordsTogether. In our other forms we use a form
validation object that checks for numeric, alphanumeric, textonly etc on
form submission.

It sounds as though the AJAX route is more what you are looking for. If
you would like some help let me know, or ask on our developers list.

You can check it out at any one of our sites. Try registering and adding
a page to the wiki at http://fsiu.uwc.ac.za/ for an example of the AJAX
validation

--Paul

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



Re: [PHP] Test email

2006-03-24 Thread Pham Huu Le Quoc Phuc

- Original Message - 
From: PHP Mailer [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Saturday, March 25, 2006 10:59 AM
Subject: [PHP] Test email


 Seems pretty dead tonight.
 Checking POP3 quickly.
 
 Ignore this email or reply kindest!
 
 =)
 
 -- 
 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] test security of code

2006-03-08 Thread Chris

Gregory Machin wrote:

Hi
Is there an application that can pass source code and report potential
security problem and or the live site ?
Many thanks
--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096


Just found this:
http://caffeinatedsecurity.com/blog/archives/2006/03/08/web-application-security-testing-tools/


--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] test security of code

2006-03-08 Thread Gregory Machin
Thanks looks good will read on further .

On 3/9/06, Chris [EMAIL PROTECTED] wrote:

 Gregory Machin wrote:
  Hi
  Is there an application that can pass source code and report potential
  security problem and or the live site ?
  Many thanks
  --
  Gregory Machin
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  www.linuxpro.co.za
  www.exponent.co.za
  Web Hosting Solutions
  Scalable Linux Solutions
  www.iberry.info (support and admin)
 
  +27 72 524 8096

 Just found this:

 http://caffeinatedsecurity.com/blog/archives/2006/03/08/web-application-security-testing-tools/


 --
 Postgresql  php tutorials
 http://www.designmagick.com/




--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096


Re: [PHP] test security of code

2006-03-08 Thread Björn Bartels
Hello there...

i think you can lessen this effort by improving your qualitymanagement
during the planing and development phase of your projects (means making
a lot of UML diagrams and so on...).
You may try to let the application handle its missbehavours by itself.

If you don't want anyone to get your source-code it's a question of
server security...

cheers
bb

Am $date schrieb $from:

Thanks looks good will read on further .

On 3/9/06, Chris [EMAIL PROTECTED] wrote:

Gregory Machin wrote:
Hi
Is there an application that can pass source code and report
potential
security problem and or the live site ?
Many thanks
--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096

Just found this:



http://caffeinatedsecurity.com/blog/archives/2006/03/08/web-application-security-testing-tools/


--
Postgresql  php tutorials
http://www.designmagick.com/




--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096


Björn Bartels
-Development/IT-Services-

--
dbusiness.de gmbh
digital business  printing gmbh

Greifswalder Str. 152
D-10409 Berlin

Fon: [0.30] 4.21.19.95
Fax: [0.30] 4.21.19.74

www.dbusiness.de
[EMAIL PROTECTED]
ftp://dbusiness.dyndns.org


Björn Bartels
-Development/IT-Services-

--
dbusiness.de gmbh
digital business  printing gmbh

Greifswalder Str. 152
D-10409 Berlin

Fon: [0.30] 4.21.19.95
Fax: [0.30] 4.21.19.74

www.dbusiness.de
[EMAIL PROTECTED]
ftp://dbusiness.dyndns.org

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

Re: [PHP] test variable value?

2006-01-11 Thread Jochem Maas

William Stokes wrote:

Hello

What is the best way to determine if a variable has no value?

if ($var== '')

or

if ($var== 'null')


Can 'null' be used here?


yeah buts its a string which doesn't do what you want.



if (empty($var)) { echo 'yes'; }

or:

if (is_null($var)) { echo 'yes'; }




Thanks
-Willa



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



Re: [PHP] test variable value?

2006-01-11 Thread Stut

William Stokes wrote:


Hello

What is the best way to determine if a variable has no value?

if ($var== '')

or

if ($var== 'null')


Can 'null' be used here?
 

Depends what you mean by no value. I suggest you read 
http://php.net/is_null, http://php.net/empty and http://php.net/isset.


-Stut

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



Re: [PHP] test variable value?

2006-01-11 Thread Rodolfo Andrade
How about...

if (!$x){
echo x is empty;
}

Regards,
Rodolfo Andradee


- Original Message - 
From: Stut 
To: William Stokes 
Cc: php-general@lists.php.net 
Sent: Wednesday, January 11, 2006 8:08 AM
Subject: Re: [PHP] test variable value?


William Stokes wrote:

Hello

What is the best way to determine if a variable has no value?

if ($var== '')

or

if ($var== 'null')


Can 'null' be used here?
  

Depends what you mean by no value. I suggest you read 
http://php.net/is_null, http://php.net/empty and http://php.net/isset.

-Stut

-- 
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] test variable value?

2006-01-11 Thread Stut

Rodolfo Andrade wrote:


How about...

if (!$x){
   echo x is empty;
}
 



Because $x could be an empty string, 0, false, null or undefined. If 
that's what you need to check for then knock yourself out.


-Stuart

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



Re: [PHP] test variable value?

2006-01-11 Thread Rodolfo Andrade
I do use if(!$var) for simple application. Only _IF_ I need to know if the
$var is defined but empty or so I would use especific functions.

- Original Message - 
From: Stut
To: Rodolfo Andrade
Cc: William Stokes ; php-general@lists.php.net
Sent: Wednesday, January 11, 2006 11:49 AM
Subject: Re: [PHP] test variable value?


Rodolfo Andrade wrote:

How about...

if (!$x){
echo x is empty;
}



Because $x could be an empty string, 0, false, null or undefined. If
that's what you need to check for then knock yourself out.

-Stuart

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



Re: [PHP] test variable value?

2006-01-11 Thread M. Sokolewicz

remember though that
if(!$x) {
  echo 'nothing here';
}

will also output 'nothing here' when provided with the string '0'!

- tul

Rodolfo Andrade wrote:

I do use if(!$var) for simple application. Only _IF_ I need to know if the
$var is defined but empty or so I would use especific functions.

- Original Message - 
From: Stut

To: Rodolfo Andrade
Cc: William Stokes ; php-general@lists.php.net
Sent: Wednesday, January 11, 2006 11:49 AM
Subject: Re: [PHP] test variable value?


Rodolfo Andrade wrote:



How about...

if (!$x){
  echo x is empty;
}





Because $x could be an empty string, 0, false, null or undefined. If
that's what you need to check for then knock yourself out.

-Stuart


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



Re: [PHP] test variable value?

2006-01-11 Thread M. Sokolewicz

Gerry Danen wrote:

On 1/11/06, M. Sokolewicz [EMAIL PROTECTED] wrote:


remember though that
if(!$x) {
  echo 'nothing here';
}

will also output 'nothing here' when provided with the string '0'!




That's because (!$x) means ($x == false) and '0' is false...

Gerry

I know that, and you know that, as do others who have encountered 
problems with this before; just wanted to make a small warning so the OP 
wouldn't get hit by this


- tul

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



Re: [PHP] test variable value?

2006-01-11 Thread Gerry Danen
On 1/11/06, M. Sokolewicz [EMAIL PROTECTED] wrote:

 remember though that
 if(!$x) {
echo 'nothing here';
 }

 will also output 'nothing here' when provided with the string '0'!


That's because (!$x) means ($x == false) and '0' is false...

Gerry


Re: [PHP] test

2005-10-14 Thread Dan McCullough
did it work ;)

On 10/14/05, Alan Lord [EMAIL PROTECTED] wrote:
 please ignore

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

2005-10-14 Thread Alan Lord

Amazingly Yes!

Dan McCullough wrote:

did it work ;)

On 10/14/05, Alan Lord [EMAIL PROTECTED] wrote:


please ignore

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

2005-06-08 Thread Danny Brow
On Tue, 2005-06-07 at 14:46 +0200, Hans J.J. Prins wrote:
 test
 
Failed.

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



Re: [PHP] TEST

2005-06-02 Thread Angelo Zanetti
gmail doesn't show you your own posts



why is that??

Angelo Zanetti
Z Logic
www.zlogic.co.za


  


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



RE: [PHP] TEST

2005-06-02 Thread Jay Blanchard
[snip]
gmail doesn't show you your own posts

why is that??
[/snip]


Sounds like a question for the gmail folks.

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



Re: [PHP] test

2005-05-31 Thread disguised.jedi
On 5/31/05, Justin Hannus [EMAIL PROTECTED] wrote:
 testing
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
What about it?


-- 
PHP rocks!
Knowledge is Power.  Power Corrupts.  Go to school, become evil

Disclaimer: Any disclaimer attached to this message may be ignored. 
However, I must say that the ENTIRE contents of this message are
subject to other's criticism, corrections, and speculations.

This message is Certified Virus Free

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



RE: [PHP] TEST

2005-05-31 Thread Jay Blanchard
it worked

-Original Message-
From: Martin Zvarik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 11:40 AM
To: php-general@lists.php.net
Subject: [PHP] TEST


test dammit, doesnt work

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



Re: [PHP] TEST

2005-05-31 Thread Rory Browne
It sometimes takes a while for posts to get through to the list.

On 5/31/05, Martin Zvarik [EMAIL PROTECTED] wrote:
 test dammit, doesnt work
 


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



Re: [PHP] Test

2005-04-04 Thread Ryan A
Good test!


On 4/4/2005 2:46:14 PM, [EMAIL PROTECTED] wrote:
 Test
 
 
 
 --
 
 This message has been scanned for viruses and
 
 dangerous content by MailScanner, and is
 
 believed to be clean.
 
 MailScanner thanks transtec Computers for their support.
 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 4/1/2005

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



Re: [PHP] test

2005-04-04 Thread Stephen Johnson
- 


?php
/*

Stephen Johnson c | eh
The Lone Coder

http://www.thelonecoder.com
[EMAIL PROTECTED]

562.924.4454 (office)
562.924.4075 (fax) 

continuing the struggle against bad code

*/ 
?

 From: [EMAIL PROTECTED]
 Date: Tue, 5 Apr 2005 09:40:55 +0800
 To: php-general@lists.php.net
 Subject: [PHP] test
 
   Shi MuQi
 LangFang ABC (China)  v
 Tel:(86)-316-68382!^ /(_)\
 E-mail:[EMAIL PROTECTED] ^ ^
 

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



RE: [PHP] test

2005-03-21 Thread Jay Blanchard
[snip]
Is the list active? 
My last received message is:

 [PHP] die function 
[/snip]

yes

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



Re: [PHP] test

2005-02-15 Thread NSK
On Tuesday 15 February 2005 14:54, Giulio wrote:
 only a test.

Your test was successful

-- 
NSK
http://portal.wikinerds.org

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



Re: [PHP] Test, please ignore

2004-12-28 Thread Robby Russell
On Tue, 2004-12-28 at 18:09 +0100, Steven Spierenburg wrote:
 to see if i can post...
 

no, you can't.

-- 
/***
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting  Development
*--- Now supporting PHP5 ---
/

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



Re: [PHP] Test, please ignore

2004-12-28 Thread Jason Wong
On Wednesday 29 December 2004 01:09, Steven Spierenburg wrote:
 to see if i can post...

If you have something to post why not just post it.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Fifty flippant frogs
Walked by on flippered feet
And with their slime they made the time
Unnaturally fleet.
*/

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



Re: [PHP] test

2004-10-15 Thread John Nichel
Cosmin wrote:
test
Had this been a real email, we would have been given instructions on how 
to reply.  This has been a test of the emergency php email broadcast system.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Test - Is the list working?

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote:
Odd stuff this morning.
I think it's overloaded with unsubscribe requests.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Test - Is the list working?

2004-09-30 Thread Jason Davidson
sheesh.. ok, who is going to sign that denise character back up to the
list :P

Jason
Marek Kilimajer [EMAIL PROTECTED] wrote: 
 
 Jay Blanchard wrote:
  Odd stuff this morning.
  
 
 I think it's overloaded with unsubscribe requests.
 
 -- 
 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] test if $int is integer

2004-06-29 Thread Pierre
Please just read the manual 
Function is_integer ... it seems ok ? 

cdt

Pierre 

-Message d'origine-
De : vlad georgescu [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 29 juin 2004 22:13
À : php-general
Objet : [PHP] test if $int is integer

how can test if var $int is integer ?

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

2004-06-01 Thread Jason Wong
On Wednesday 02 June 2004 02:15, Tom Chubb wrote:
 Sorry if anyone else gets this, but I'm not receiving any emails at the
 moment and wanted to check my subscription.

In future please use one of the list archives to check that the list is 
functioning. Eg:

  http://marc.theaimsgroup.com/?l=php-general

has already archived your post.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Give your child mental blocks for Christmas.
*/

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



Re: [PHP] Test Email

2004-06-01 Thread John W. Holmes
From: Tom Chubb [EMAIL PROTECTED]

 Sorry if anyone else gets this, but I'm not receiving any emails at the
 moment and wanted to check my subscription.

 You know php-general is working when you get emails from Advance Credit
Suisse Bank and the Information Desk.

---John Holmes...

(Sorry... had to do it!)

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



Re: [PHP] Test Email

2004-06-01 Thread John Nichel
John W. Holmes wrote:
From: Tom Chubb [EMAIL PROTECTED]
Sorry if anyone else gets this, but I'm not receiving any emails at the
moment and wanted to check my subscription.

 You know php-general is working when you get emails from Advance Credit
Suisse Bank and the Information Desk.
---John Holmes...
(Sorry... had to do it!)
Spam, spam, spamity, spam. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Test Email

2004-06-01 Thread Stephen Lake
No [EMAIL PROTECTED] about the spammers!

John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 John W. Holmes wrote:

  From: Tom Chubb [EMAIL PROTECTED]
 
 Sorry if anyone else gets this, but I'm not receiving any emails at the
 moment and wanted to check my subscription.
 
 
   You know php-general is working when you get emails from Advance Credit
  Suisse Bank and the Information Desk.
 
  ---John Holmes...
 
  (Sorry... had to do it!)
 

 Spam, spam, spamity, spam. ;)

 --
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com

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



Re: [PHP] test

2004-05-25 Thread John Nichel
Sherri wrote:
Yup. this is a test. Sorry.
Did we pass??
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Tom Rogers
Hi,

Tuesday, October 21, 2003, 5:04:14 PM, you wrote:
JW I am trying to create a remote status page for my website.  So far, I 
JW have found the fsockopen() function and used the example code to create 
JW the following basic script:

JW ?php
JW $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno, $errstr, 30);
JW if (!$fp) {
JW  echo Down\n;
JW }
JW else{
JW  echo Up\n;
JW  fclose ($fp);
JW }
?

JW While this works when the server is UP, I get the following error when 
JW it is down along with the 'Down' output:

JW Warning: fsockopen(): php_hostconnect: connect failed in 
JW //public_html/status/test.php on line 2

JW Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:80 in 
JW //public_html/status/test.php on line 2
JW Down

JW Can anyone help me out here?

JW Thanks,
JW Jason Williard


change your call to   @fsockopen() which will tell it to ignore errors

-- 
regards,
Tom

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



Re: [PHP] Test Connection - fsockopen()

2003-10-21 Thread - Edwin -
On Tue, 21 Oct 2003 00:04:14 -0700
Jason Williard [EMAIL PROTECTED] wrote:

 I am trying to create a remote status page for my website.  So far,
 I have found the fsockopen() function and used the example code to
 create the following basic script:
 
 ?php
 $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno, $errstr, 30);
 if (!$fp) {
  echo Down\n;
 }
 else{
  echo Up\n;
  fclose ($fp);
 }
 ?
 
 While this works when the server is UP, I get the following error
 when it is down along with the 'Down' output:
 
 Warning: fsockopen(): php_hostconnect: connect failed in 
 //public_html/status/test.php on line 2
 
 Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:80 in 
 //public_html/status/test.php on line 2
 Down
 
 Can anyone help me out here?

Not sure what kind of help you're looking for but if you just want to
suppress errors, try this instead:

  $fp = @fsockopen(xxx.xxx.xxx.xxx, 80, $errno, $errstr, 30);

Or, adjust error_reporting level: http://www.php.net/error-reporting

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



RE: [PHP] Test Connection - fsockopen()

2003-10-21 Thread Jason Williard
Thank you.  That worked perfectly.

Jason

-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 12:34 AM
To: Jason Williard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Test Connection - fsockopen()

Hi,

Tuesday, October 21, 2003, 5:04:14 PM, you wrote:
JW I am trying to create a remote status page for my website.  So far,
I 
JW have found the fsockopen() function and used the example code to
create 
JW the following basic script:

JW ?php
JW $fp = fsockopen (xxx.xxx.xxx.xxx, 80, $errno, $errstr, 30);
JW if (!$fp) {
JW  echo Down\n;
JW }
JW else{
JW  echo Up\n;
JW  fclose ($fp);
JW }
?

JW While this works when the server is UP, I get the following error
when 
JW it is down along with the 'Down' output:

JW Warning: fsockopen(): php_hostconnect: connect failed in 
JW //public_html/status/test.php on line 2

JW Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:80 in 
JW //public_html/status/test.php on line 2
JW Down

JW Can anyone help me out here?

JW Thanks,
JW Jason Williard


change your call to   @fsockopen() which will tell it to ignore errors

-- 
regards,
Tom

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



Re: [PHP] Test Links...

2003-09-26 Thread R'twick Niceorgaw
Doug Coning said the following on 9/26/2003 12:15 PM

Greetings All,

I am creating a 'links' page and was wondering if there was a way in PHP
to test the response of an outside link?  I'm sure everyone here has
clicked on a links page link and have a No Page Found error because no
one is keeping the links uptodate.  I was wondering if there was a way
when a link was clicked to test the link first to see if it is still
active.  If it isn't active, I would like to remove the link from my
database.
Is there a command that tests the results of link?

Thanks,

Doug Coning
Hi doug,

try something like the function given here
http://shiflett.org/dev/php_post.phps and check the returned headers .. 
there will be a field which will contain the status code (200 for 
successful / 404 for page not found etc).

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


Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
Ive used curl to test stuff out with too...however, if on link i like to
use wget to test it out. You might not have that option but I have seen
others use fopen or file_get_contents.

HTH,

BigDog

On Fri, 2003-09-26 at 10:15, Doug Coning wrote:
 Greetings All,
 
 I am creating a 'links' page and was wondering if there was a way in PHP
 to test the response of an outside link?  I'm sure everyone here has
 clicked on a links page link and have a No Page Found error because no
 one is keeping the links uptodate.  I was wondering if there was a way
 when a link was clicked to test the link first to see if it is still
 active.  If it isn't active, I would like to remove the link from my
 database.
 
 Is there a command that tests the results of link?
 
 Thanks,
 
 Doug Coning
 American Web Studio
 http://www.americanwebstudio.com
 HTML / FLASH / PHP / MYSQL / FILEMAKER
 

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



Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
lol...if on linux...

On Fri, 2003-09-26 at 12:35, Ray Hunter wrote:
 Ive used curl to test stuff out with too...however, if on link i like to
 use wget to test it out. You might not have that option but I have seen
 others use fopen or file_get_contents.
 
 HTH,
 
 BigDog
 
 On Fri, 2003-09-26 at 10:15, Doug Coning wrote:
  Greetings All,
  
  I am creating a 'links' page and was wondering if there was a way in PHP
  to test the response of an outside link?  I'm sure everyone here has
  clicked on a links page link and have a No Page Found error because no
  one is keeping the links uptodate.  I was wondering if there was a way
  when a link was clicked to test the link first to see if it is still
  active.  If it isn't active, I would like to remove the link from my
  database.
  
  Is there a command that tests the results of link?
  
  Thanks,
  
  Doug Coning
  American Web Studio
  http://www.americanwebstudio.com
  HTML / FLASH / PHP / MYSQL / FILEMAKER
  

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



RE: [PHP] test - please ignore

2003-08-20 Thread Brian S. Drexler
On that same note, if this list did NOT except attachments, we wouldn't have
to worry as much about Thank You! and Details, etc...

-Original Message-
From: Wouter van Vliet [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 17, 2003 7:47 PM
To: PHP General
Subject: [PHP] test - please ignore


I'm just testing if this list accepts text attachments .. would be much
easier for code exchange and stuff...



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



RE: [PHP] Test a zip file for validity

2003-08-01 Thread Chris W. Parker
Ivo Pletikosic mailto:[EMAIL PROTECTED]
on Friday, August 01, 2003 5:10 PM said:

 Wrapping the zipinfo utility in php did not help since it does not
 return an exit code whether it succeeded or not.

Well if zipinfo returns anything at all it's probably valid. If it
doesn't then it's probably not since it can't read the file properly.

But then again I've never heard of the zipinfo utility so I could be
totally wrong.


Chris.

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



Re: [PHP] Test a zip file for validity

2003-08-01 Thread Curt Zirzow
* Thus wrote Ivo Pletikosic ([EMAIL PROTECTED]):
 Hello all,
 
 How do I go about checking if a file is a zip file?
 
 Wrapping the zipinfo utility in php did not help since it does not return an
 exit code whether it succeeded or not.

I'm assuming the zipinfo your talking about is part of the unzip
package. You should use unzip to test the files

unzip -t file.zip

will check the checksum for each file.

'man unzip' for further details.

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] Test message

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 13:28, jb wrote:
 Testing news reader

Please use a test group for your testing. misc.test is a good bet.


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



Re: [PHP] Test tables existance

2003-03-30 Thread Miles Thompson
Come on, check the mysql section of the PHP manual ... this took about 20 sec
http://www.php.net/manual/en/function.mysql-list-tables.php
At 11:34 PM 3/30/2003 +0300, Antti wrote:
How do I test if a mysql table exists or not? Is there a function for 
this? I didn't find a good one.

-antti

--
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] Test tables existance

2003-03-30 Thread Haseeb Iqbal
use mysql_query(show tables); get them in array and then scan the array

thats what i would do if there isn;t any function


Friendship is always a sweet responsibility, never an opportunity.
HaSeEb IqBaL.
0300-4258030
- Original Message - 
From: Antti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 1:34 AM
Subject: [PHP] Test tables existance


 How do I test if a mysql table exists or not? Is there a function for 
 this? I didn't find a good one.
 
 -antti
 
 
 -- 
 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] Test tables existance

2003-03-30 Thread Don Read

On 30-Mar-2003 Antti wrote:
 How do I test if a mysql table exists or not? Is there a function for 
 this? I didn't find a good one.
 
 -antti

function tableexists($tbl) {
$res = @mysql_query(SELECT 1 FROM $tbl LIMIT 1);
return ($res ? true : false);
}

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

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



Re: [PHP] Test the server.

2003-03-22 Thread Vincent M.
Sebastian wrote:
put this in a .php file:
?php phpinfo(); ?
it'll tell you what OS, (usually)
check if safe mode is on.. if it's on then usually you can't exec
anything.
cheers,
- Sebastian
Yes I know but my aim is to make a php script which checks automaticly 
if the php and the shell functions I need are available.

Vincent.



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


Re: [PHP] Test the server.

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 12:59:19 -0800, you wrote:

Yes I know but my aim is to make a php script which checks automaticly 
if the php and the shell functions I need are available.

If you look at the output of phpinfo() you'll see a whole bunch of
variables that are set differently depending on the OS (eg
SERVER_SOFTWARE, SystemRoot, _SERVER), although personally I would set
the name of the current OS in a configuration file. Less room for error
that way.

To discover whether an application exists, use system() to call it and
check the return value provided by the OS. I think you'll find it
returns FALSE on failure.


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



Re: [PHP] Test the server.

2003-03-22 Thread Ernest E Vogelsinger
At 21:59 22.03.2003, Vincent M. said:
[snip]
Yes I know but my aim is to make a php script which checks automaticly 
if the php and the shell functions I need are available.
[snip] 

You can use function_exists() and class_exists() o test against needed
implementations. Some extensions may have functions returning the installed
version as well.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] Test the server.

2003-03-21 Thread Sebastian
put this in a .php file:
?php phpinfo(); ?

it'll tell you what OS, (usually)
check if safe mode is on.. if it's on then usually you can't exec
anything.

cheers,
- Sebastian

- Original Message -
From: Vincent M. [EMAIL PROTECTED]


| Hello,
|
| Is there anyway to check these two things:
|   - If the server is an Unix server.
|   - If a command is available on the server.
|
| For exemple, I need to test if the shell command unzip is avalaible to do:
| exec(unzip ...something...) ;
| So I can test if exec is available doing:
| if(function_exists(exec)) {
|...
| }
|
| But how to test if a shell command is available on the server and if the
| server is an Unix-like server ?
|
| Thanks.
|
|
| --
| 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] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
At 08:52 20.03.2003, cpaul said:
[snip]
ok thanks - that makes sense.  sort of doesn't solve my problem, because
if my function receives an enumerated array, i want it to treat it as an
associative array, using the value as the key.
[snip] 

What would be the value then?

If I get you correctly, you would treat an array that comes like
[0] = entry 0
[1] = entry 1
[2] = entry 2
as
[entry 0] = ??
[entry 1] = ??
[entry 2] = ??

What happens when there are duplicate values in the source array? You will
loose entries on duplicate values.

If I got you right here have a look at array_flip()
(http://www.php.net/manual/en/function.array-flip.php) to exchange array sides.

You can't tell with absolute certainty if an array is enumerated, or built
as associative array. Take this example:
$a = array('one','two','three');
$b = array(); $b[0] = 'one'; $b[1] = 'two'; $b[2] = 'three';
$c = array(0 = 'one', 1 = 'two', 2 = 'three');

Which one would you believe is enumerated, and which one is associative?

What you can do is walk the array keys and check if there is at least a
single non-numeric key. If you found one the array is associative. If you
found none it may be likely that the array is enumerated, but you can't be
sure in a general way, except your application is designed in a way that
uses always non-numeric keys for associative arrays.



-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul



 At 08:52 20.03.2003, cpaul said:
 [snip]
 ok thanks - that makes sense.  sort of doesn't solve my problem, because
 if my function receives an enumerated array, i want it to treat it as an
 associative array, using the value as the key.
 [snip] 


ernest wrote:

 What would be the value then?
 
 If I get you correctly, you would treat an array that comes like
 [0] = entry 0
 [1] = entry 1
 [2] = entry 2

like this:

  'entry 0' = 'entry 0'
  'entry 1' = 'entry 1'
  'entry 2' = 'entry 2'


 What happens when there are duplicate values in the source array? You will
 loose entries on duplicate values.

the source array is based on a directory listing, so i don't think there's
a possibility of that happening?



 You can't tell with absolute certainty if an array is enumerated, or built
 as associative array. Take this example:
 $a = array('one','two','three');
 $b = array(); $b[0] = 'one'; $b[1] = 'two'; $b[2] = 'three';
 $c = array(0 = 'one', 1 = 'two', 2 = 'three');
 
 Which one would you believe is enumerated, and which one is associative?

they'd all be enumerated, except perhaps $c -- but i've grown :) and now
understand that $c winds up being an enumerated array.. or is it?

in my code

 $q = mysql_query ( SELECT production_id, title FROM productions ORDER BY title; 
);
 $this-all_productions[] = ;
 while ( $row = mysql_fetch_array( $q ) ) {  
   $this-all_productions[$row[production_id]] = $row[title];
 }

the array is kept in order when i foreach the array - wouldn't they sort
themselves into 0,1,2,3,4,5,etc if my while loop was populating an 
enumerated array?   or are all arrays in php actually a keyed hash?



 What you can do is walk the array keys and check if there is at least a
 single non-numeric key. If you found one the array is associative. If you
 found none it may be likely that the array is enumerated, but you can't be
 sure in a general way, except your application is designed in a way that
 uses always non-numeric keys for associative arrays.

thanks so much for all your input on this.





regards



-- 
chris paul

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



Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
At 09:57 20.03.2003, cpaul said:
[snip]
 as associative array. Take this example:
 $a = array('one','two','three');
 $b = array(); $b[0] = 'one'; $b[1] = 'two'; $b[2] = 'three';
 $c = array(0 = 'one', 1 = 'two', 2 = 'three');
 
 Which one would you believe is enumerated, and which one is associative?

they'd all be enumerated, except perhaps $c -- but i've grown :) and now
understand that $c winds up being an enumerated array.. or is it?

Well, all these 3 arrays are _exactly_ the same. If you print_r() them
you'd see
Array {
0 = one
1 = two
2 = three
}
The key to this issue seems to be understanding that it makes no difference
how the array keys are constructed... an array is an association of key to
value, being a hash  always if you want to see it that way.

in my code

 $q = mysql_query ( SELECT production_id, title FROM productions ORDER 
BY title; );
 $this-all_productions[] = ;
 while ( $row = mysql_fetch_array( $q ) ) {  
   $this-all_productions[$row[production_id]] = $row[title];
 }

the array is kept in order when i foreach the array - wouldn't they sort
themselves into 0,1,2,3,4,5,etc if my while loop was populating an 
enumerated array?   or are all arrays in php actually a keyed hash?

You're chosing your own keys here - so this makes a perfect associative
array, even if the keys ($row['production_id']) would be a sequenced
number. If you would just add the titles up ($this-all_productions[] =
$row['title']), PHP would choose an index key for you - the most general
thing it can do is to enumerate it. Basically what it does is
 array[count(array)] = new_element

So much for the theory - what are you really trying to achieve? Maybe
there's something you can redesign so you're not relying on the fact if an
array is enumerated or not.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread cpaul

 So much for the theory - what are you really trying to achieve? Maybe
 there's something you can redesign so you're not relying on the fact if an
 array is enumerated or not.

thanks very much for your help - i understand now that no matter what
kind of array i think i'm making, it is being morphed into an associative
array.  i half-understood this from the docs, but was puzzled.. i expected
the behaviour of an array in other languages, which even if i were to
define an array in this sequence:

$arr[2] = z;
$arr[0] = x;
$arr[1] = y;

would shuffle itself internally into a sequence like: x, y, z.

but in php this obviously isn't the case, and it remains: z, x, y.

thanks again for your time.




-- 
chris paul


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



Re: [PHP] test for associative or numerically indexed array

2003-03-19 Thread Chris Shiflett
--- cpaul [EMAIL PROTECTED] wrote:
 Is there a method to test whether or not an array is associative?
 
 I'm trying to make a function that can deal with whatever type of
 array (associative or numeric) that is thrown at it.

It's all the same. An enumerated array is really an associative array where
every key is an integer. Just treat them all like associative arrays, and
you'll be fine.

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

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



Re: [PHP] test for associative or numerically indexed array

2003-03-19 Thread cpaul

 --- cpaul [EMAIL PROTECTED] wrote:
  Is there a method to test whether or not an array is associative?


[EMAIL PROTECTED] wrote:

 It's all the same. An enumerated array is really an associative array where
 every key is an integer. Just treat them all like associative arrays, and
 you'll be fine.
 

ok thanks - that makes sense.  sort of doesn't solve my problem, because
if my function receives an enumerated array, i want it to treat it as an
associative array, using the value as the key.

the array index is not useful to me in this situation.

is there really no way to tell how an array was defined?


thanks for your time


-- 
chris paul

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



Re: [PHP] test for rtf

2003-03-08 Thread bill
Just a note, testing for those characters is trickier than it sounds.  The
backslash throws off the test.  Here's what I did on a POST form.  Note the
-two- backslashes.


$chkstring=substr($thisfile,0,5);
if ($chkstring != {\\rtf) {
// fail
}

This seems to work, but I'm wondering if there's a better way.


Brady Hegberg wrote:

 You could always open it and see if the first few characters are
 {\rtf1.

 Brady

  Is there any way to test a file to confirm it is an RTF file?
 
  I'm thinking along the lines of how we can test for an image with
  getimagesize().
 
  kind regards,
 
  bill
 


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



Re: [PHP] test for rtf

2003-03-07 Thread Andrew Brampton
Not to sure on the RTF file format, but checking the first few letters might
help
Quickly opening a RTF file I see that they start with {\rtf
Maybe look for that.

Andrew
- Original Message -
From: bill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 4:22 PM
Subject: [PHP] test for rtf


 Is there any way to test a file to confirm it is an RTF file?

 I'm thinking along the lines of how we can test for an image with
 getimagesize().

 kind regards,

 bill


 --
 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] test for rtf

2003-03-07 Thread Radek Zajkowski
IF this data is being uploaded via form you should look into $_FILES array,
in particular $_FILES[userfilename][type];

R

On 3/7/03 11:33 AM, Andrew Brampton [EMAIL PROTECTED] wrote:

 Not to sure on the RTF file format, but checking the first few letters might
 help
 Quickly opening a RTF file I see that they start with {\rtf
 Maybe look for that.
 
 Andrew
 - Original Message -
 From: bill [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 07, 2003 4:22 PM
 Subject: [PHP] test for rtf
 
 
 Is there any way to test a file to confirm it is an RTF file?
 
 I'm thinking along the lines of how we can test for an image with
 getimagesize().
 
 kind regards,
 
 bill
 
 
 --
 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] test for rtf

2003-03-07 Thread Brady Hegberg
You could always open it and see if the first few characters are
{\rtf1.

Brady

 Is there any way to test a file to confirm it is an RTF file?
 
 I'm thinking along the lines of how we can test for an image with
 getimagesize().
 
 kind regards,
 
 bill
 


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



Re: [PHP] test

2003-02-21 Thread David T-G
Guram --

...and then Guram Mosashvili said...
% 
% test

Do I have to?  I do not support the idea of testing or condone its
activity; I feel that it unfairly pigeonholes the developing spirit
and hinders natural unfoldment.

[Yes, your test worked, but please don't do this ;-]


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg97831/pgp0.pgp
Description: PGP signature


Re: [PHP] test

2003-02-21 Thread Ernest E Vogelsinger
At 12:56 21.02.2003, Guram Mosashvili said:
[snip]
test
[snip] 

did it


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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




Re: [PHP] Test

2003-02-20 Thread 1LT John W. Holmes
 This is a test message.  I sent a real message last night and apparently 
 it didn't make it to the server.

So this is not a real message? Do I exist?

---John Holmes...

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




Re: [PHP] Test

2003-02-20 Thread Ernest E Vogelsinger
At 16:07 20.02.2003, 1LT John W. Holmes spoke out and said:
[snip]
 This is a test message.  I sent a real message last night and apparently 
 it didn't make it to the server.

So this is not a real message? Do I exist?
[snip] 

Well, most certainly, as I see it.
Bots are still a bit faster in their response (not much, but...)

g


-- 
   O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/


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




  1   2   >