php-general Digest 12 Jan 2010 05:08:45 -0000 Issue 6534

2010-01-11 Thread php-general-digest-help
php-general Digest 12 Jan 2010 05:08:45 - Issue 6534 Topics (messages 300992 through 301012): Re: To add the final ? or not... 300992 by: Bipper Goes! Re: Formatting Decimals 300993 by: Rick Dwyer 300996 by: Paul M Foster 301002 by: tedd 301005 by:

Re: [PHP] POLL: To add the final ? or not...

2010-01-11 Thread Olav
Paul M Foster wrote: I leave it off. I don't want to have to worry about which editor I'm using or whether I accidentally left some whitespace where it shouldn't be. I also use different editors in different situations, both terminal based and GUI. For instance I find Midnight Commander's

[PHP] htmlMicroscope 1.2.0 out - much better than 1.1.0

2010-01-11 Thread Rene Veerman
Check it out at http://mediabeez.ws/htmlMicroscope Last modified Mon, 11 Jan 2010, 13:00 UTC+0100 Latest changes: * Javascript hm() support added * Added ability to view HTML strings as rendered HTML. I admit there are still problems with some HTML taking over the

[PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Jay Blanchard
..and I haven't for a while. Is anyone else having this problem? If you are you will not see this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread metastable
Jay Blanchard wrote: ..and I haven't for a while. Is anyone else having this problem? If you are you will not see this. If they are, how can they wonder if they have this problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Jay Blanchard
[snip] Jay Blanchard wrote: ..and I haven't for a while. Is anyone else having this problem? If you are you will not see this. If they are, how can they wonder if they have this problem ? [/snip] exactly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Ashley Sheridan
On Mon, 2010-01-11 at 03:27 +0200, Kaya Saman wrote: Depending on the latency and bandwidth you could use X11 forwarding (granted the server supports it) so you could use a non-CLI editor. I think joe has some syntax highlighting, but I've never edited PHP files with it. If you

RE: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Bob McConnell
From: Kaya Saman I also forgot to mention, it's worth getting an editor that comes with syntax highlighting, as this would have shown you the problem right away. Thanks for both comments Ashley! I will attempt it now. An editor with syntax checking?? Currently my data center is in the

[PHP] Easy Eclipse PHP Problem

2010-01-11 Thread tedd
Hi gang: I recently installed MAPA on my new system (Mac X 10.6.2) to use use Eclipse and PHP 5. The EasyEclipse for PHP download is located at: http://www.easyeclipse.org/site/distributions/php.html However, the installation fails. I posted an error report, but there are other reports

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Kaya Saman
Bob McConnell wrote: From: Kaya Saman I also forgot to mention, it's worth getting an editor that comes with syntax highlighting, as this would have shown you the problem right away. Thanks for both comments Ashley! I will attempt it now. An editor with syntax

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Ashley Sheridan
On Mon, 2010-01-11 at 16:21 +0200, Kaya Saman wrote: Bob McConnell wrote: From: Kaya Saman I also forgot to mention, it's worth getting an editor that comes with syntax highlighting, as this would have shown you the problem right away. Thanks for

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Robert Cummings
Bob McConnell wrote: From: Kaya Saman I also forgot to mention, it's worth getting an editor that comes with syntax highlighting, as this would have shown you the problem right away. Thanks for both comments Ashley! I will attempt it now. An editor with syntax checking?? Currently my data

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Michael A. Peters
Ashley Sheridan wrote: I never bother with X-forwarding for development work, it is too slow I agree. My development box is a Dell Optiplex G50 I found discarded in an illegal trash pile. Hard drive was bad, I had a spare. Heat sink was dislodged, I had thermal paste. CDROM is not

RE: [PHP] Form validation and save the form

2010-01-11 Thread Angelo Zanetti
-Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 07:37 AM To: php-general Subject: [PHP] Form validation and save the form Hello Guys, I am trying to validate a form for user input , such that when something is missing load the form

Re: [PHP] Form validation and save the form

2010-01-11 Thread Robert Cummings
Angelo Zanetti wrote: -Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 07:37 AM To: php-general Subject: [PHP] Form validation and save the form Hello Guys, I am trying to validate a form for user input , such that when something is

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Kaya Saman
My development box is a Dell Optiplex G50 I found discarded in an illegal trash pile. Hard drive was bad, I had a spare. Heat sink was dislodged, I had thermal paste. CDROM is not reliable, but reliable enough to boot off of a 4MB CentOS boot.iso and network install. Video gives snow, but

Re: [PHP] Form validation and save the form

2010-01-11 Thread aditya shukla
Thanks for the reply guys.Do you guys know a good resource where i can read from about form validation through PHP.There a lot on google but please suggest something if you guys know. Thanks Aditya

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Richard
Hi, ... I had this (I think) recently; mail simply stopped coming from the list and I can't remember unsubscribing (though that's not saying much...). I simply re-subscribed and all was dandy again. -- Richard Heyes HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 9th January)

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Daniel Brown
On Mon, Jan 11, 2010 at 10:10, Richard rich...@php.net wrote: I had this (I think) recently; mail simply stopped coming from the list and I can't remember unsubscribing (though that's not saying much...). I simply re-subscribed and all was dandy again. Quite possibly caused by malformed

