php-general Digest 5 Jul 2011 12:03:46 - Issue 7390
Topics (messages 313867 through 313869):
Re: Installing PHP
313867 by: Chris Stinemetz
313868 by: Chris Stinemetz
313869 by: David Robley
Administrivia:
To subscribe to the digest, e-mail:
Jim Giner wrote:
Hi all,
(Hopefully I posted this in a place that can/will help me)
I got curious about running php / apache on my own laptop in order to help
my devl process, instead of writing, uploading and testing on my site.
Found a nice pair of docs from thesitewizard.com that
Thanks David! The error log tells me that I have installed a version of PHP
that is not thread-safe. My bad - I mis-read the download page and did in
fact acquire the wrong version. Am beginning PHP install all over again!
David Robley robl...@aapt.net.au wrote in message
Hi all,
I've bumped into an interesting thing with foreach. I really don't know, if
this is normal working, or why it is, so I got curious.
The script:
foreach ( $cats as $c ) {
echo $c['id'];
if ( $c['id'] 5 ) {
Hi there
I think that foreach in your first example just knowns that this
should be the last loop (as the array only contains 1 element at
start) and so stops there.
In your 2nd example however the first loop isn't the last, so the
array get's checked again, and now there's another element, so...
Eureka!
The whole problem was my unfamiliarity with the php download page. To
others - read the choices there very carefully (which I thought I did!) to
be sure you get the thread-safe version.
Thanks to all who contributed, but David gets the kudos for telling me to
check the error logs
On 11-07-05 09:40 AM, Dajka Tamas wrote:
Hi all,
I've bumped into an interesting thing with foreach. I really don't know, if
this is normal working, or why it is, so I got curious.
The script:
foreach ( $cats as$c ) {
echo $c['id'];
if ( $c['id'] 5 )
Or maybe he tried to do the following?
?php
foreach ( $cats as$c ) {
echo $c['id'];
if ($c['id'] 5) {
$cats[] = array('id' = ($c['id'] + 1));
}
}
?
2011/7/5 Robert Cummings rob...@interjinn.com:
On 11-07-05 09:40 AM,
Hi,
Yeah, I'm really want to do that, since I'm working with the elements of the
original array ( skipped that part in sample code ).
I've tried your suggestion, but it gives the same result, so on just one input
is just gives back '1'.
What troubles me, that foreach gives an inconsistent
Tried, gives the same result with one element :(
What's working:
$cats = array( array( 'id' = 1 ) );
while ( $c = array_shift($cats) ) {
echo $c['id'];
if ( $c['id'] 5 ) {
$c['id']++;
$cats[] = $c;
}
}
But this is 'while' and it pops all
On 11-07-05 10:20 AM, Dajka Tamás wrote:
Hi,
Yeah, I'm really want to do that, since I'm working with the elements of the
original array ( skipped that part in sample code ).
I've tried your suggestion, but it gives the same result, so on just one input
is just gives back '1'.
Ahhh... you
Since this is the 3rd time I have been chewed out for top posting.
Anyone know how to make Outlook changes its reply position.
I am using outlook 2007 and I do not find an option for this.
I have to scroll down to the bottom of the email and it considers that to be
an adjustment to the
I don't think that it does this:
if ( count($elements) == 1 ) then loop 1;
else loop normally;
It's probably more something like that:
$i=count($elements);
loop:
$i--;
if($i == 0)
$last_loop = true;
else
$last_loop = false
if($last_loop)
exit;
else
goto loop;
But aside from
Ok, but if it would be that way I shouldn't get '122334455' for second output,
no? The item count increments with every iteration of the loop.
Or you're saying that, it checks for an existance of nextitem before every
loop, and that will fail with just one element, but will always return true
outlook doesn't offer an option for that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11-07-05 10:39 AM, Dajka Tamás wrote:
Ok, but if it would be that way I shouldn't get '122334455' for second output,
no? The item count increments with every iteration of the loop.
Or you're saying that, it checks for an existance of nextitem before every
loop, and that will fail with
On 11-07-05 10:39 AM, Dajka Tamás wrote:
Ok, but if it would be that way I shouldn't get '122334455' for second output,
no? The item count increments with every iteration of the loop.
Or you're saying that, it checks for an existance of nextitem before every
loop, and that will fail with just
On 11-07-05 10:42 AM, Jim Giner wrote:
outlook doesn't offer an option for that.
I'm pretty sure it has a scrollbar on the side ;)
Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message
On Tue, Jul 05, 2011 at 10:29:12AM -0400, ad...@buskirkgraphics.com wrote:
Since this is the 3rd time I have been chewed out for top posting.
Anyone know how to make Outlook changes its reply position.
I am using outlook 2007 and I do not find an option for this.
I have to scroll down
And besides - I'm sure there are PLENTY of people here who despise scrolling
thru endless repeated paragraphs from a long list of posts just to get the
the latest contribution to the topic.:)
This newgroup may have its rules, but if bottom-posting was such a wise and
preferred method, why
On 11-07-05 09:40 AM, Dajka Tamas wrote:
foreach ( $cats as$c ) {
echo $c['id'];
if ( $c['id'] 5 ) {
$c['id']++;
$cats[] = $c;
}
}
Given that you seem to want the above
On 11-07-05 10:48 AM, Dajka Tamás wrote:
Thanks, that was interesting :) I think I got one step further in understanding
PHP :)
BTW, I've changed the loop to 'for' and it's working well :)
Can you show us your for loop? I'm not immediately sure how you use a
for loop to traverse a growing
Jim Giner wrote:
outlook doesn't offer an option for
that.
ctrl-END gets you to the bottom of a message.
On Tue, Jul 5, 2011 at 3:48 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
And besides - I'm sure there are PLENTY of people here who despise
scrolling
thru endless repeated paragraphs from a long list of posts just to get the
the latest contribution to the topic.:)
This newgroup may
On 05 Jul 2011 at 15:29, ad...@buskirkgraphics.com wrote:
Since this is the 3rd time I have been chewed out for top posting.
Anyone know how to make Outlook changes its reply position.
I am using outlook 2007 and I do not find an option for this.
I have to scroll down to the bottom of the
On Tue, Jul 05, 2011 at 10:48:34AM -0400, Jim Giner wrote:
And besides - I'm sure there are PLENTY of people here who despise scrolling
thru endless repeated paragraphs from a long list of posts just to get the
the latest contribution to the topic.:)
This newgroup may have its rules,
On Tue, Jul 5, 2011 at 2:40 PM, Dajka Tamas vi...@vipernet.hu wrote:
I've bumped into an interesting thing with foreach. I really don't know, if
this is normal working, or why it is, so I got curious.
The script:
foreach ( $cats as $c ) {
echo $c['id'];
if (
not what he was asking for.
Curtis Maurand cur...@maurand.com wrote in message
news:4e7755d57a7a032c39e44598f3660ac7.squir...@www.xyonet.com...
Jim Giner wrote:
outlook doesn't offer an option for
that.
ctrl-END gets you to the bottom of a message.
--
PHP General Mailing List
hi this is my first post on php general mailing list, i want to read a xml
file to retrieve data. i tried by using DOM and simple xml but i
couldn't.
the xml file looks like this..
*note
head
titlethe the title/title
date7-6-2011/date
/head
data
book
namebook 1/name
On Tue, Jul 5, 2011 at 3:29 PM, ad...@buskirkgraphics.com wrote:
Anyone know how to make Outlook changes its reply position.
I am using outlook 2007 and I do not find an option for this.
Google delivers...
http://sourceforge.net/apps/mediawiki/macros4outlook/index.php?title=QuoteFix_Macro
Actually business user do subscribe to use Outlook as their client. It does
not come with the OS, it is purchased on a per seat basis by every
corporation using it in the form of a license.
On the other hand Outlook Express is available as part of the os, or is
easily obtained for free. It
Just use count($arr) in your for-header, as it get's executed again
for each loop.
?php
$arr = array(array('id'=1), array('id'=2));
for($i=0;$icount($arr);$i++) {
echo $arr[$i]['id'];
if($i 6) {
$arr[] = array('id' =
On Tue, Jul 5, 2011 at 4:36 PM, Kanishka kanishkani...@gmail.com wrote:
hi this is my first post on php general mailing list, i want to read a xml
file to retrieve data. i tried by using DOM and simple xml but i
couldn't.
the xml file looks like this..
*note
head
titlethe the
Stuart Dallas stu...@3ft9.com wrote in message
If you're looking for a sane reason why Microsoft software is popular in
the
business world you're not going to find one.
No - you missed my statement's point. Not looking for anything - just
saying it is what it is. You won't find me
On 5 July 2011 16:48, Jim Giner jim.gi...@albanyhandball.com wrote:
Let the new mantra be - Snip Your Posts!
Consider your post snipped.
OOI. If you use Google Mail, highlighting the part of the message you
want to use and then clicking reply-all will embed only that part in
the reply.
--
On Tue, Jul 5, 2011 at 4:48 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Stuart Dallas stu...@3ft9.com wrote in message
If you're looking for a sane reason why Microsoft software is popular in
the
business world you're not going to find one.
No - you missed my statement's point.
Again, please include the list when replying!
On Tue, Jul 5, 2011 at 4:56 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
**
if they weren't on the list, then how did they get involved in the first
place?
You don't need to be subscribed to post.
I see the bottom posting lasted a
Stuart Dallas stu...@3ft9.com wrote in message
news:CAJgGj58OkZLiakMMo8qmuhg68BamYOi+TLNGyzze=iyppbj...@mail.gmail.com...
Again, please include the list when replying!
But don't include the poster's email if you're replying to the list!
--
PHP General Mailing List (http://www.php.net/)
On 5 July 2011 17:08, Stuart Dallas stu...@3ft9.com wrote:
Again, please include the list when replying!
On Tue, Jul 5, 2011 at 4:56 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
**
if they weren't on the list, then how did they get involved in the first
place?
And Jim, your anti-spam
On 11-07-05 11:46 AM, Louis Huppenbauer wrote:
Just use count($arr) in your for-header, as it get's executed again
for each loop.
?php
$arr = array(array('id'=1), array('id'=2));
for($i=0;$icount($arr);$i++) {
echo $arr[$i]['id'];
if($i 6) {
On Jul 5, 2011, at 12:06, Stuart Dallas stu...@3ft9.com wrote:
On Tue, Jul 5, 2011 at 4:48 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Stuart Dallas stu...@3ft9.com wrote in message
If you're looking for a sane reason why Microsoft software is popular in
the
business world you're
On Tue, Jul 5, 2011 at 5:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Stuart Dallas stu...@3ft9.com wrote in message
news:CAJgGj58OkZLiakMMo8qmuhg68BamYOi+TLNGyzze=iyppbj...@mail.gmail.com...
Again, please include the list when replying!
But don't include the poster's email if
On 5 July 2011 17:10, Jim Giner jim.gi...@albanyhandball.com wrote:
Stuart Dallas stu...@3ft9.com wrote in message
news:CAJgGj58OkZLiakMMo8qmuhg68BamYOi+TLNGyzze=iyppbj...@mail.gmail.com...
Again, please include the list when replying!
But don't include the poster's email if you're replying
If you resisted sending what amounts to a duplicate email to the posters who
are 'on' the list, you wouldn't have to deal with spam filters. Don't
understand the purpose of a reply all when in essence our replies are to the
list wherein the topic originated. Those on the list will surely see
Richard Quadling rquadl...@gmail.com wrote in message
news:CAKUjMCVbhbXO=ngr1lnzo-6fdahdj-r8hc73b-esotfqg+k...@mail.gmail.com...
But that is what reply-all is about.
Person A sends an message to List B.
I reply-all and Person A and List B get replies.
Hmm.
A new level of complexity! A
On 7/5/2011 9:11 AM, Richard Quadling wrote:
And Jim, your anti-spam measures are spamming me.
So, I've blocked your anti-spam as spam.
I noticed this the other day and I blocked him as well.
Maybe this is why his mail server IP is listed as a source of spam...
It's certainly not spam - it's a spam filter offered by my ISP and works
great. The mail you are getting from it is a query asking you to reply if
you are real and once you do, you'll never get the request again.
Jim Lucas li...@cmsws.com wrote in message
news:4e134676.7090...@cmsws.com...
On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote:
$arr[] = array('name' = (string)$book-name, 'author' =
(string)$book-author);
}
Interesting -- is the casting to string type necessary there? I
haven't done that before, and it seems to have worked ok...
--
PHP General Mailing List
Jim Giner jim.gi...@albanyhandball.com wrote:
It's certainly not spam - it's a spam filter offered by my ISP and
works
great. The mail you are getting from it is a query asking you to reply
if
you are real and once you do, you'll never get the request again.
Jim Lucas li...@cmsws.com wrote in
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple tamouse.li...@gmail.comwrote:
On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote:
$arr[] = array('name' = (string)$book-name, 'author' =
(string)$book-author);
}
Interesting -- is the casting to string type necessary there? I haven't
done
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:21e916f2-2a1f-4982-bc4d-9a574da92...@email.android.com...
I've seen fake messages do that before as a way of harvesting good live
email addresses, so I regard all such messages spam now.
oh, well...
--
PHP General Mailing
Business e-mail did not start with Outlook. Businesses have been using
e-mail long before it even showed up as an option. The de jure
standard on the Internet before that time, and before several other
clients came about was either bottom posting or intermixed responses.
This was true in
On Jul 5, 2011, at 12:48 PM, Stuart Dallas wrote:
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple
tamouse.li...@gmail.com wrote:
On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote:
$arr[] = array('name' = (string)$book-name, 'author' =
(string)$book-author);
}
Interesting -- is the casting
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Sent: Tuesday, July 05, 2011 1:53 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Top Posting
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 07/05/2011 07:48 AM, Jim Giner wrote:
And besides - I'm sure there are PLENTY of people here who despise scrolling
thru endless repeated paragraphs from a long list of posts just to get the
the latest contribution to the topic.:)
I often
On Tue, 2011-07-05 at 14:04 -0400, ad...@buskirkgraphics.com wrote:
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Sent: Tuesday, July 05, 2011 1:53 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Top Posting
Ashley Sheridan
On Jul 5, 2011, at 1:14 PM, Ashley Sheridan wrote:
Have you looked into using Evolution as an email client? It's what I
use
on Linux, and the last time I checked there were Windows binaries
available for it. It connect to MS Exchange Server if that's what you
use in the office, it's
James Moe ji...@sohnen-moe.com wrote in message
news:4e1353f3.6090...@sohnen-moe.com...
I suspect one reason top posting is popular is that responders do not
have to think about tidying up, just spit out a reply and move on. The
result is a message that grows in size with every reply
Hello Jim Giner,
Am 2011-07-05 10:48:34, hacktest Du folgendes herunter:
And besides - I'm sure there are PLENTY of people here who despise scrolling
thru endless repeated paragraphs from a long list of posts just to get the
the latest contribution to the topic.:)
This newgroup may
Hello Richard Quadling,
Am 2011-07-05 17:14:18, hacktest Du folgendes herunter:
But that is what reply-all is about.
Person A sends an message to List B.
I reply-all and Person A and List B get replies.
I do not like to get PMs on my cellphone from the LIST
Hmm.
GMail sucks at this. Reply
Hello Jim Giner,
Am 2011-07-05 13:30:31, hacktest Du folgendes herunter:
It's certainly not spam - it's a spam filter offered by my ISP and works
great. The mail you are getting from it is a query asking you to reply if
you are real and once you do, you'll never get the request again.
Do
Hello James Moe,
Am 2011-07-05 11:12:03, hacktest Du folgendes herunter:
I suspect one reason top posting is popular is that responders do not
have to think about tidying up, just spit out a reply and move on.
Replying to what if s/he does not scroll down to read the answer of the
previous
On Jul 5, 2011, at 4:37 PM, Michelle Konzack wrote:
Imagine here a quoting of 200 lines and then a
ME TOO!
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
# Debian GNU/Linux Consultant
##
Development of Intranet and Embedded
On 7/3/2011 4:53 PM, Stuart Dallas wrote:
Only allowing them to access the URL once is a bad idea. If their
download fails, is corrupt, or any number of other things go wrong
(think accelerators, browser accelerators, etc) then you end up
with a lot of support mail. Better to give them
Huh? You have a problem with a person having a spam filter that requires
one valid response to ensure that the mail from an address is from a real
person ONE TIME ONLY?
And what do you use to cut down on spam in your in-box?
--
PHP General Mailing List (http://www.php.net/)
To
On Tue, Jul 5, 2011 at 22:52, Jim Giner jim.gi...@albanyhandball.com wrote:
Huh? You have a problem with a person having a spam filter that requires
one valid response to ensure that the mail from an address is from a real
person ONE TIME ONLY?
Not that you're asking me, but yes, I do.
66 matches
Mail list logo