Re: [PHP] Testing

2013-03-08 Thread Marc Guay
This is my first time using a list. Can anyone confirm I'm doing this correctly? N! You broke it! Happy Friday, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing

2013-03-08 Thread Tedd Sperling
On Mar 8, 2013, at 1:20 PM, Dustin L dustinlob...@gmail.com wrote: This is my first time using a list. Can anyone confirm I'm doing this correctly? Thanks, Dustin L. Oh, now you did it! There will be dogs and cats in the streets. Cheers, tedd _

Re: [PHP] Testing gmail submission

2009-03-05 Thread Daniel Brown
On Thu, Mar 5, 2009 at 09:20, haliphax halip...@gmail.com wrote: Got tired of using Microsoft Outlook to sort the PHP list discussions... apparently a lot of people use GMail for this, so I figured I would hook it into my GMail account and see what happens. Boyd? -- /Daniel P. Brown

Re: [PHP] Testing gmail submission

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 8:56 AM, Daniel Brown danbr...@php.net wrote: On Thu, Mar 5, 2009 at 09:20, haliphax halip...@gmail.com wrote: Got tired of using Microsoft Outlook to sort the PHP list discussions... apparently a lot of people use GMail for this, so I figured I would hook it into my

Re: [PHP] Testing gmail submission

2009-03-05 Thread Daniel Brown
On Thu, Mar 5, 2009 at 10:05, haliphax halip...@gmail.com wrote: Indeed, it is I! Now, if I can only figure out how to keep GMail from mangling quotes... ah, there's the Plain Text button! :) Yeah, and if only we could get a GreaseMonkey script to stop top-posting by default. Not to