RE: [PHP] Form validation and save the form

2010-01-11 Thread Angelo Zanetti
-Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 05:03 PM To: Robert Cummings Cc: Angelo Zanetti; php-general Subject: Re: [PHP] Form validation and save the form Thanks for the reply guys.Do you guys know a good resource where i can read

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Ashley Sheridan
On Mon, 2010-01-11 at 10:17 -0500, Daniel Brown wrote: On Mon, Jan 11, 2010 at 10:10, Richard rich...@php.net wrote: I had this (I think) recently; mail simply stopped coming from the list and I can't remember unsubscribing (though that's not saying much...). I simply re-subscribed and

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Richard
Hi, ... It's not a problem at all, it just takes me a few months to realise... :-) -- Richard Heyes HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 9th January) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Michael A. Peters
Kaya Saman wrote: Thanks for that info I do admit that old computers do make the coolest machines especially home servers and when running something like FreeBSD they end up being awsome! However we were talking about SSH over continents not local LAN! With local LAN you get round

Re: [PHP] Formatting Decimals

2010-01-11 Thread Ryan Sun
$newprice = sprintf($%.2f, 15.109); On Sun, Jan 10, 2010 at 8:36 PM, Rick Dwyer rpdw...@earthlink.net wrote: Hello List. Probably an easy question, but I am not able to format a number to round up from 3 numbers after the decimal to just 2. My code looks like this: $newprice =

Re: [PHP] Form validation and save the form

2010-01-11 Thread Bastien Koert
On Mon, Jan 11, 2010 at 10:18 AM, Angelo Zanetti ang...@zlogic.co.za wrote: -Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 05:03 PM To: Robert Cummings Cc: Angelo Zanetti; php-general Subject: Re: [PHP] Form validation and save the

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Bastien Koert
On Mon, Jan 11, 2010 at 10:17 AM, Daniel Brown danbr...@php.net wrote: On Mon, Jan 11, 2010 at 10:10, Richard rich...@php.net wrote: I had this (I think) recently; mail simply stopped coming from the list and I can't remember unsubscribing (though that's not saying much...). I simply

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Kaya Saman
But what you can do is keep your dev box local, and then use rsync over ssh to publish to the production (or dev) server that is across ocean(s). I use .devel as my TLD for my dev hosts (IE www.something.devel) but otherwise have the dev box configured identical to the production

Re: [PHP] SVG and PHP

2010-01-11 Thread haliphax
On Wed, Jan 6, 2010 at 5:04 PM, Bob Strasser bstras...@noccorp.com wrote: Hi, Just went online and saw an SVG generated from Python, and wanted to do the similar thing by loading the SVG into an PHP script. Here is the script that I have: ?php #Load the Map $ourFileName=

Re: [PHP] POLL: To add the final ? or not...

2010-01-11 Thread Bipper Goes!
Ever write a string replace function on a closing ? //somecomment here like end junk I have written some systems and gone back two to three years later and found myself having to do such. Sloppy, sure. Minimize cost to the client? Oh yeah. I keep em, and comment 'em as I feel I should. On

Re: [PHP] Formatting Decimals

2010-01-11 Thread Rick Dwyer
I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8 or 9 it gets rounded up to full cents. Can this be done fairly easily? Not knowing PHP

[PHP] test

2010-01-11 Thread LAMP
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 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:

Re: [PHP] Formatting Decimals

