Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Ashley Sheridan
On Fri, 2010-05-28 at 11:51 +0800, Guus Ellenkamp wrote: > I would like if you stick to the original issue: can a PHP source file be in > utf-8. It's not about the output, that is properly supported. > > Think it would be a good idea anyhow that PHP would support utf-8 source > files as it seem

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Guus Ellenkamp
I would like if you stick to the original issue: can a PHP source file be in utf-8. It's not about the output, that is properly supported. Think it would be a good idea anyhow that PHP would support utf-8 source files as it seems utf-8 is going to be the de-facto standard for text files anyhow.

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Guus Ellenkamp
And I need(ed) this stuff especially for non-ASCII characters like Chinese, Arabic and stuff :) "Ashley Sheridan" wrote in message news:1274976794.2202.274.ca...@localhost... On Thu, 2010-05-27 at 12:08 -0400, Adam Richardson wrote: > On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp > wrote: >

Re: [PHP] displaying database output in a table

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 17:59 -0400, Adam Richardson wrote: > On Thu, May 27, 2010 at 5:47 PM, David Mehler wrote: > > > Hello Everyone, > > Thanks for all your suggestions. Unfortunately, I've replaced > > require_once with include_once and require with include in all the > > documents, I'm still

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-27 Thread Alice Wei
> Date: Thu, 27 May 2010 12:23:46 -0400 > To: aj...@alumni.iu.edu; php-general@lists.php.net > From: tedd.sperl...@gmail.com > Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms > > At 3:50 PM -0400 5/26/10, Alice Wei wrote: > > > > My bad, I cannot imagine I sent t

[PHP] JSON RPC with SSL and .pem certificates?

2010-05-27 Thread Daevid Vincent
Anyone have a good example or routine or library or something that will use JSON-RPC client and SSL .pem certs? All the code I've found out there is pretty dated or unkept or lacks one or more of those requirements. http://jsonrpcphp.org/ is about as close as I could find, but it doesn't use SSL a

Re: [PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
On 5/27/10 3:15 PM, Adam Richardson wrote: On Thu, May 27, 2010 at 3:59 PM, Waynn Lue wrote: I've seen @inheritDoc used in Java before, though I'm not sure about the php support. Waynn You're absolutely right, Waynn, Phpdocumentor has this, too: http://manual.phpdoc.org/HTMLSmartyConvert

Re: [PHP] displaying database output in a table

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 5:47 PM, David Mehler wrote: > Hello Everyone, > Thanks for all your suggestions. Unfortunately, I've replaced > require_once with include_once and require with include in all the > documents, I'm still not having any luck. > Thanks. > Dave. > > > On 5/27/10, Bob McConnell

Re: [PHP] displaying database output in a table

2010-05-27 Thread David Mehler
Hello Everyone, Thanks for all your suggestions. Unfortunately, I've replaced require_once with include_once and require with include in all the documents, I'm still not having any luck. Thanks. Dave. On 5/27/10, Bob McConnell wrote: > From: Philip Thompson > >> On May 25, 2010, at 8:27 PM, Davi

[PHP] still having trouble with time-stamp subtraction two mysql fields

2010-05-27 Thread Bruce Gilbert
Hi there, I am still attempting to get a display of the result of my two timestamp fields subtracted from one another in minutes and hours if needed. This is for a form and the timestamps are recorded when a user logs in [login_timestamp] and when the form is submitted[submit_timestamp]. The displ

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 3:59 PM, Waynn Lue wrote: > I've seen @inheritDoc used in Java before, though I'm not sure about > the php support. > > Waynn > > On 5/27/10, Adam Richardson wrote: > >> > >> > >> > Larry, > >> > > >> > I've thought about this very issue before (java developers sometimes

Re: [PHP] Method documentation

2010-05-27 Thread Waynn Lue
I've seen @inheritDoc used in Java before, though I'm not sure about the php support. Waynn On 5/27/10, Adam Richardson wrote: >> >> >> > Larry, >> > >> > I've thought about this very issue before (java developers sometimes >> lament >> > this issue, too), and I error on the side of duplication

Re: Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 4:13 AM, Andre Polykanine wrote: > Hello Adam, > > You did understand me exactly and perfectly). > Ordering arrays is a good idea but I don't know how to do that > exactly. > For instance, there's a cypher called Polybius square. You write in > the alphabet in a grid like

RE: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 15:28 -0400, Bob McConnell wrote: > From: tedd > > > The Unicode database uses the same lower > > character values (i.e., "code points") as does > > ASCII, namely 0-127, and thus UFT-8 (8-bit > > variable width encoding) is really a super-set > > which includes the sub-s

RE: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Bob McConnell
From: tedd > The Unicode database uses the same lower > character values (i.e., "code points") as does > ASCII, namely 0-127, and thus UFT-8 (8-bit > variable width encoding) is really a super-set > which includes the sub-set of ASCII. > > The "Wingdings" font that Ash refers to is the > rea