Re: [PHP] Testing gmail submission

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 9:22 AM, Daniel Brown danbr...@php.net wrote: On Thu, Mar 5, 2009 at 10:05, haliphax halip...@gmail.com wrote: Indeed, it is I! Now, if I can only figure out how to keep GMail from mangling quotes... ah, there's the Plain Text button! :) Yeah, and if only we could

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Ashley Sheridan
On Wed, 2009-01-07 at 20:24 +0800, 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

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Then Ashley Sheridan a...@ashleysheridan.co.uk said: Why do you need a regex here? All the URL's have the same foremost component, which is exactly 38 characters in length. Do you perchance need a regualr expression to parse other URL's? If you just need to extract everything before the first

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I haven't a clue as to

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 2:40 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread tedd
At 2:40 PM -0400 8/29/08, Mark Weaver wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Dan Joseph schreef: On Fri, Aug 29, 2008 at 2:40 PM, Mark Weaver [EMAIL PROTECTED] wrote: ... This may also help as well as Jochem's suggestion: http://us2.php.net/key not unless you wan't a headache (re-read the bit about foreach's internal pointer): php -r '$r = array(a,b,c);

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
Jochem Maas wrote: Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
tedd wrote: At 2:40 PM -0400 8/29/08, Mark Weaver wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: tedd wrote: ... Try looking at current http://www.php.net/current Maybe that will help. not in the context of foreach() (I'll repeat the oneliner here because tedd's old and has a crap email client ;-): php -r '$r = array(a,b,c); next($r); $K = key($r); foreach ($r

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread tedd
At 11:10 PM +0200 8/29/08, Jochem Maas wrote: Mark Weaver schreef: Jochem put things back into perspective for me. I'm having that printed on a T-Shirt :-P Damn! You get more T-Shirts than me. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] testing my being subscribed

2008-08-20 Thread Micah Gersten
You are indeed. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Govinda wrote: am I subscribed? I had to check. The other (php-install) list just sent me emails (when I tried to post) saying I was abusing the system (even though I am sure I subscribed

Re: [PHP] Testing HTTPS without certificate

2008-04-23 Thread mike
just use a self-signed cert. there should be a lot of examples out there for that. On 4/23/08, Ken Kixmoeller [EMAIL PROTECTED] wrote: Hi - - - - -- I have a typical setup -- my development machine, a testing server and, of course, the production server. My development machine, of

Re: [PHP] testing

2008-03-25 Thread Mark Weaver
PHP General Users Mailing List wrote: testing so I wasn't imagining things then? -- Mark - the rule of law is good, however the rule of tyrants just plain sucks! Real Tax Reform begins with getting rid of the IRS. == Powered

Re: [PHP] Testing people

2006-10-07 Thread Ryan A
Thats why I love this list... people share and help so unselfishly. Thanks Rich, sure didnt think of the way you wrote the solution till i read your code! Have a fab one! Richard Lynch [EMAIL PROTECTED] wrote: I thought of having a hidden text box everytime for each question... but that can

Re: [PHP] Testing people

2006-10-07 Thread Ryan A
Thanks! Will give it a look-see! Cheers! Dotan Cohen [EMAIL PROTECTED] wrote: It's not exactly what you describe, but you should take a look at: http://www.bigredspark.com/survey.html Dotan Cohen http://what-is-what.com 7 -- - The faulty interface lies between the chair and the

Re: [PHP] Testing people

2006-10-05 Thread Paul Scott
On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote: Hey all, this is a two part question but I need just one solution: Done. Go to http://avoir.uwc.ac.za/ and download Kewl.NextGen. Then install it and use the moduleadmin to install MCQ (multiple Choice Questions) module. It does everything

Re: [PHP] Testing people

2006-10-05 Thread benifactor
how are you getting the answers? are they hard coded in html? are you pulling them from a database? if from a database, just order them randomly.. mysql_query(select answers from table where question = '10' ORDER BY RAND() ); i think this would randomize all of the results in the answer colum of

Re: [PHP] Testing people

2006-10-05 Thread Ryan A
Thanks for replying guys. Paul, Will check out the links you sent me, If its really as good as you say... should save me a heck of a time coding it, thanks! Cheers! Ryan Paul Scott [EMAIL PROTECTED] wrote: On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote: Hey all, this is a two part

Re: [PHP] Testing people

2006-10-05 Thread Richard Lynch
On Thu, October 5, 2006 5:36 am, Ryan A wrote: 2. I have noticed if you are displaying 4 (a-d) choices and the answer for question 10 (for example) is always on choice B it kind of sticks in the head and students dont really read everything they just memorize the location of the answer (maybe

Re: [PHP] Testing people

2006-10-05 Thread Dotan Cohen
It's not exactly what you describe, but you should take a look at: http://www.bigredspark.com/survey.html Dotan Cohen http://what-is-what.com 7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing 234

2006-03-16 Thread Robert Cummings
On Fri, 2006-03-17 at 01:47, John Taylor-Johnston wrote: Are any of my posts getting through? They don't appear to be. This one only made it halfway :P Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] testing 234

2006-03-16 Thread John Taylor-Johnston
Are any of my posts getting through? They don't appear to be. This one only made it halfway :P Yeah, it doesn't seem to accept my email from another address. Thanks Rob. I was trying to post something last night and it never got through. This email seems acceptable to the group Gods. -- PHP

Re: [PHP] Testing

2006-02-24 Thread John Nichel
[EMAIL PROTECTED] wrote: I am conducting a test of my new e-mail address. This is only a test. If this were not a test you would be instructed to tune into your locale emergency sarcasm system. Please RTFM and Have a PHP Day! Dork. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek)

RE: [PHP] testing text body emails

2006-02-13 Thread Brady Mitchell
If you have a linux box, use mutt or pine. Also, most Windows mail clients allow you to turn off HTML mail. Check your client documentation / help files. Brady -Original Message- From: Mark Steudel [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 1:40 PM To:

Re: [PHP] testing text body emails

2006-02-13 Thread Kevin Kinsey
Mark Steudel wrote: Im using phpmailer to send emails, with htmlbody and an alternate textbody. Any suggestions on how to test the text only body? Thanks, Mark Sure. Use a text-only MUA?* /rimshot But, seriously, most 'Nix gurus have access to text only mail if they care to. If you've

RE: [PHP] testing on a local server

2005-11-18 Thread Jay Blanchard
[snip] i am new to PHP and web programming/management in general... Using Dreamweaver I am trying to preview .php files on the local server, but the page won't show up in a web browser. This is probably a stupid question, but does that just mean I need to install PHP on my computer? [/snip] You

Re: [PHP] testing on a local server

2005-11-18 Thread David Grant
http://www.php.net/manual/en/tutorial.php#tutorial.requirements [EMAIL PROTECTED] wrote: i am new to PHP and web programming/management in general... Using Dreamweaver I am trying to preview .php files on the local server, but the page won't show up in a web browser. This is probably a

Re: [PHP] testing on a local server

2005-11-18 Thread atenn
i am using a PC with Windows XP, i don't have Apache. i was looking at the downloads page on php.net - how do i know which one i need? i am new to PHP and web programming/management in general... Using Dreamweaver I am trying to preview .php files on the local server, but the page won't

RE: [PHP] testing on a local server

2005-11-18 Thread Jay Blanchard
[snip] i am using a PC with Windows XP, i don't have Apache. i was looking at the downloads page on php.net - how do i know which one i need? [/snip] Go look at this http://www.devside.net/web/server/free/suite -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] testing on a local server

2005-11-18 Thread atenn
i'm not sure if my messages are getting through...but i'm trying to download the PHP installer - where it asks which type of http server i want to configure, how do i find out what i have? it would be one of the microsoft servers, but i have no idea which... Quoting [EMAIL PROTECTED]: i am new

Re: [PHP] testing on a local server

2005-11-18 Thread Dan McCullough
Well Jay was showing you where you could pick up everything you needed. On Windows XP the IIS server is not installed by default you have to select it as a component to install, so I'm not sure if you would have IIS installed either. If you want a simple and quick solution go to the link that

RE: [PHP] Testing on the local server

2005-11-18 Thread Jay Blanchard
[snip] I use Dreamweaver and I try to test the files on the local host, but the page doesn't even show up. This maybe a stupid question..but to test on a local server, would I just need to download PHP? [/snip] Deja Vu? Did you install the package on your server that I recommended? -- PHP

RE: [PHP] Testing on the local server

2005-11-18 Thread bruce
allison not familiar with dreamweaver to know if it can act as a webserver. i strongly suspect that it's simply an editor, but not an actual server, that can be used to interpret/display php code. that said, you'll have to have access to a webserver. IIS is a webserver from msoft. apache is

Re: [PHP] Testing on the local server

2005-11-18 Thread Dan McCullough
Coincidence On 11/18/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I use Dreamweaver and I try to test the files on the local host, but the page doesn't even show up. This maybe a stupid question..but to test on a local server, would I just need to download PHP? [/snip] Deja Vu?

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

2005-10-10 Thread Chris Boget
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? Iterate through the string and count the number of capitalised letters. You can do something like this

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

2005-10-10 Thread Greg Donald
On 10/10/05, zzapper [EMAIL PROTECTED] wrote: 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 $a = array( 'fred', 'Fred', 'FRED' ); sort( $a ); echo $a[ 0 ]; -- Greg Donald Zend

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

2005-10-10 Thread Mark Rees
Image that there could be a string fred Fred FRED It isn't hard to do. First of all I need to know that these are same which I can do with strtolower Also note strcasecmp for this task - http://uk2.php.net/manual/en/function.strcasecmp.php -- PHP General Mailing List

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

2005-10-10 Thread Jochem Maas
Greg Donald wrote: On 10/10/05, zzapper [EMAIL PROTECTED] wrote: 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 $a = array( 'fred', 'Fred', 'FRED' ); sort( $a ); echo $a[ 0 ]; cute

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

2005-10-10 Thread Greg Donald
On 10/10/05, Jochem Maas [EMAIL PROTECTED] wrote: cute - but it doesn't always work e.g.: $a = array( FrEDDie, fREDdIE, FReddie ); sort( $a ); echo $a[ 0 ]; // we want the 2nd item from the unsort array Works for the sample data you first posted. *shrug* -- Greg Donald Zend Certified

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

2005-10-10 Thread Robin Vickery
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? ?php $strings = array( 'fred', 'Fred',

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

2005-10-10 Thread Greg Donald
On 10/10/05, Jochem Maas [EMAIL PROTECTED] wrote: I AM NOT THE OP THANKS, I'm quite capable of solving such a problem without the help of people who don't bother to think beyond 'sample data' ... Yeah, everyone should read minds automatically, I agree. It's bloody obvious that the data in

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

2005-10-10 Thread Jochem Maas
Greg Donald wrote: On 10/10/05, Jochem Maas [EMAIL PROTECTED] wrote: I AM NOT THE OP THANKS, I'm quite capable of solving such a problem without the help of people who don't bother to think beyond 'sample data' ... Yeah, everyone should read minds automatically, I agree. I guess reading

Re: [PHP] Testing for an empty array (with null values)

2005-10-01 Thread Jochem Maas
zzapper wrote: Hi, I can use if (count($somearray) 0) to test for an empty array. why don't you test it. $a = array(); $b = array(null, null, null); $c = array(false, false); $d = array(1, 1, 1); echo array \$a: \n---\n; var_dump(empty($a), count($a),

Re: [PHP] Testing for an empty array (with null values)

2005-09-30 Thread Emil Novak
Better use is empty(), which supports array as parameter: $test = array(); if(empty($test)) // true { // code... } else // false { } Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-28 Thread Nick Wilson
* and then Marek Kilimajer declared oookay... i think i understand the page, but how would i imlement that $fp = fsockopen (proxy.server.net, 8080, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, OPTIONS * HTTP/1.0\r\nMax-Forwards: 0\r\n\r\n);

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: hi again all, I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) mucho grassy arse.. What kind of response? If the server is alive, if

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Nick Wilson
* and then Marek Kilimajer declared I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) What kind of response? If the server is alive, if the

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) What kind of response? If the server is alive,

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Nick Wilson
* and then Marek Kilimajer declared OPTIONS * HTTP/1.0 More at http://www.freesoft.org/CIE/RFC/2068/63.htm oookay... i think i understand the page, but how would i imlement that and what would be the difference in that and just pinging the server to see if it's responding? Thanks for

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared OPTIONS * HTTP/1.0 More at http://www.freesoft.org/CIE/RFC/2068/63.htm oookay... i think i understand the page, but how would i imlement that $fp = fsockopen (proxy.server.net, 8080, $errno, $errstr, 30); if (!$fp) { echo $errstr

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Nick Wilson
* and then Marek Kilimajer declared oookay... i think i understand the page, but how would i imlement that $fp = fsockopen (proxy.server.net, 8080, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, OPTIONS * HTTP/1.0\r\nMax-Forwards: 0\r\n\r\n);

RE: [PHP] Testing if cookies are enabled

2004-06-21 Thread Michael Sims
Martin Schneider wrote: 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

Re: [PHP] testing array_search

2004-06-11 Thread Daniel Clark
What output do you get? I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo j= . $j; if (($j != false) ($j = 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing array_search

2004-06-11 Thread Curt Zirzow
* Thus wrote Bob Lockie ([EMAIL PROTECTED]): I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo j= . $j; if (($j != false) ($j = 0)) { snip mixed array_search ( mixed needle, array haystack [, bool strict]) Searches haystack for needle and returns

Re: [PHP] testing array_search

2004-06-11 Thread Bob Lockie
On 06/11/04 17:17 Curt Zirzow spoke: * Thus wrote Bob Lockie ([EMAIL PROTECTED]): I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo j= . $j; if (($j != false) ($j = 0)) { snip mixed array_search ( mixed needle, array haystack [, bool strict]) Searches

Re: [PHP] testing ip filtering

2004-06-07 Thread Marek Kilimajer
Merlin wrote: Hi there, I am serving certain parts of my page only to specific countries (geotargeted advertisement). Now I am wondering how I could check how the page looks like from that country wihout traveling there :-) Is there a way to fool the system that one is in US instead of Germany?

Re: [PHP] Testing Pear install

2004-03-03 Thread Ray Hunter
On Wed, 2004-03-03 at 12:21, DAvid Jackson wrote: How can I test to see if and what portions of Pear are installed on a vhosted website? If you have access to the command line pear you can also check with a simple command: $ pear list -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] testing a variable

2003-11-12 Thread Jay Blanchard
[snip] if ( !isset($var ) { echo do something;} [/snip] self answering questions, gotta' love 'em! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing a variable

2003-11-12 Thread CPT John W. Holmes
From: Adam Williams [EMAIL PROTECTED] I need to test a variable to see if it contains a value or not, and if not, do something. [snip] if ( !isset($var ) { echo do something;} That's the correct way. What I am doing is checking a field in an sql table, and if the field is null, empty,

Re: [PHP] testing a variable

2003-11-12 Thread R'twick Niceorgaw
Adam Williams said the following on 11/12/2003 11:37 AM Hello, I need to test a variable to see if it contains a value or not, and if not, do something. My php is a little rusty, so which would be better? if ( !$var ) { echo do something;} or if ( !isset($var ) { echo do something;} or are

Re: [PHP] testing a variable

2003-11-12 Thread Chris Shiflett
--- Adam Williams [EMAIL PROTECTED] wrote: I need to test a variable to see if it contains a value or not, and if not, do something. My php is a little rusty, so which would be better? This is a good page for understanding how things like isset(), is_null(), and empty() work:

RE: [PHP] Testing string length within FTP

2003-10-09 Thread Jay Blanchard
[snip] for($i = 0; $i $countList; $i++){ $strDirName = substr($arrList[$i], 47, 8); if(strlen(chop($strDirName)) == 8){ echo $theDirectory.$strDirName.br; } } [/snip] Never mind. I am making them all 8 wide, just saw it. *slaps feverish forhead* -- PHP

Re: [PHP] Testing Variables

2003-10-01 Thread Richard Baskett
on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: I've noticed code written in this order - if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of - if ($foo === FALSE) { // yada yada } Thanks I think it's more to

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: I've noticed code written in this order - if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of - if ($foo ===

Re: [PHP] Testing Variables

2003-10-01 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: if ($do || false == $do ) { try(); } /* Do, or do not. There is no try. */ Isn't there always try? :-) Chris = HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp My Blog

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Curt Zirzow [EMAIL PROTECTED] wrote: if ($do || false == $do ) { try(); } /* Do, or do not. There is no try. */ Isn't there always try? :-) Only in php5 :) Curt -- I used to think I was indecisive, but now I'm not so sure. --

Re: [PHP] Testing Variables

2003-10-01 Thread Gerard Samuel
Curt Zirzow wrote: Yep. Just make sure you dont start speaking english like that, people will look at you funny, or think your yoda :) if ('away' == $put_your_weapon) { $harm = false; } /* Away put your weapon, I mean you no harm */ or if ( 'help' == $you_can ) { hmm(); } /* Help you can,

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Curt Zirzow [EMAIL PROTECTED] wrote: if ($do || false == $do ) { try(); } /* Do, or do not. There is no try. */ Isn't there always try? :-) Only in php5 :) oops, you were

RE: [PHP] testing for 0

2003-02-28 Thread Bryan Lipscy
See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:29 AM To: PHP Subject: [PHP] testing for 0 I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not

Re: [PHP] testing for 0

2003-02-28 Thread Leif K-Brooks
Try $timeb ''. Steve Buehler wrote: I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a 0 (zero), my test always show it as blank. I have tried !$timemb and !is_numeric($timemb). Thank You Steve -- The

Re: [PHP] testing for 0

2003-02-28 Thread Ernest E Vogelsinger
At 19:28 28.02.2003, Steve Buehler spoke out and said: [snip] I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a 0 (zero), my test always show it as blank. I have tried

RE: [PHP] testing for 0

2003-02-28 Thread Steve Buehler
There we go. Thank You so much. I also found that I had another error in my script and !is_numeric($timemb) did work after all. Steve At 10:41 AM 2/28/2003 -0800, you wrote: See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: [PHP] testing for 0

2003-02-28 Thread Leo Spalteholz
On February 28, 2003 10:41 am, Leif K-Brooks wrote: Try $timeb ''. Well whatta ya know I learn something new every day.. I thought the only valid not equal operator was !=... I'm used to using only for SQL server stored procedures or VB.. leo -- PHP General Mailing List

Re: [PHP] Testing if any of the items are false

2003-02-10 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: How can I do this to determine if one of the items is false if none are then I what it to print the first echo of there is one that is false then print the second echo Sorry, that makes no sense to me. $test1= YES; $test2= YES; $test3= YES; $test4= YES;

Re: [PHP] Testing..

2003-02-09 Thread Paul Marinas
working :) On Sun, 9 Feb 2003, Troy May wrote: Just a quick test. I just re-signed up for this list after a 3 week vacation and I haven't seen even one message yet. So, reply if you get it please so I know this is working. Thanks, Troy -- PHP General Mailing List

Re: [PHP] testing for negative numbers

2003-02-06 Thread Rasmus Lerdorf
Please provide a complete test script. Are you perhaps not realizing that array indices along with all variables in PHP are case sensitive? $row[ID] and $row[id] are not the same thing. The trivial test of your example: $myArray[id] = -2; if ($myArray[id] 0) echo Negative;

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Hi Rasmus: Yes, I'm totally aware of case sensitivity...and basically the script you wrote here is exactly what I'm trying to doing. This is a problem I've been having with several scripts...always when the number is negative. I've also echoed my variables just to make sure they are in fact

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Well, I just tried your test script and that works just as it should, so I must be having some other issue. But that still doesn't explain why I can print out the results of $row[dir_id] and it shows it being -2, yet my script (as printed in the last email) never makes it to the correct

Re: [PHP] testing for negative numbers

2003-02-06 Thread Leif K-Brooks
Is it possible that the value is actually -2 (with the space)? Robert Samuel White wrote: Well, I just tried your test script and that works just as it should, so I must be having some other issue. But that still doesn't explain why I can print out the results of $row[dir_id] and it shows

Re: [PHP] testing for negative numbers

2003-02-06 Thread Robert Samuel White
Okay, I'm an idiot. It *was* making it to the statement, but the row_id in the table matrix_structure_routes are actually positive numbers, so when it gets to that point I need to use the absolute value. The reason for using the negative and postive counterparts are to determine which type

Re: [PHP] testing if a query was successful

2003-02-04 Thread Chris Shiflett
--- Sunfire [EMAIL PROTECTED] wrote: how would you use an if..else statement to test a query in mysql to see if it was successfull or not? Depends on what database server you are using. Here it is in MySQL: if (mysql_query($sql)) { echo Success; } else { echo Failure; } Chris -- PHP

Re: [PHP] testing if a query was successful

2003-02-04 Thread Kevin Stone
- From: Chris Shiflett [EMAIL PROTECTED] To: Sunfire [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 11:58 AM Subject: Re: [PHP] testing if a query was successful --- Sunfire [EMAIL PROTECTED] wrote: how would you use an if..else statement to test a query in mysql

RE: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Edward Peloke
I believe as long as the update was successful (no errors) it will say 'message if successful'...I think you are wanting to know if rows were updated or not...not whether or not the query ran ok. Eddie -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February

RE: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Edward Peloke
I think you want to use mysql_affected_rows -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 3:51 PM To: [EMAIL PROTECTED] Subject: [PHP] testing a query for success--code doesnt work hi.. posted a message about what the code was to test an

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Chris Hayes
At 21:51 4-2-2003, you wrote: hi.. posted a message about what the code was to test an update query to see if it was successfull using mysql and i tested my code and for some reason even if none of the fields were updated it still reports the success message... heres the code i have:

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Sunfire
the record was actually updated } if i can get some code example for that...it would help tnx - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 3:46 PM Subject: RE: [PHP] testing a query for success--code doesnt work I

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Kevin Stone
FYI, I replied to a similar problem just a few threads down. Next time please consider searching before you post. You'll find you can answer your own question 9 out of 10 times. $result = mysql_query(UPDATE or INSERT or DELETE... ) or die(Invalid query: . mysql_error()); if

RE: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Edward Peloke
without errors. Eddie -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] testing a query for success--code doesnt work yes that is what i needed.. how many rows were changed as well as how did

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Chris Shiflett
* if the update does not have anything to work on it does not mean it is a failure! except when you EXPECTED it to update something. Right, and the function doesn't care what you expect anyway. :-) * i'm not sure whether if ($query) is the proper way to check this. for trapping

Re: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Kevin Stone
updated./font; -Kevin - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:16 PM Subject: RE: [PHP] testing a query for success--code doesnt work Just grab your qu ? $affected_rows = mysql_affected_rows($query

RE: [PHP] testing a query for success--code doesnt work

2003-02-04 Thread Edward Peloke
echo font color=green.$affected_rows. were updated./font; -Kevin - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 2:16 PM Subject: RE: [PHP] testing a query for success--code doesnt work Just grab your qu

Re: [PHP] Testing smtp server

2002-12-13 Thread Johannes Schlueter
On Friday 13 December 2002 21:30, Max Clark wrote: I found the socket_create function that is listed as experimental and requires a re-compile of php. Is there a built in way to perform this kind of test? Based upon the second example on http://www.php.net/manual/en/ref.sockets.php : echo

RE: [PHP] testing for empty array

2002-11-26 Thread Van Andel, Robert
I believe if(empty($keywords)) or even if(!$keywords) will check if they are empty Robbert van Andel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP] testing for empty array I have an

Re: [PHP] testing

2002-11-18 Thread Maxim Maletsky
just mail: [EMAIL PROTECTED] :) You succeded though :) -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : not sure how to post -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

  1   2   >