On Mar 8, 2013, at 1:20 PM, Dustin L 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
_
t...@sperling.com
http://sper
> 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
This is my first time using a list. Can anyone confirm I'm doing this correctly?
Thanks,
Dustin L.
Don't seem to be getting any feeds thru the newsgroup mirror(?).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I intentionally break a pipe so that I can test recovering
under this eventuality?
I saw this post "[PHP] Pushing the limits of stream_socket_server()
and stream_select()" but my intermittent broken pipe occurs with 1
client, so I don't want to to create a 252 client situation.
I'm actuall
On Thu, Mar 5, 2009 at 9:22 AM, Daniel Brown wrote:
> On Thu, Mar 5, 2009 at 10:05, haliphax 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 t
On Thu, Mar 5, 2009 at 10:05, haliphax 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 suggest that you did,
On Thu, Mar 5, 2009 at 8:56 AM, Daniel Brown wrote:
>
> On Thu, Mar 5, 2009 at 09:20, haliphax 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
On Thu, Mar 5, 2009 at 09:20, haliphax 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.br...@parasane.net || danbr..
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.
// Todd
Then Ashley Sheridan 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 ampersand, then
strpos and
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=gallery&g2_itemId=81
> http://example.com/index.php?q=gallery&g2_itemId=100
>
> I want to have a line of code that will extract just the
> "
Let's say I have these URLs
http://example.com/index.php?q=gallery
http://example.com/index.php?q=gallery&g2_itemId=81
http://example.com/index.php?q=gallery&g2_itemId=100
I want to have a line of code that will extract just the
"http://example.com/index.php?q=gallery"; part of the URL.
I am
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 http://earthstones.c
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); fore
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
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 have
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")
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
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 point
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 how
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 how this might be
accomp
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 subscri
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 properly and received the email confirming that
fact).
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
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
Hi - - - - --
I have a typical setup -- my development machine, a testing server
and, of course, the production server. My development machine, of
course, doesn't have a Secure certificate, yet I need to be able to
test https pages here, before getting to the testing server.
(Curren
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
testing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 keyboa
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
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
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 (may
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 q
php"
Sent: Thursday, October 05, 2006 3:36 AM
Subject: [PHP] Testing people
> Hey all,
>
> this is a two part question but I need just one solution:
>
> 1. Can you recommend a good testing software where the choices are
multiple choice (cross a button or radio button)
>
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 everythin
Hey all,
this is a two part question but I need just one solution:
1. Can you recommend a good testing software where the choices are multiple
choice (cross a button or radio button)
if nothing great out there... will make this myself so, on to point 2:
2. I have noticed if you are displaying
All,
Sorry if this is a little off topic. I have been writing tutorials on
load and regression testing web applications with JMeter. I have just
posted the first. These are being do to help people in TPN, but I am
able to make them public.
As the testing is all being done on PHP based web
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 Ge
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 |
Are any of my posts getting through?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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)
D
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!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
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?*
But, seriously, most 'Nix gurus have access to text
only mail if they care to. If you've a friend
> To: php-general@lists.php.net
> Subject: [PHP] testing text body emails
>
> Im using phpmailer to send emails, with htmlbody and an
> alternate textbody.
> Any suggestions on how to test the text only body?
>
> Thanks, Mark
>
--
PHP General Mailing List (http://www.p
Im using phpmailer to send emails, with htmlbody and an alternate textbody.
Any suggestions on how to test the text only body?
Thanks, Mark
Sorry to kind of "spam" the list, but I recently switched email programs and
my posts haven't been making it to the list. This is just a test... please
ignore it :)
Thanks,
Ray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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]
>
> De
, 2005 9:03 AM
To: php-general@lists.php.net
Subject: [PHP] Testing on the local server
First of all, I'm completely new to PHP and pretty new to web
programming/management in general, so if you respond, try not to use any
really complex terms or anything that I may not understand!
right now
[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 Gen
First of all, I'm completely new to PHP and pretty new to web
programming/management in general, so if you respond, try not to use any
really complex terms or anything that I may not understand!
right now I have an existing PHP site that I downloaded for editing. But I
am having problems viewin
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 Jay
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
[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: http://w
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 wo
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
[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 n
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?
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
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 dat
Greg Donald wrote:
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*
I AM N
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?
strlen(preg_replace('/[^[:upper:]]/',
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 Ce
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
> > 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 (h
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 Donal
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 (untest
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?
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
--
PHP General Mailing List (h
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), array_filt
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
Hi,
I can use
if (count($somearray) > 0) to test for an empty array.
It is possible to have an array with null values which is effectively empty but
fails the above as
it's count (I belive is greater than 0).
Any ideas
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Just testing guys :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is a test e-mail, please disregard
* 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)\n";
> } else {
> fputs ($fp, "OPTIONS * HTTP/1.0\r\nMax-Forwards: 0
* 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)\n";
> } else {
> fputs ($fp, "OPTIONS * HTTP/1.0\r\nMax-Forwards: 0
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 ($
* 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
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,
* 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,
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 t
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..
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To un
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
Hello!
I saw this on some pages and want to do the same:
- On one page the user can login. Before that no cookie is set!
- On the next page they set the cookie and show either the user data or
a warning that the user has disabled cookies and should enable them.
I wasn't able to set and text a coo
Hello!
Okay, I saw pages doing this and I want exactly the same:
- On a page the user can login. Before, no cookie is set.
- On the next page, the cookie is set. It shows either the user data (is
the login was correct and cookies where enabled) or a page which tells
that cookies are disabled.
So
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)) {
mixed array_search ( mixed needle, array haystack [, bool strict])
Searches hays
* 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)) {
mixed array_search ( mixed needle, array haystack [, bool strict])
Searches haystack for needle and retur
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
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
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
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?
Thanx for a
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 un
How can I test to see if and what portions of Pear are installed on a
vhosted website?
TX,
david
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
I'm trying to build a validator in PHP, to check that XML documents are
well-formed.
Does anyone have an algorithm for doing this?
KR
ian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- 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:
http://www.bl
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 a
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
> nul
[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
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 both of those wrong, and if so, how hsoudl I check if
[snip]
for($i = 0; $i < $countList; $i++){
$strDirName = substr($arrList[$i], 47, 8);
if(strlen(chop($strDirName)) == 8){
echo $theDirectory.$strDirName."";
}
}
[/snip]
Never mind. I am making them all 8 wide, just saw it. *slaps feverish
forhead*
--
PHP G
for($i = 0; $i < $countList; $i++){
$strDirName = substr($arrList[$i], 47, 8);
if(strlen(chop($strDirName)) == 8){
echo $theDirectory.$strDirName."";
}
}
I am trying to check for $strDirName length, but the echo returns all
file names within the directory re
1 - 100 of 215 matches
Mail list logo