2010-01-11 Thread Paul M Foster
On Mon, Jan 11, 2010 at 02:55:33PM -0500, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8 or 9 it gets rounded up to

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

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

[PHP] Count the Number of Certain Elements in An Array

2010-01-11 Thread Alice Wei
Hi, This seems like a pretty simple problem, but I can't seem to be able to figure it out. I have a lot of elements in an array, and some of them are duplicates, but I don't want to delete them because I have other purposes for it. Is it possible for me to find out the number of certain

Re: [PHP] Count the Number of Certain Elements in An Array

2010-01-11 Thread Jonathan Tapicer
On Mon, Jan 11, 2010 at 6:21 PM, Alice Wei aj...@alumni.iu.edu wrote: Hi,  This seems like a pretty simple problem, but I can't seem to be able to figure it out. I have a lot of elements in an array, and some of them are duplicates, but I don't want to delete them because I have other

RE: [PHP] Count the Number of Certain Elements in An Array

2010-01-11 Thread Alice Wei
Date: Mon, 11 Jan 2010 18:31:43 -0300 Subject: Re: [PHP] Count the Number of Certain Elements in An Array From: tapi...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Mon, Jan 11, 2010 at 6:21 PM, Alice Wei aj...@alumni.iu.edu wrote: Hi, This seems like a

Re: [PHP] Formatting Decimals

2010-01-11 Thread tedd
At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8 or 9 it gets rounded up to full cents. Can

[PHP] corect way to use mail() function

2010-01-11 Thread LAMP
Hi, The company I work for, hosts online events registration applications. After a registered registered himself for an event he will get a confirmation email saying he registered successfully. Currently, in the header part of the mail(), in From it says e.g. ord...@computility.com - because

RE: [PHP] corect way to use mail() function

2010-01-11 Thread Daevid Vincent
-Original Message- From: LAMP [mailto:l...@afan.net] Sent: Monday, January 11, 2010 2:17 PM To: PHP-General List Subject: [PHP] corect way to use mail() function Hi, The company I work for, hosts online events registration applications. After a registered registered himself

Re: [PHP] Formatting Decimals

2010-01-11 Thread Rick Dwyer
On Jan 11, 2010, at 4:56 PM, tedd wrote: At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8

RE: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-11 Thread Don O'Neil
Ok.. just for grins I installed a new instance of 6.1, NO Patches, just straight off the ISO... I loaded the ports that came WITH the distro, and was able to make php 5.1.2 ok... When I did a portsnap fetch, portsnap extract, then went into the /usr/ports/lang/php5 and just typed make I get the

Re: [PHP] Formatting Decimals

2010-01-11 Thread Mattias Thorslund
tedd wrote: At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in 3, 4, 5, 6 it gets rounded to 5. And if it 7, 8 or 9 it gets rounded up to full

Re: [PHP] Formatting Decimals

2010-01-11 Thread Adam Richardson
On Mon, Jan 11, 2010 at 7:45 PM, Mattias Thorslund matt...@thorslund.uswrote: tedd wrote: At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in

Re: [PHP] Formatting Decimals

2010-01-11 Thread Paul M Foster
On Mon, Jan 11, 2010 at 04:56:03PM -0500, tedd wrote: --Rick: The above described rounding algorithm introduces more bias than simply using PHP's round() function, which always rounds down. IMO, modifying rounding is not worth the effort. The best rounding algorithm is to look at the last

Re: [PHP] corect way to use mail() function

2010-01-11 Thread Paul M Foster
On Mon, Jan 11, 2010 at 04:17:30PM -0600, LAMP wrote: Hi, The company I work for, hosts online events registration applications. After a registered registered himself for an event he will get a confirmation email saying he registered successfully. Currently, in the header part of the mail(),

RE: [PHP] corect way to use mail() function

2010-01-11 Thread Daevid Vincent
-Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Monday, January 11, 2010 8:51 PM To: php-general@lists.php.net Subject: Re: [PHP] corect way to use mail() function On Mon, Jan 11, 2010 at 04:17:30PM -0600, LAMP wrote: Hi, The company I work

Re: [PHP] corect way to use mail() function

2010-01-11 Thread Angus Mann
There are only 11 types of people in this world. Those that think binary jokes are funny, those that don't, and those that don't know binary. ErUmmm.shouldn't that read ...only 10 types of people... ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: