Re: [PHP] PHP with NNTP?

2008-04-15 Thread Chris
vester_s wrote: Hi, Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? http://php.net/imap supports nntp. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] PHP with NNTP?

2008-04-15 Thread Per Jessen
vester_s wrote: > > Hi, > > Can anybody tell me how can php connect to NNTP to get the list of all > users in the newsgroups? > I'm not sure about getting "all the users", but you could create a connection using plain socket programming. NNTP is a pretty simple protocol. /Per Jessen, Züric

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Daevid Vincent
> -Original Message- > From: Larry Garfield [mailto:[EMAIL PROTECTED] > > If your code doesn't have an API and clear separation of > parts, then neither > abstract classes nor interfaces are useful to you. > > If you're coding anything of respectable size, vis, more than > a one-off

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Shawn McKenzie
ALarry Garfield wrote: On Tuesday 15 April 2008, Daevid Vincent wrote: I've had at least three job interviews in the past two weeks, and each one has asked me this rather "text book academic" question regarding the difference between "abstract" vs. "interface". I've been coding for nearly 20 yea

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Larry Garfield
On Tuesday 15 April 2008, Daevid Vincent wrote: > I've had at least three job interviews in the past two weeks, and each one > has asked me this rather "text book academic" question regarding the > difference between "abstract" vs. "interface". I've been coding for nearly > 20 years, and at least 1

Re: [PHP] getting funny error on working page

2008-04-15 Thread Daniel Brown
On Tue, Apr 15, 2008 at 5:24 PM, John A DAVIS <[EMAIL PROTECTED]> wrote: > > > Thanks! My guess is the production server has this set correctly and I will > follow your advice. > However, how would one do away with this error? What would I do to guarantee > an string being returned instead of a dat

Re: [PHP] PHP Speech

2008-04-15 Thread Daniel Brown
On Tue, Apr 15, 2008 at 7:04 PM, tedd <[EMAIL PROTECTED]> wrote: > > Your hosting service provides the capability to turn html text to speech, > as I've done here: [snip!] > > But, how do we delete the file? The php script is history after presenting > the page and javascript can't touch the serv

[PHP] PHP with NNTP?

2008-04-15 Thread vester_s
Hi, Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? thanks, -- View this message in context: http://www.nabble.com/PHP-with-NNTP--tp16713817p16713817.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing L

Re: [PHP] Forking and fsock

2008-04-15 Thread Jason Knight
You're trying to save an open socket connection that was gained by the fork()'d process? I don't think that would be possible, since PHP closes all the resources when the process ends. Unless there is some config option to not do that. Jason On Tue, Apr 15, 2008 at 4:16 PM, Kyle Browning <[EMAI

[PHP] Forking and fsock

2008-04-15 Thread Kyle Browning
Is there a way I can get my fsock to stay open when the child process exits? Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Speech

2008-04-15 Thread tedd
Daniel: Your hosting service provides the capability to turn html text to speech, as I've done here: http://php1.net/b/speech/ We use php to generate a sound file and then we use javascript to play it -- it all works great. But, how do we delete the file? The php script is history after p

Re: [PHP] Quarters

2008-04-15 Thread tedd
At 5:43 PM -0400 4/15/08, Wolf wrote: Dang it! You beat me to it! Hey Tedd, Make it rotate between [EMAIL PROTECTED] and [EMAIL PROTECTED] You guys make me laugh. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (htt

Re: [PHP] Most viewed?

2008-04-15 Thread tedd
At 10:41 AM -0500 4/15/08, Steve Marquez wrote: Greetings, Can any of you point me in the right direction on how to use PHP to create a most viewed or most clicked articles list? Can it be done with PHP? Thank you so much, Steve Marquez [EMAIL PROTECTED] Steve: There are a couple of ways to

Re: [PHP] getting funny error on working page

2008-04-15 Thread Andrew Ballard
On Tue, Apr 15, 2008 at 5:24 PM, John A DAVIS <[EMAIL PROTECTED]> wrote: > > > Thanks! My guess is the production server has this set correctly and I will > follow your advice. > However, how would one do away with this error? What would I do to guarantee > an string being returned instead of a dat

Re: [PHP] Quarters

2008-04-15 Thread Wolf
Dang it! You beat me to it! Hey Tedd, Make it rotate between [EMAIL PROTECTED] and [EMAIL PROTECTED] :-D Daniel Brown <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 5:17 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > It was a very interesting experience and I've always wanted to put

Re: [PHP] getting funny error on working page

2008-04-15 Thread John A DAVIS
Thanks! My guess is the production server has this set correctly and I will follow your advice. However, how would one do away with this error? What would I do to guarantee an string being returned instead of a date? What can I wrap the date() function in?      $month=substr($thisdate,0,2); 

Re: [PHP] Quarters

2008-04-15 Thread Daniel Brown
On Tue, Apr 15, 2008 at 5:17 PM, tedd <[EMAIL PROTECTED]> wrote: > > It was a very interesting experience and I've always wanted to put the game > up on my site to see what would happen. It's not for the money, but rather > the life experience. That being the case, please update the PayPal li

Re: [PHP] Quarters

2008-04-15 Thread tedd
At 8:40 PM +0200 4/15/08, Zoltán Németh wrote: tedd írta: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? that's cool, the only problem is that I lost ten times out of ten ;) maybe on the weekend I give it a deeper analysis and so I can figure out the win

Re: [PHP] getting funny error on working page

2008-04-15 Thread Daniel Brown
On Tue, Apr 15, 2008 at 5:07 PM, John A DAVIS <[EMAIL PROTECTED]> wrote: [snip!] > > Notice: A non well formed numeric value encountered in > C:\Inetpub\wwwroot\mazamaslocal\functions.php on line 15 > Oct 02 (Tue) Triple Crown Ken Searl It's an E_NOTICE. That means the issue has always exist

[PHP] getting funny error on working page

2008-04-15 Thread John A DAVIS
I've upgraded my PHP install and now I get this error in my test environment so I'm scared to load any changes up to the production website where this error doesn't exist. What is funny is the page still runs and lists all the data in correct rows, but with an error for each row right at the to

Re: [PHP] where to put a function

2008-04-15 Thread Zoltán Németh
Rick Pasotto írta: Probably been answered a thousand times; if so, just tell me where to look. I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page itself, (2) in a separate file that only that page includes

Re: [PHP] Quarters

2008-04-15 Thread Zoltán Németh
tedd írta: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? that's cool, the only problem is that I lost ten times out of ten ;) maybe on the weekend I give it a deeper analysis and so I can figure out the winning strategy - because there must be one, which

Re: [PHP] protecting php from the hersh corporation

2008-04-15 Thread Daniel Brown
Yes, by all means, you will want to protect PHP from your corporation. In fact, we all want you to do the same. No posts in four years, and then - bam! - six posts in one day on three different lists saying the same thing. A little antsy, are we? ;-P -- Ask me about: Dedicated servers

[PHP] Re: Most viewed?

2008-04-15 Thread Shawn McKenzie
Steve Marquez wrote: Greetings, Can any of you point me in the right direction on how to use PHP to create a most viewed or most clicked articles list? Can it be done with PHP? Thank you so much, Steve Marquez [EMAIL PROTECTED] Short answer, yes. The right direction would be something like

[PHP] protecting php from the hersh corporation

2008-04-15 Thread Dale Hersowitz
Hi, I would like to ensure that our php.ini is fully locked down to prevents individuals from any exploiting vulnerabilities in our site. (hershonline.com) What sites do you recommend to gather this information? Do you recommend running tools like securitymetrics.com? I ran this on our site (he

[PHP] security for hersh site

2008-04-15 Thread Dale Hersowitz
Hi, I would like to ensure that our php.ini is fully locked down to prevents individuals from any exploiting vulnerabilities in our site. (hershonline.com) What sites do you recommend to gather this information? Do you recommend running tools like securitymetrics.com? I ran this on our site (hersh

Re: [PHP] Most viewed?

2008-04-15 Thread Nathan Nobbe
On Tue, Apr 15, 2008 at 9:41 AM, Steve Marquez <[EMAIL PROTECTED]> wrote: > Greetings, > > Can any of you point me in the right direction on how to use PHP to create > a > most viewed or most clicked articles list? Can it be done with PHP? are these articles on a site youre creating? it should

[PHP] Most viewed?

2008-04-15 Thread Steve Marquez
Greetings, Can any of you point me in the right direction on how to use PHP to create a most viewed or most clicked articles list? Can it be done with PHP? Thank you so much, Steve Marquez [EMAIL PROTECTED]

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Rodrigo Reis da Rocha
Just adding one line to the topic... Interfaces are like C or C++ headers files. Them are used to another class(program in C) to call methods without care the implementation. In other hand abstract classes are (as the name says) an abstract way to use multiple specializations of the same group of c

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Jay Blanchard
[snip] ...stuff... [/snip] The practical use of an abstract class is in its ability to define criteria for classes that inherit from it. How practical would it be to define a 'truck' class with 4 wheels and then define a 'car' class with 4 wheels when we could define an abstract class that defines