Re: [PHP] floored by floor()

2010-10-14 Thread Glen Fuller
On 10/14/2010 7:49 AM, chris h wrote: floor(32703) is different then floor(327.03 * 100). The former is an int, while the later is a float. Read those links that were sent :) Chris. On Thu, Oct 14, 2010 at 2:14 AM, Glen Fuller wrote: On 10/13/2010 10:48 PM, Mattias Thorslund wrote: Hi

Re: [PHP] searching for application like Google Doc

2010-10-14 Thread Sharl.Jimh.Tsin
Are you looking for a open-source project likes it? searching it via Google with "php"、"office doc"、"open source" key words may help you. Best regards, Sharl.Jimh.Tsin (From China) 2010/10/14 Bob McConnell : > From: ?? > >> Is there any application like Google Doc(here I mean the spreadsheet).

Re: [PHP] RegExp question: how to add a number?

2010-10-14 Thread Richard Quadling
On 14 October 2010 21:42, Andre Polykanine wrote: > Hi everyone, > I hope you're doing well (haven't written here for a long time :-)). > The question is as follows: I have a regexp that would do the > following. If the string begins with "Re:", it will change the > beginning to "Re[2]:"; if it do

Re: [PHP] RegExp question: how to add a number?

2010-10-14 Thread David Harkness
On Thu, Oct 14, 2010 at 1:42 PM, Andre Polykanine wrote: > But (attention, here it is!) if the string starts with > something like "Re[4]:", it should replace it by "Re[5]:". > Regular expressions do not support any mathematical operations. Instead, you need to use preg_match() to extract the nu

Re: [PHP] Help with sending credentials?

2010-10-14 Thread Adam Richardson
On Thu, Oct 14, 2010 at 4:45 PM, Brian Dunning wrote: > Gents - > > I'm trying to work with a major vendor's web service, but all my efforts > are met with a 401 authentication error response. I can log in manually to > this URL using these credentials through a browser, so I know the > credential

[PHP] Help with sending credentials?

2010-10-14 Thread Brian Dunning
Gents - I'm trying to work with a major vendor's web service, but all my efforts are met with a 401 authentication error response. I can log in manually to this URL using these credentials through a browser, so I know the credentials are good. Unfortunately the support guys at the vendor don't

[PHP] RegExp question: how to add a number?

2010-10-14 Thread Andre Polykanine
Hi everyone, I hope you're doing well (haven't written here for a long time :-)). The question is as follows: I have a regexp that would do the following. If the string begins with "Re:", it will change the beginning to "Re[2]:"; if it doesn't, then it would add "Re:" at the beginning. But (attenti

Re: [PHP] References in Sessions

2010-10-14 Thread Alexander Schrijver
On Thu, Oct 14, 2010 at 05:36:29PM +0200, Sebastian Detert wrote: > Alexander Schrijver schrieb: > >Is my message unclear? or didn't anyone ran into this problem? > > > If you want an atomic solution, you need to save the session to your > database. How often do you need to delete data? Isn't it b

Re: [PHP] floored by floor()

2010-10-14 Thread Shawn McKenzie
On 10/14/2010 09:22 AM, Mattias Thorslund wrote: > Thanks, I guess I needed to read that again. What confused me here was > that var_dump(327.03 * 100) returns the expected value and not something > like (float)32702.99... > > Cheers, > > Mattias > echo serialize(327.03 * 100); --

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread chris h
> > > Then someone said that using buffering was a bad idea and I should disable > it. > > I think it leads to poor habits like calling controller methods out of the view (essentially what you are wanting to use it for). Using it like that is asking for spaghetti code that's hard to maintain, scale

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 9:56 AM, chris h wrote: >> You can send a text message via email: >>    Verizon: 10digitphonenum...@vtext.com >>    AT&T: 10digitphonenum...@txt.att.net >>    Sprint: 10digitphonenum...@messaging.sprintpcs.com >>    T-Mobile: 10digitphonenum...@tmomail.net >>    Nextel: 10d

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 10:29 AM, Sebastian Detert wrote: > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert > wrote: > > > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster > wrote: > > > Folks: > > Being fairly geezerly, I know almost nothin

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Larry Martell schrieb: On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert wrote: Larry Martell schrieb: On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster wrote: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on

[PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
Peter Lind wrote: Just out of curiosity: why were you told to switch off output buffering? Regards Peter I can't find the thread now, but it was in regards to my early experiments with cookies. I was creating cookies and it worked mid-code, since buffering was active. Then someone said t

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert wrote: > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster > wrote: > > > Folks: > > Being fairly geezerly, I know almost nothing about this, so be gentle. > > Assuming someone entered information in a form on a website. N

Re: [PHP] Text messaging from the web

2010-10-14 Thread Paul M Foster
On Thu, Oct 14, 2010 at 11:56:20AM -0400, chris h wrote: > You can send a text message via email: > � �Verizon: [1]10digitphonenum...@vtext.com > � �AT&T: [2]10digitphonenum...@txt.att.net > � �Sprint: [3]10digitphonenum...@messaging.sprintpcs.com > � �T-Mobile: [4]10digit

Re: [PHP] Text messaging from the web

2010-10-14 Thread Bastien Koert
On Thu, Oct 14, 2010 at 11:50 AM, Larry Martell wrote: > On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster > wrote: >> Folks: >> >> Being fairly geezerly, I know almost nothing about this, so be gentle. >> >> Assuming someone entered information in a form on a website. Normally, >> you would email

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Larry Martell schrieb: On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster wrote: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on a website. Normally, you would email the responses to someone. But what if you wanted

Re: [PHP] Text messaging from the web

2010-10-14 Thread chris h
> > You can send a text message via email: > >Verizon: 10digitphonenum...@vtext.com >AT&T: 10digitphonenum...@txt.att.net >Sprint: 10digitphonenum...@messaging.sprintpcs.com >T-Mobile: 10digitphonenum...@tmomail.net >Nextel: 10digitphonenum...@messaging.nextel.com >Cingular:

RE: [PHP] Text messaging from the web

2010-10-14 Thread Jay Blanchard
[snip] Being fairly geezerly, I know almost nothing about this, so be gentle. [/snip] Rubber gloves first [snip] text messaging gateway? [/snip] It is fairly simple and we offer that from one of our sites (because it is a cell phone service provider). In this case we use PHP to send the info

Re: [PHP] Text messaging from the web

2010-10-14 Thread Sebastian Detert
Paul M Foster schrieb: Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on a website. Normally, you would email the responses to someone. But what if you wanted to send this information to a smartphone via text messagin

Re: [PHP] Text messaging from the web

2010-10-14 Thread Alexis
iT DEPENDS on which country you are in. In Canada you can send a text message to any mobile phone simply by sending an email to the phone number followed by the service provider's details...eg 1234567...@telus.net Details for the exact addresses each provider use, can be found on the net. In

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster wrote: > Folks: > > Being fairly geezerly, I know almost nothing about this, so be gentle. > > Assuming someone entered information in a form on a website. Normally, > you would email the responses to someone. But what if you wanted to > send this inf

[PHP] Text messaging from the web

2010-10-14 Thread Paul M Foster
Folks: Being fairly geezerly, I know almost nothing about this, so be gentle. Assuming someone entered information in a form on a website. Normally, you would email the responses to someone. But what if you wanted to send this information to a smartphone via text messaging? Is this possible, giv

Re: [PHP] References in Sessions

2010-10-14 Thread Sebastian Detert
Alexander Schrijver schrieb: Is my message unclear? or didn't anyone ran into this problem? If you want an atomic solution, you need to save the session to your database. How often do you need to delete data? Isn't it better to delete at night when noone is online, or logout all users for

Re: [PHP] References in Sessions

2010-10-14 Thread Alexander Schrijver
Is my message unclear? or didn't anyone ran into this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] floored by floor()

2010-10-14 Thread Mattias Thorslund
On 10/13/2010 11:14 PM, Glen Fuller wrote: On 10/13/2010 10:48 PM, Mattias Thorslund wrote: Hi List, I'm having a problem with the behavior of the floor() function: echo floor(327.03 * 100)."\n"; //prints "32702" and not "32703"!! Sanity check: var_dump(327.03 * 100); //prints "float(32703)"

Re: [PHP] floored by floor()

2010-10-14 Thread chris h
floor(32703) is different then floor(327.03 * 100). The former is an int, while the later is a float. Read those links that were sent :) Chris. On Thu, Oct 14, 2010 at 2:14 AM, Glen Fuller wrote: > On 10/13/2010 10:48 PM, Mattias Thorslund wrote: > >> Hi List, >> >> I'm having a problem wit

Re: [PHP] floored by floor()

2010-10-14 Thread Glen Fuller
On 10/13/2010 10:48 PM, Mattias Thorslund wrote: Hi List, I'm having a problem with the behavior of the floor() function: echo floor(327.03 * 100)."\n"; //prints "32702" and not "32703"!! Sanity check: var_dump(327.03 * 100); //prints "float(32703)" as expected Any ideas why this happens, and

Re: [PHP] floored by floor()

2010-10-14 Thread Mattias Thorslund
On 10/13/2010 11:56 PM, gaojian wrote: 在 2010-10-13三的 22:48 -0700,Mattias Thorslund写道: Hi List, I'm having a problem with the behavior of the floor() function: echo floor(327.03 * 100)."\n"; //prints "32702" and not "32703"!! Sanity check: var_dump(327.03 * 100); //prints "float(32703)" a

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Peter Lind
Just out of curiosity: why were you told to switch off output buffering? Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Richard Quadling
On 14 October 2010 15:09, Richard Quadling wrote: > then that is _PROBABLY_ of for a small one of script or a very very "... _PROBABLY_ ok ..." -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread Richard Quadling
On 14 October 2010 15:01, MikeB wrote: > chris h wrote: >>> >>> >>> I'm working through my class on PHP and I tried to put information from >>> my >>> sign-on process in the navbar. This didn't work well, since I had to >>> reload >>> the page to see it as the navbar was constructed earlier in the

[PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
chris h wrote: I'm working through my class on PHP and I tried to put information from my sign-on process in the navbar. This didn't work well, since I had to reload the page to see it as the navbar was constructed earlier in the code than the signon process. (Hard to explain, as we are buildin

Re: [PHP] Buffering output to allow headers late in code?

2010-10-14 Thread chris h
> > > I'm working through my class on PHP and I tried to put information from my > sign-on process in the navbar. This didn't work well, since I had to reload > the page to see it as the navbar was constructed earlier in the code than > the signon process. (Hard to explain, as we are building a "dy

[PHP] Buffering output to allow headers late in code?

2010-10-14 Thread MikeB
I'm working through my class on PHP and I tried to put information from my sign-on process in the navbar. This didn't work well, since I had to reload the page to see it as the navbar was constructed earlier in the code than the signon process. (Hard to explain, as we are building a "dynamic" w

RE: [PHP] searching for application like Google Doc

2010-10-14 Thread Bob McConnell
From: ?? > Is there any application like Google Doc(here I mean the spreadsheet). What is your conception of "like"? Have you looked at OpenOffice? Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stuck in implementing PHP with HTML

2010-10-14 Thread Tommy Pham
> -Original Message- > From: vivek [mailto:er.jadiyavi...@gmail.com] > Sent: Thursday, October 14, 2010 2:26 AM > To: php-general@lists.php.net > Subject: [PHP] Stuck in implementing PHP with HTML > > Hi All, > > Hi i am a newbie in PHP environment. > > First of all my sincere regards to

[PHP] Stuck in implementing PHP with HTML

2010-10-14 Thread vivek
Hi All, Hi i am a newbie in PHP environment. First of all my sincere regards to all behind developing this fabulous language & of-course to every one who are sharing their knowledge & views making others comfortable with the same. Coming to the point i am trying to create a contact form applying

[PHP] searching for application like Google Doc

2010-10-14 Thread 肖晗
Is there any application like Google Doc(here I mean the spreadsheet). thanks

Re: [PHP] floored by floor()

2010-10-14 Thread gaojian
在 2010-10-13三的 22:48 -0700,Mattias Thorslund写道: > Hi List, > > I'm having a problem with the behavior of the floor() function: > > echo floor(327.03 * 100)."\n"; //prints "32702" and not "32703"!! > > Sanity check: > var_dump(327.03 * 100); //prints "float(32703)" as expected > > Any ideas why