Re: [PHP] Problem with pg_prepare function

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 9:42 PM, Giancarlo Boaron wrote: > Hi all. > > I'm receiving the following message when I try to use > pg_prepare() function: > > "Call to undefined function pg_prepare()". > > My application works very well with others pg_* > commands... > > I already checked my configurat

[PHP] Problem with pg_prepare function

2010-04-23 Thread Giancarlo Boaron
Hi all. I'm receiving the following message when I try to use pg_prepare() function: "Call to undefined function pg_prepare()". My application works very well with others pg_* commands... I already checked my configuration files and I have no more ideas about how to fix it. Any suggestions? T

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
On Fri, Apr 23, 2010 at 6:17 PM, Ashley Sheridan wrote: > I run it under Wine. Wine has come a long way since my first encounters > with it a few years back and run a surprising amount of Windows-based > software. I don't know how far its support for Flash has come, but I do > remember running a v

RE: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 11:12 -0700, Tommy Pham wrote: > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Friday, April 23, 2010 11:04 AM > > To: Dan Joseph > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] Re: replying to list (I give up) >

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
On Fri, Apr 23, 2010 at 2:12 PM, Tommy Pham wrote: > > As a desktop system, it's my personal choice. Both KDE 4 and Gnome 3 > > (released in Sept 2010) offer better flashiness than Windows 7 and > > arguably better than the latest Mac OSX too, and the tools are as stable > > as anything I've eve