RE: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread tedd
At 7:11 PM +0100 5/27/10, Ashley Sheridan wrote: On Thu, 2010-05-27 at 14:06 -0400, Bob McConnell wrote: > From: Ashley Sheridan > > I don't use the higher range of characters often, but I do sometimes use > them for things like the graphical glyphs (1Ž2)&, etc) I know I could do > those wit

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
> > > > Larry, > > > > I've thought about this very issue before (java developers sometimes > lament > > this issue, too), and I error on the side of duplication if I'm using > > inheritance. > > > > However, I'd say I rarely use inheritance for anything in my development, > > and I'm much more lik

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 1:14 PM, la...@garfieldtech.com < la...@garfieldtech.com> wrote: > On 5/27/10 12:10 PM, Adam Richardson wrote: > > Larry, >> >> I've thought about this very issue before (java developers sometimes >> lament >> this issue, too), and I error on the side of duplication if I'm

RE: [PHP] displaying database output in a table

2010-05-27 Thread Bob McConnell
From: Philip Thompson > On May 25, 2010, at 8:27 PM, David Mehler wrote: > >> Hello, >> I'm trying to display mysql database output in a formatted table. My >> problem is i'm getting a blank screen with no errors. I've got >> debugging on, and have run the cli php on this file which produces no >

Re: [PHP] displaying database output in a table

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 13:16 -0500, Philip Thompson wrote: > On May 25, 2010, at 8:27 PM, David Mehler wrote: > > > Hello, > > I'm trying to display mysql database output in a formatted table. My > > problem is i'm getting a blank screen with no errors. I've got > > debugging on, and have run the

Re: [PHP] displaying database output in a table

2010-05-27 Thread Philip Thompson
On May 25, 2010, at 8:27 PM, David Mehler wrote: > Hello, > I'm trying to display mysql database output in a formatted table. My > problem is i'm getting a blank screen with no errors. I've got > debugging on, and have run the cli php on this file which produces no > errors either, but neither doe

RE: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 14:06 -0400, Bob McConnell wrote: > From: Ashley Sheridan > > >On Thu, 2010-05-27 at 12:08 -0400, Adam Richardson wrote: > > > >> On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp > >> wrote: > >> > >> > Thanks, but are you sure of that? I did some research a while ago and >

RE: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Bob McConnell
From: Ashley Sheridan >On Thu, 2010-05-27 at 12:08 -0400, Adam Richardson wrote: > >> On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp >> wrote: >> >> > Thanks, but are you sure of that? I did some research a while ago and found >> > that officially PHP files should be ascii and not have any speci

Re: [PHP] Method documentation

2010-05-27 Thread Richard Quadling
On 27 May 2010 18:10, Adam Richardson wrote: > On Thu, May 27, 2010 at 12:44 PM, la...@garfieldtech.com < > la...@garfieldtech.com> wrote: > >> On 5/27/10 11:30 AM, Peter Lind wrote: >> >>  Sure, but @param, @access and possibly @return are but a part. I stand > by my words: document the paren

