Re: [PHP] Form validation and save the form

2010-01-10 Thread Paul M Foster
On Sun, Jan 10, 2010 at 11:37:06PM -0600, aditya shukla wrote: > Hello Guys, > > I am trying to validate a form for user input , such that when something is > missing load the form again by focusing on the wrong field.Say i don not > enter my address so when the form loads everything else is sav

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

2010-01-10 Thread Paul M Foster
On Sun, Jan 10, 2010 at 06:41:19AM -0800, Michael A. Peters wrote: > Daevid Vincent wrote: > >> >> What do you guys all do? > 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. Paul -- Paul M. Foster

[PHP] Form validation and save the form

2010-01-10 Thread aditya shukla
Hello Guys, I am trying to validate a form for user input , such that when something is missing load the form again by focusing on the wrong field.Say i don not enter my address so when the form loads everything else is saved and the form points to address field. Thanks Aditya

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

2010-01-10 Thread Waynn Lue
Emacs/xemacs does syntax highlighting too. On 1/10/10, 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

[PHP] stream_socket_client via proxy

2010-01-10 Thread kranthi
Hi all, I am trying to use http://code.google.com/p/xmpphp/ package. It uses stream_socket_client to connect to XMPP servers. I am behind a proxy server so obviously this is not working. Tried proxychains but to no avail. Am I missing something obvious? Kranthi. -- PHP General Mailing List (ht

Re: [PHP] Formatting Decimals

2010-01-10 Thread Mattias Thorslund
Testing this out a little: matt...@mumin:~$ php -r 'echo "\$".number_format(0.109, 2, ".", ",")."\n";' $0.11 matt...@mumin:~$ php -r 'echo "$".number_format(0.109, 2, ".", ",")."\n";' $0.11 matt...@mumin:~$ php -r 'echo "$".number_format("0.109", 2, ".", ",")."\n";' $0.11 I think the $ should

[PHP] Formatting Decimals

2010-01-10 Thread Rick Dwyer
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 = "$".number_format($old_price, 2, ".", ","); and this returns "$0.109" when I am looking for "$0.11". I tried: $newprice

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

2010-01-10 Thread Kaya Saman
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 are coming from a windows machine, you can use Cygwin or Xming

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

2010-01-10 Thread Ashley Sheridan
On Mon, 2010-01-11 at 03:15 +0200, Kaya Saman wrote: > > > > I use Kate which comes with KDE on Linux. With KDE's Kioslaves I can > > edit files directly over SSH via the SFTP protocol. > > > > Thanks, > > Ash > > http://www.ashleysheridan.co.uk > > > > > Thank you for the suggestion! > > Your i

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

2010-01-10 Thread Kaya Saman
I use Kate which comes with KDE on Linux. With KDE's Kioslaves I can edit files directly over SSH via the SFTP protocol. Thanks, Ash http://www.ashleysheridan.co.uk Thank you for the suggestion! Your idea about using echo <

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

On Mon, 2010-01-11 at 03:06 +0200, Kaya Saman wrote: > >> > >> > > > > 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, > > Ash > > http://www.ashleysheridan.co.uk > > > > > Th

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

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, Ash http://www.ashleysheridan.co.uk Thanks for both comments Ashley! I will attempt it now. An editor with syntax checking?? Cur

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

Ashley Sheridan wrote: On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote: Hi, I am hoping someone can help me?? I currently run Fedora 11 on an Apple PowerMac G4 and recently performed an upgrade to it which rendered my site completely unsee able for a while but then after re-saving

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

On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote: > Hi, > > I am hoping someone can help me?? > > I currently run Fedora 11 on an Apple PowerMac G4 and recently performed > an upgrade to it which rendered my site completely unsee able for a > while but then after re-saving it showed up thr

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

On Mon, 2010-01-11 at 02:52 +0200, Kaya Saman wrote: > Hi, > > I am hoping someone can help me?? > > I currently run Fedora 11 on an Apple PowerMac G4 and recently performed > an upgrade to it which rendered my site completely unsee able for a > while but then after re-saving it showed up thr

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

Hi, I am hoping someone can help me?? I currently run Fedora 11 on an Apple PowerMac G4 and recently performed an upgrade to it which rendered my site completely unsee able for a while but then after re-saving it showed up through my browsers however my menu bar was slightly altered probably

[PHP] RE: Clean PHP 5.2.12 Build Core Dumping

> > I tried adding WITHOUT_X11=yes to /etc/make.conf as well as X11BASE= > and > > X11BASE="", but I still get the same error. > > Remove them. This makes sure they are not defined, not even > empty (as in "#define BLA -> symbol 'BLA' is defined"). > > > Where to go from here? Do I have and old v

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

On Sun, 2010-01-10 at 08:52 -0800, Jim Lucas wrote: > Stuart Dallas wrote: > > > > That's a massive assumption. There are a number of editors that > > automatically add a blank line to the end of source files. > > A single \n after the final ?> doesn't matter anyways. Even if the following >

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

Stuart Dallas wrote: > > That's a massive assumption. There are a number of editors that automatically > add a blank line to the end of source files. A single \n after the final ?> doesn't matter anyways. Even if the following example was two different files where the second included the firs

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

Stuart Dallas wrote: On 10 Jan 2010, at 14:44, Michael A. Peters wrote: Stuart Dallas wrote: That's a massive assumption. There are a number of editors that automatically add a blank line to the end of source files. I stand by taking the option that requires the least conscious thought from y

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

On 10 Jan 2010, at 14:44, Michael A. Peters wrote: > Stuart Dallas wrote: > >> That's a massive assumption. There are a number of editors that >> automatically add a blank line to the end of source files. I stand by >> taking the option that requires the least conscious thought from your >> devel

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

Stuart Dallas wrote: That's a massive assumption. There are a number of editors that automatically add a blank line to the end of source files. I stand by taking the option that requires the least conscious thought from your developers - they have enough important stuff to occupy their brain th

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

Daevid Vincent wrote: What do you guys all do? I keep it there, and just make sure not to have white space where it should not be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Clean PHP 5.2.12 Build Core Dumping

Don O'Neil wrote: Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0x081d50a7 in sqlite3Select (pParse=0xbbc00080, p=0x0, eDest=164102200, iParm=0, pParent=0x24, parentTab=139141440, pParentAgg=0x84c10d8, aff=0x0) at /usr/local/directadmin/customap