RE: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Tommy Pham
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Friday, April 23, 2010 11:04 AM > To: Dan Joseph > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: replying to list (I give up) > > On Fri, 2010-04-23 at 13:57 -0400, Dan Joseph wrote: > > > On

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 13:57 -0400, Dan Joseph wrote: > On Fri, Apr 23, 2010 at 1:51 PM, Adam Richardson wrote: > > > Contrary to my experiences a few years ago, there is no real loser > > anymore, > > they all are very nice and have their advantages. > > > > Well, I still believe that Linux is

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
On Fri, Apr 23, 2010 at 1:51 PM, Adam Richardson wrote: > Contrary to my experiences a few years ago, there is no real loser > anymore, > they all are very nice and have their advantages. > Well, I still believe that Linux is the better suitor for a server, but some companies don't. So you real

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 1:34 PM, Daniel Brown wrote: > On Fri, Apr 23, 2010 at 13:20, Ashley Sheridan > wrote: > > > > I have heard good things about Windows 7, but I've not used it myself > > yet (and don't really plan to) > > Wise. > >[Sent from a Win7 PC.] > > -- > > daniel.br...@par

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Daniel Brown
On Fri, Apr 23, 2010 at 13:20, Ashley Sheridan wrote: > > I have heard good things about Windows 7, but I've not used it myself > yet (and don't really plan to) Wise. [Sent from a Win7 PC.] -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotp

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 13:24 -0400, tedd wrote: > At 5:06 PM +0100 4/23/10, Ashley Sheridan wrote: > >On Fri, 2010-04-23 at 09:16 -0500, Kevin Kinsey wrote: > > > >> I've still got a Win98 box in service somewhere > > > > > >My commiserations to you, I used that for a couple of years. > > > >I sup

Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 19:03 +0200, Peter Lind wrote: > On 23 April 2010 18:26, Ashley Sheridan wrote: > > > > On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > > > > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > > I

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread tedd
At 5:06 PM +0100 4/23/10, Ashley Sheridan wrote: On Fri, 2010-04-23 at 09:16 -0500, Kevin Kinsey wrote: I've still got a Win98 box in service somewhere My commiserations to you, I used that for a couple of years. I suppose it could be worse though. It might have been WinME or Vista. Thank

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:26, Ashley Sheridan wrote: > > On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > I think for now I'll just resort to leaving it as a public variable. > >

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:36 PM, David Murphy wrote: > GRR I hate outlook veruses Trillian > > > > > Personally I would make > > > > Author: > Id|Name|Bio > > Article: > Id,title,desc,authordata > > > So then I can do things like > > Select Articles.Title, article.Description,(select GROUP_CONCAT

RE: [PHP] Remote Key Question

2010-04-23 Thread David Murphy
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, April 23, 2010 11:16 AM To: tedd Cc: PHP eMail List Subject: Re: [PHP] Remote Key Question On Fri, 2010-04-23 at 12:03 -0400, tedd wrote: > Hi gang: > > A few times I've found myself confronted with

RE: [PHP] Remote Key Question

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 11:36 -0500, David Murphy wrote: > GRR I hate outlook veruses Trillian One's an email client and one's a messenger client, I don't get where your vs problems are? :p Thanks, Ash http://www.ashleysheridan.co.uk

RE: [PHP] Remote Key Question

2010-04-23 Thread David Murphy
GRR I hate outlook veruses Trillian Personally I would make Author: Id|Name|Bio Article: Id,title,desc,authordata So then I can do things like Select Articles.Title, article.Description,(select GROUP_CONCAT(Name) from authors where authors.ID IN Articles.AuthorData) as Authors from Artic

Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > I think for now I'll just resort to leaving it as a public variable. > > > I'll leave the specific set function for it in an

RE: [PHP] Remote Key Question

2010-04-23 Thread David Murphy
Personally I would make -Original Message- From: Adam Richardson [mailto:simples...@gmail.com] Sent: Friday, April 23, 2010 11:09 AM To: tedd Cc: PHP eMail List Subject: Re: [PHP] Remote Key Question On Fri, Apr 23, 2010 at 12:03 PM, tedd wrote: > Hi gang: > > A few times I've found my

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > On 23 April 2010 18:10, Ashley Sheridan wrote: > > I think for now I'll just resort to leaving it as a public variable. > > I'll leave the specific set function for it in and just hope that is > > used instead! As it's only me who'll be using

Re: [PHP] Remote Key Question

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 12:03 -0400, tedd wrote: > Hi gang: > > A few times I've found myself confronted with a problem that might be > better solved than the way I currently solve it. I would like your > opinions/solutions as to how you might solve this. > > Here's the given (as an article/autho

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:10, Ashley Sheridan wrote: > I think for now I'll just resort to leaving it as a public variable. > I'll leave the specific set function for it in and just hope that is > used instead! As it's only me who'll be using it for the time being, I > can always yell at myself later if

Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 11:57 -0400, Adam Richardson wrote: > On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling > wrote: > > > On 23 April 2010 10:55, Ashley Sheridan wrote: > > > I know the subject line might sound a bit like an oxymoron, but bear > > > with me! > > > > > > What I'd like to have

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 09:16 -0500, Kevin Kinsey wrote: > I've still got a Win98 box in service somewhere My commiserations to you, I used that for a couple of years. I suppose it could be worse though. It might have been WinME or Vista. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:03 PM, tedd wrote: > Hi gang: > > A few times I've found myself confronted with a problem that might be > better solved than the way I currently solve it. I would like your > opinions/solutions as to how you might solve this. > > Here's the given (as an article/author e

[PHP] Remote Key Question

2010-04-23 Thread tedd
Hi gang: A few times I've found myself confronted with a problem that might be better solved than the way I currently solve it. I would like your opinions/solutions as to how you might solve this. Here's the given (as an article/author example). I want to create a list of articles in a datab

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling wrote: > On 23 April 2010 10:55, Ashley Sheridan wrote: > > I know the subject line might sound a bit like an oxymoron, but bear > > with me! > > > > What I'd like to have is a property of an object that behaves like a > > public variable when it

Re: [PHP] creating a PHP wrapper script?

2010-04-23 Thread Peter Lind
php.net/curl should be able to do what you want. file_get_contents with a proper stream context should also work (have a look at functions like http://dk.php.net/manual/en/context.http.php ) Regards Peter On 23 April 2010 17:18, Robert P. J. Day wrote: > >  i'm sure this isn't hard to do, but i

[PHP] creating a PHP wrapper script?

2010-04-23 Thread Robert P. J. Day
i'm sure this isn't hard to do, but i'm having end-of-week brain cramps. just now, i installed a PHP package that lets me download thumbnails of image files stored on a server -- the URL to generate and download a thumbnail is, say: http://server/d1/d2/thumbnail.php?fileID=whatever&arg1=val1&a

Re: [PHP] Re: Getting Array to Display

2010-04-23 Thread Gary
D32 Antivirus, version of virus >> > signature database 5048 (20100421) __ >> > >> > The message was checked by ESET NOD32 Antivirus. >> > >> > http://www.eset.com >> > >> > >> > >> >> >> _

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
Supply a value and an optional maximum group size. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Math Question....

2010-04-23 Thread tedd
At 10:17 AM -0400 4/22/10, Dan Joseph wrote: On Thu, Apr 22, 2010 at 10:12 AM, Stephen wrote: 1,252,398 DIV 30 = 41,746 groups of 30. 1,252,398 MOD 30 = 18 items in last group Well, the only problem with going that route, is the one group is not equally sized to the others. 18 is ok for

Re: [PHP] escape \n

2010-04-23 Thread Lupus Michaelis
Le 23/04/2010 10:05, Ashley Sheridan a écrit : By default, PHP sends out HTML headers. Browsers ignore extraneous white-space characters, and also new lines, carriage returns and tabs, converting them all to a single space character. For completeness, the white-space discarding depends about

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Kevin Kinsey
Bobby Pejman wrote: I must say, I never heard or even thought of the idea of calling it > LookOut. Hahaha. It made me laugh for a good 10 minutes and > if that term is open source, I will be using it ;) I've still got a Win98 box in service somewhere around here; I use it for audio recording.

Re: [PHP] Structured PHP studying

2010-04-23 Thread Paul M Foster
On Fri, Apr 23, 2010 at 07:15:11AM -0400, David McGlone wrote: > Is there a good strategy to studying PHP? > > For instance, is there a way to break everything down into small managable > topics? Obviously, a good book will help. I'd recommend O'Reilly's "Programming PHP". Some of this also depe

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
On 23 April 2010 13:33, Dotan Cohen wrote: > What is wrong with 626,299 groups of 2 items each (done in my head, so > I might be off a little)? 2, 3, 6, 7, 14 and 21 are all valid. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchang

Re: [PHP] Math Question....

2010-04-23 Thread Dotan Cohen
On 22 April 2010 17:07, Dan Joseph wrote: > Howdy, > > This is a math question, but I'm doing the code in PHP, and have expunged > all resources... hoping someone can guide me here.  For some reason, I can't > figure this out. > > I want to take a group of items, and divide them into equal groups

Re: [PHP] escape \n

2010-04-23 Thread Jan G.B.
You can also just send out the correct Header for plain text. But your HTMl will not be interpreted then.. So this makes only sense if you actually want plain text as the output format. header("Content-type: text/plain; charset=utf8"); echo "foo\nbar"; Regards 2010/4/23 Nick Balestra : > Thanks

[PHP] htmlentitites ENT_QUOTES in HTML attributes?

2010-04-23 Thread Jan G.B.
Hi List, I just figured, that the Browsers on my system do interpret ' inside href or onclick attribute as a plain '. Imagine the user input is the following line: param2" foo';);alert(document.cookie);alert(' Which is being written by the script like that: test USER_INPUT is sent through htm

Re: [PHP] Structured PHP studying

2010-04-23 Thread Jay Ess
David McGlone wrote: Is there a good strategy to studying PHP? For instance, is there a way to break everything down into small managable topics? My way of learning a new language is to decide on a small project to code and then learn just that i need to do for that exact feature i imple

Re: [PHP] Structured PHP studying

2010-04-23 Thread Michiel Sikma
On 23 April 2010 13:15, David McGlone wrote: > Is there a good strategy to studying PHP? > > For instance, is there a way to break everything down into small managable > topics? > > -- > Blessings, > David M. > > Just build what you want to build and look things up when necessary. The biggest par

Re: [PHP] Structured PHP studying

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 07:15 -0400, David McGlone wrote: > Is there a good strategy to studying PHP? > > For instance, is there a way to break everything down into small managable > topics? > > -- > Blessings, > David M. > > I started the way I guess most people did: from a basic book whic

Re: [PHP] Structured PHP studying

2010-04-23 Thread Peter Lind
On 23 April 2010 13:15, David McGlone wrote: > Is there a good strategy to studying PHP? > > For instance, is there a way to break everything down into small managable > topics? The Zend study guide might be a place to start - not for free thought, so there may be better options (it's also direct

[PHP] Structured PHP studying

2010-04-23 Thread David McGlone
Is there a good strategy to studying PHP? For instance, is there a way to break everything down into small managable topics? -- Blessings, David M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] public readonly variables

2010-04-23 Thread Richard Quadling
On 23 April 2010 10:55, Ashley Sheridan wrote: > I know the subject line might sound a bit like an oxymoron, but bear > with me! > > What I'd like to have is a property of an object that behaves like a > public variable when it comes to reading, but like a protected one when > it comes to writing,

[PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
I know the subject line might sound a bit like an oxymoron, but bear with me! What I'd like to have is a property of an object that behaves like a public variable when it comes to reading, but like a protected one when it comes to writing, as it would make my code a lot easier to read. I know abo

Re: [PHP] Updating cli executable on MS-Windows

2010-04-23 Thread Richard Quadling
On 23 April 2010 02:34, Bob McConnell wrote: > From: Richard Quadling >> On 22 April 2010 14:42, Bob McConnell wrote: >>> I downloaded the MS-Windows cli from The PHP Group a while ago. It >>> claims to be version 5.2.10. But now I can't find where I got it, nor >>> where to get the updates. What

Re: [PHP] Updating cli executable on MS-Windows

2010-04-23 Thread Richard Quadling
On 23 April 2010 02:34, Bob McConnell wrote: > From: Richard Quadling >> On 22 April 2010 14:42, Bob McConnell wrote: >>> I downloaded the MS-Windows cli from The PHP Group a while ago. It >>> claims to be version 5.2.10. But now I can't find where I got it, nor >>> where to get the updates. What

Re: [PHP] Math Question....

2010-04-23 Thread Richard Quadling
On 22 April 2010 17:47, Developer Team wrote: > Awesome source. > Thanks > > On 4/22/10, Richard Quadling wrote: >> On 22 April 2010 14:48, Dan Joseph wrote: >>> On Thu, Apr 22, 2010 at 10:29 AM, Richard Quadling >>> >>> wrote: >>>  > > It sounds like you are looking for factors.

[PHP] PHP can't find OCI.dll

2010-04-23 Thread Darren Karstens
Hi, I have just installed PHP and Oracle 11.2 on a new server but I get an error message when I try to run php from the command line saying "This application has failed to start because OCI.dll was not found". I have checked that the ORACLE_HOME environment variable is set correctly and have includ

Re: [PHP] escape \n

2010-04-23 Thread Nick Balestra
Thanks everybody! On Apr 23, 2010, at 10:05 AM, Ashley Sheridan wrote: > On Fri, 2010-04-23 at 09:51 +0200, Nick Balestra wrote: >> >> Hello guys i am trying to figure out what is worng with thoose special >> escaped character, like \n \t \r ... >> >> As i cannot make them working. The browser

Re: [PHP] escape \n

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 09:51 +0200, Nick Balestra wrote: > Hello guys i am trying to figure out what is worng with thoose special > escaped character, like \n \t \r ... > > As i cannot make them working. The browser doesn't display them, but doesn't > eithr crate a new line, or else. > I am usin

[PHP] escape \n

2010-04-23 Thread Nick Balestra
Hello guys i am trying to figure out what is worng with thoose special escaped character, like \n \t \r ... As i cannot make them working. The browser doesn't display them, but doesn't eithr crate a new line, or else. I am using them fro example like this: print: "this shoudl be on a line \nwhi

[PHP] Re: [PHP-INSTALL] Getting file pointer from file descriptor

2010-04-23 Thread Rasmus Lerdorf
You seem to be quite confused. First of all, a function like fdopen() which has never existed in any version of PHP, wouldn't read/write anything. In C that function will return a FILE pointer from a file descriptor. You would then use fread()/fwrite() to read and write from that FILE pointer.