Re: [PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
On 5/27/10 12:10 PM, Adam Richardson wrote: Larry, I've thought about this very issue before (java developers sometimes lament this issue, too), and I error on the side of duplication if I'm using inheritance. However, I'd say I rarely use inheritance for anything in my development, and I'm mu

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 12:44 PM, la...@garfieldtech.com < la...@garfieldtech.com> wrote: > On 5/27/10 11:30 AM, Peter Lind wrote: > > Sure, but @param, @access and possibly @return are but a part. I stand by my words: document the parent as a stub and provide actual documentation for t

Re: [PHP] Method documentation

2010-05-27 Thread Richard Quadling
On 27 May 2010 17:21, la...@garfieldtech.com wrote: > On 5/27/10 11:13 AM, Peter Lind wrote: > >>> I'm overriding the method because I want to change the *implementation*. >>>  The *interface* of it, which is documented in the docblock, should not >>> change and it's a bug (and possibly compile er

Re: [PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
On 5/27/10 11:30 AM, Peter Lind wrote: Sure, but @param, @access and possibly @return are but a part. I stand by my words: document the parent as a stub and provide actual documentation for the real implementations. Otherwise you're trying to be *clever* and will see the age-old result: you'll e

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread tedd
At 5:13 PM +0100 5/27/10, Ashley Sheridan wrote: I don't use the higher range of characters often, but I do sometimes use them for things like the graphical glyphs (1Ž2)&, etc) I know I could do those with regular text and the Wingdings font, but that's not available on every computer, and break

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
On 27 May 2010 18:21, la...@garfieldtech.com wrote: > On 5/27/10 11:13 AM, Peter Lind wrote: > >>> I'm overriding the method because I want to change the *implementation*. >>>  The *interface* of it, which is documented in the docblock, should not >>> change and it's a bug (and possibly compile er

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-27 Thread tedd
At 3:50 PM -0400 5/26/10, Alice Wei wrote: My bad, I cannot imagine I sent that stuff. To answer your question, here it is, Select the type of your starting point of interest: maxlength="50"/> Thi

Re: [PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
On 5/27/10 11:13 AM, Peter Lind wrote: I'm overriding the method because I want to change the *implementation*. The *interface* of it, which is documented in the docblock, should not change and it's a bug (and possibly compile error) if it does change. You cannot, for instance, change what par

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
On 27 May 2010 17:57, la...@garfieldtech.com wrote: > On 5/27/10 10:43 AM, Peter Lind wrote: > >> You're overriding the function. IDEs should *not* show the parent >> documentation, because the parent function does *not* get called. It >> only gets called if you do a specific parent::hello($a, $b)

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 12:08 -0400, Adam Richardson wrote: > On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp > wrote: > > > Thanks, but are you sure of that? I did some research a while ago and found > > that officially PHP files should be ascii and not have any specific > > character encoding. I

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp wrote: > Thanks, but are you sure of that? I did some research a while ago and found > that officially PHP files should be ascii and not have any specific > character encoding. I believe it will work anyhow (did not try this one), > but would like to

Re: [PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
On 5/27/10 10:43 AM, Peter Lind wrote: You're overriding the function. IDEs should *not* show the parent documentation, because the parent function does *not* get called. It only gets called if you do a specific parent::hello($a, $b); *snip* So it seems like no matter what I do, someone gets

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
On 27 May 2010 17:15, la...@garfieldtech.com wrote: > Hi folks. > > OK, so here's the deal.  I am trying to figure out the "right" way to > document methods in OO code that includes method overriding in child > classes.  Simple, right?  Unfortunately, it seems the tools out there are > making this

[PHP] Method documentation

2010-05-27 Thread la...@garfieldtech.com
Hi folks. OK, so here's the deal. I am trying to figure out the "right" way to document methods in OO code that includes method overriding in child classes. Simple, right? Unfortunately, it seems the tools out there are making this much more complicated than it should be. Example: class

Re: [PHP] uploading file encoding error

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 18:03 +0300, Manolis Vlachakis wrote: > i am using gentoo > > and on the server side i cant see either the files with their greek > names > but i had no problem in the past handling them even though > i couldn't see them... > > > my servers log say that they uploaded the f

Re: [PHP] uploading file encoding error

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 17:49 +0300, Manolis Vlachakis wrote: > hallo there everyone! > i am uploading a file in a php applet i developed and i face a problem > while i upload greek named files.. > have no problem with the english or so on files... > is there a way to use iconv or something else so

[PHP] uploading file encoding error

2010-05-27 Thread Manolis Vlachakis
hallo there everyone! i am uploading a file in a php applet i developed and i face a problem while i upload greek named files.. have no problem with the english or so on files... is there a way to use iconv or something else so as to solve my problem ? my code looks like that... $uploaddir = $_SE

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Ashley Sheridan
On Thu, 2010-05-27 at 21:45 +0800, Guus Ellenkamp wrote: > Thanks, but are you sure of that? I did some research a while ago and found > that officially PHP files should be ascii and not have any specific > character encoding. I believe it will work anyhow (did not try this one), > but would li

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Guus Ellenkamp
Thanks, but are you sure of that? I did some research a while ago and found that officially PHP files should be ascii and not have any specific character encoding. I believe it will work anyhow (did not try this one), but would like to stick with the standards. "Ashley Sheridan" wrote in messa

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Andre Polykanine
Hello Guus, Actually, we are using the same method here on http://oire.org/. We have all of the language files in UTF8 format and everything seems to be OK. Yes, unicode support in PHp laisse à désirer, like the French say, but it does support UTF8 files. -- With best regards from Ukraine, Andre

RE: Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Ford, Mike
> -Original Message- > From: Andre Polykanine [mailto:an...@oire.org] > Sent: 27 May 2010 09:14 > To: Adam Richardson > Cc: php-general@lists.php.net > Subject: Re[2]: [PHP] One more time about regexes > > Hello Adam, > > You did understand me exactly and perfectly). > Ordering arrays i

Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Andre Polykanine
Hello Adam, You did understand me exactly and perfectly). Ordering arrays is a good idea but I don't know how to do that exactly. For instance, there's a cypher called Polybius square. You write in the alphabet in a grid like this: 1 a b c d e 2 f g h i j 3 k l m n o 4 p q r s t 5 u v w x y 6 z T

Re: [PHP] getaddrinfo() - what is the equivalent php function?

2010-05-27 Thread Per Jessen
Per Jessen wrote: > AFAICT, gethostbyname() only works for ipv4 addresses, so that one is > out - dns_get_record seems to be really for dns only, i.e. it does not > look at /etc/hosts. Is there a hph function that essentially just > calls getaddrinfo() ? > Wow, lots of answers to that one. Le