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

2008-04-16 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 1000

Re: [PHP] PHP with NNTP?

2008-04-16 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ürich --

Re: [PHP] PHP with NNTP?

2008-04-16 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:

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

2008-04-16 Thread Larry Garfield
On Wednesday 16 April 2008, Daevid Vincent wrote: -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

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Crayon Shin Chan
On Wednesday 16 April 2008, vester_s wrote: Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? NNTP has no concept of users. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Georgios Kasapoglou
Hi all, I'm new to the list. I'm running on Apache 2 and I want to use the mod_auth_basic module, which authenticates the user. But I need the username to use it in my php script. How can I? Is there any php command or variable that keeps this info? I searched my browser whether a cookie is

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Dave M G wrote: I contacted my web host provider, and they recommended increasing the allowed allocation limit in /etc/php.ini. Right now my allocation limit, assuming I'm looking at the right setting is 8 megabytes: memory_limit = 8M ; Maximum amount of memory a script may consume

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Per Jessen
Georgios Kasapoglou wrote: Hi all, I'm new to the list. I'm running on Apache 2 and I want to use the mod_auth_basic module, which authenticates the user. But I need the username to use it in my php script. How can I? $_SERVER[] might have it. /Per Jessen, Zürich -- PHP General Mailing

[PHP] Re: How to get the HTTP authenticated user name?

2008-04-16 Thread Georgios Kasapoglou
Ok, $_SERVER[REMOTE_USER] is the answer. Thanks anyway. Georgios Georgios Kasapoglou wrote: Hi all, I'm new to the list. I'm running on Apache 2 and I want to use the mod_auth_basic module, which authenticates the user. But I need the username to use it in my php script. How can I? Is there

[PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Dave M G
PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240. I've found that these days, it's not uncommon for people to take images straight off their digital camera, which can be 3000X2000 pixels in image size, even if

[PHP] PHP Serialization Performance

2008-04-16 Thread Waynn Lue
I'm using PHP to cache files that are backed by the database. In the course of writing these functions, I end up with a set of variables that are needed by my application, returned in an array. I can either directly generate the array in a .php file, then use require_once to get that variable,

Re: [PHP] PHP Serialization Performance

2008-04-16 Thread Richard Heyes
I'm using PHP to cache files that are backed by the database. In the course of writing these functions, I end up with a set of variables that are needed by my application, returned in an array. I can either directly generate the array in a .php file, then use require_once to get that variable,

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

2008-04-16 Thread Tony Marston
The term abstract has been adequately defined in this thread, so I won't repeat it. However, there is one important aspect of the term interface which I think that most people seem to miss - it is not necessary to use the term interface in order to have an interface. Let me explain with a code

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

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 12:20 +0100, Tony Marston wrote: The term abstract has been adequately defined in this thread, so I won't repeat it. However, there is one important aspect of the term interface which I think that most people seem to miss - it is not necessary to use the term

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

2008-04-16 Thread Tony Marston
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 2008-04-16 at 12:20 +0100, Tony Marston wrote: The term abstract has been adequately defined in this thread, so I won't repeat it. However, there is one important aspect of the term interface which I

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread tedd
At 6:48 PM +0900 4/16/08, Dave M G wrote: PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240. I've found that these days, it's not uncommon for people to take images straight off their digital camera, which can be

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

2008-04-16 Thread Jay Blanchard
[snip] enforcing a contract is a lot of maningless gobbledegook. The simple fact is that it is possible to have an interface without ever using the term interface. Nothing extra is added by using the term interface (except for effort) so there is absolutely no advantage in doing so. That is why

RES: [PHP] PHP Speech

2008-04-16 Thread Thiago Pojda
{Top Posting} I don't know if I'm just lazy or stupid (or both). I went into a similar issue few weeks ago and my solution was to add a function to delete files created in the last X hours (mine was 24), and call it on the same script that creates the files. Which means it tries to clean up old

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:48 AM, Dave M G [EMAIL PROTECTED] wrote: PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240. [snip!] So sometimes I've seen an error in my logs that says: Fatal error: Allowed memory

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 7:56 AM, tedd [EMAIL PROTECTED] wrote: At 6:48 PM +0900 4/16/08, Dave M G wrote: PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240. I've found that these days, it's not uncommon for

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 6:07 AM, Per Jessen [EMAIL PROTECTED] wrote: Actually, I have no idea what the potential dangers are. Using up all available memory is the only real risk. It might lead to swapping which in turn will most likely increase response times. And on a shared host,

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 7:56 AM, tedd [EMAIL PROTECTED] wrote: At 6:48 PM +0900 4/16/08, Dave M G wrote: PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240. I've found that these days, it's not uncommon for

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda [EMAIL PROTECTED] wrote: I don't know if I'm just lazy or stupid (or both). Stupid, definitely not. Lazy well, maybe. ;-P I went into a similar issue few weeks ago and my solution was to add a function to delete files created in the

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:37 AM, Thiago Pojda [EMAIL PROTECTED] wrote: {Top Posting} I don't know if I'm just lazy or stupid (or both). I went into a similar issue few weeks ago and my solution was to add a function to delete files created in the last X hours (mine was 24), and call it

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 6:07 AM, Per Jessen [EMAIL PROTECTED] wrote: Actually, I have no idea what the potential dangers are. Using up all available memory is the only real risk. It might lead to swapping which in turn will most likely increase response times.

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:59 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: well since i dont have your service dan, im filling in blanks over here; but, do users get to determine the name of the files that get created by this script, or at least rename them; that could be very beneficial.

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race conditions if two users try to create a file at the same time and each user's script tries to clean the same files at the same time? With output

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:57 AM, Per Jessen [EMAIL PROTECTED] wrote: Daniel Brown wrote: And on a shared host, the likelihood of increased billing for overuse of memory. Except a shared hoster would probably not permit anyone to change php.ini :-) I do. A lot of them do.

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:12 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:13 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown [EMAIL PROTECTED] wrote: You are the weakest link. Goodbye! have your bitter posting days started early ? :P No, but that annoying woman's face and voice popped

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:14 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 10:13 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown [EMAIL PROTECTED] wrote: You are the weakest link. Goodbye! have your bitter posting days

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:14 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: sure, why not; but ill not let you lure me into a full hosting deal. ive got my own systems, atm. Congratulations! I'm not trying to sell you on anything, just thought you might like to have more of an idea as

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 10:10 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 9:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race conditions if two users try to create a file at the same time and each

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:13 AM, Andrew Ballard [EMAIL PROTECTED] wrote: It's a start, but what about a user who never returns? You still want some way to clean out those old files, and I think that's the approach Thiago was presenting by purging all files older than X days/hours/minutes.

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race conditions if two users try to create a file at the same time and each

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 9:56 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: it sounds like thats what theyre talking about doing... [snip!] that way, you could get rid of them almost as quickly as they are created; you wont be overwriting any files for different users, and you have the garuantee

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread tedd
At 9:41 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 7:56 AM, tedd [EMAIL PROTECTED] wrote: At 6:48 PM +0900 4/16/08, Dave M G wrote: PHP list, I have a PHP script that resizes an image. It takes just about whatever size and shrinks and crops it down to 320X240.

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race conditions if two users try to create a file at the same time and each user's

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard [EMAIL PROTECTED] wrote: In addition to the added time, aren't there any problems with race conditions if two users try to create a file at the same time and each user's script tries to clean the same files at the same time? ergo, the need to

Re: [PHP] PHP Speech

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 9:53 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda [EMAIL PROTECTED] wrote: I don't know if I'm just lazy or stupid (or both). Stupid, definitely not. Lazy well, maybe. ;-P I went into a similar issue few

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:53 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda [EMAIL PROTECTED] wrote: I don't know if I'm just lazy or stupid (or both). Stupid, definitely not. Lazy well, maybe. ;-P I went into a similar issue few

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 9:59 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: well since i dont have your service dan, im filling in blanks over here; but, do users get to determine the name of the files that get created by

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:02 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 9:56 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: it sounds like thats what theyre talking about doing... [snip!] that way, you could get rid of them almost as quickly as they are created;

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 9:57 AM, Per Jessen [EMAIL PROTECTED] wrote: Daniel Brown wrote: And on a shared host, the likelihood of increased billing for overuse of memory. Except a shared hoster would probably not permit anyone to change php.ini :-) I

[PHP] Database abstraction?

2008-04-16 Thread Jason Pruim
Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! Here's my question... I have a program, where I

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard [EMAIL PROTECTED] wrote: What was the name of your company again? blindeyehosting.com? ;-) No, we had to change the name, so we went with a more obscure reference: piratepatchhosting.name. ;-P -- /Daniel P. Brown Ask me about: Dedicated

Re: [PHP] Database abstraction?

2008-04-16 Thread David Giragosian
On 4/16/08, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years!

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the years! I would prefer hard (or soft) cash... :-) Here's my question... I

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:46 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard [EMAIL PROTECTED] wrote: What was the name of your company again? blindeyehosting.com? ;-) No, we had to change the name, so we went with a more obscure

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 9:59 AM, tedd [EMAIL PROTECTED] wrote: At 9:41 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 7:56 AM, tedd [EMAIL PROTECTED] wrote: At 6:48 PM +0900 4/16/08, Dave M G wrote: PHP list, I have a PHP script that resizes an image.

Re: [PHP] PHP Speech

2008-04-16 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard [EMAIL PROTECTED] wrote: What was the name of your company again? blindeyehosting.com? ;-) No, we had to change the name, so we went with a more obscure reference: piratepatchhosting.name.

Re: [PHP] PHP Speech

2008-04-16 Thread Wolf
Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 8:46 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard [EMAIL PROTECTED] wrote: What was the name of your company again? blindeyehosting.com? ;-) No, we had to

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:36 AM, Per Jessen [EMAIL PROTECTED] wrote: I'm curious - why? To me php.ini seems to be exactly the kind of thing you wouldn't the user to fiddle with - in a shared environment. To allow flexibility for the user, and give them the opportunity to customize the

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:37 AM, Georgios Kasapoglou [EMAIL PROTECTED] wrote: Hi all, I'm new to the list. I'm running on Apache 2 and I want to use the mod_auth_basic module, which authenticates the user. But I need the username to use it in my php script. How can I? Is there any php

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:15 AM, Richard Heyes [EMAIL PROTECTED] wrote: off-subject (yes total thread robbery here [more of a side note really]). i saw a reference to some of your work in the Solar framework richard, for clearing out the 'environment' or rather the superglobal arrays.

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Georgios Kasapoglou
Thanks Daniel, I found it in $_SERVER[REMOTE_USER] but $_SERVER[PHP_AUTH_USER] (which you propose) gives me the same information. Regards, Georgios Daniel Brown wrote: On Wed, Apr 16, 2008 at 5:37 AM, Georgios Kasapoglou [EMAIL PROTECTED] wrote: Hi all, I'm new to the list. I'm

Re: [PHP] PHP Speech

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 10:58 AM, Wolf [EMAIL PROTECTED] wrote: Nathan Nobbe [EMAIL PROTECTED] wrote: ive always been partial to brokensoftware.com, but someones actually beaten me to it :O brokensoftware.com redirects me to microsoft.com How cool is that!! And they

Re: [PHP] Database abstraction?

2008-04-16 Thread Larry Garfield
On Wed, 16 Apr 2008 10:43:15 -0400, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
off-subject (yes total thread robbery here [more of a side note really]). i saw a reference to some of your work in the Solar framework richard, for clearing out the 'environment' or rather the superglobal arrays. good stuff. Thanks (I think you're referring to clearing register_globals

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:55 AM, Richard Heyes [EMAIL PROTECTED] wrote: I'm back with yet another question But getting closer to sounding like I know what I'm talking about and that's all thanks to all of you. A free beer (Or beverage of choice)* for everyone who has helped me over the

Re: [PHP] Database abstraction?

2008-04-16 Thread Steve Holmes
Assuming a recent release of MySQL: open the schema information_schema then select TABLE_NAME, COLUMN_NAME from COLUMNS where TABLE_NAME = '$table'; Steve On Wed, Apr 16, 2008 at 10:55 AM, Richard Heyes [EMAIL PROTECTED] wrote: I'm back with yet another question But getting closer to

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 10:36 AM, Per Jessen [EMAIL PROTECTED] wrote: I'm curious - why? To me php.ini seems to be exactly the kind of thing you wouldn't the user to fiddle with - in a shared environment. To allow flexibility for the user, and give them the

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread tedd
At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 9:59 AM, tedd [EMAIL PROTECTED] wrote: I saw one the other day that caught my eye -- will look into it. The first problem I see implementing the approach is the JavaScript sandbox. JavaScript is allowed to read the

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 11:42 AM, Per Jessen [EMAIL PROTECTED] wrote: Daniel Brown wrote: I guess it's a matter of preference - I tend to think that a shared hosting user is best restricted to whatever changes he can do in .htaccess (with php_admin_flag etc.). I allow overrides in

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

2008-04-16 Thread Jay Blanchard
[snip] What about encapsulation? Interfaces have nothing to do with encapsulation for the smple reason that I can have encapsulation without using interfaces. Also, there is an advantage to interfaces that has not been mentioned yet, the fact that a class can implement multiple interfaces

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread David Giragosian
On 4/16/08, tedd [EMAIL PROTECTED] wrote: At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 9:59 AM, tedd [EMAIL PROTECTED] wrote: I saw one the other day that caught my eye -- will look into it. The first problem I see implementing the approach is the

[PHP] Hack question

2008-04-16 Thread Al
I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is nobody. I can sort of figure what is doing; but, I can't figure out

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is nobody. I can sort of figure what is doing; but, I can't

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

2008-04-16 Thread Robin Vickery
On 16/04/2008, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] What about encapsulation? Interfaces have nothing to do with encapsulation for the smple reason that I can have encapsulation without using interfaces. Unique use of logic there. By similar reasoning; swimming trunks have

Re: [PHP] Hack question

2008-04-16 Thread Greg Bowser
I can sort of figure what is doing; but, I can't figure out what the hacker is using it for. It will allow him to upload and execute arbitrary code on your server. Generally speaking, arbitrary code execution is a bad thing. :). -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is nobody. I can sort of figure what is doing; but, I can't

Re: [PHP] Hack question

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 12:13 PM, Al [EMAIL PROTECTED] wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Andrew Ballard
On Wed, Apr 16, 2008 at 12:00 PM, David Giragosian [EMAIL PROTECTED] wrote: On 4/16/08, tedd [EMAIL PROTECTED] wrote: At 10:53 AM -0400 4/16/08, Andrew Ballard wrote: On Wed, Apr 16, 2008 at 9:59 AM, tedd [EMAIL PROTECTED] wrote: I saw one the other day that caught my eye

Re: [PHP] PHP with NNTP?

2008-04-16 Thread vester_s
Is it possible to do it without using imap? I am trying to get the list of all users that is on the newsgroup, is that possible? chris smith-9 wrote: vester_s wrote: Hi, Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups?

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:38 AM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Wednesday 16 April 2008, vester_s wrote: Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? NNTP has no concept of users. Crayon is right. Authentication

Re: [PHP] Hack question

2008-04-16 Thread Jim Lucas
Al wrote: I'm still fighting my hack problem on one of my servers. Can anyone help me figure out what's the purpose of this code. The hack places this file in numerous dirs on the site, I assume using a php script because the owner is nobody. I can sort of figure what is doing; but, I can't

Re: [PHP] Database abstraction?

2008-04-16 Thread Richard Heyes
hope ya dont mind if i borrow that one :D arm, have you seen my website...? :-) i was reading through it, and i was like; holy shit; that dudes from the list !! btw, i talked to the guy who wrote solar, when i was in dc last year. really cool fellow; but i talked his ear off :O Hope you

Re: [PHP] Forking and fsock

2008-04-16 Thread Daniel Brown
On Tue, Apr 15, 2008 at 7:16 PM, Kyle Browning [EMAIL PROTECTED] wrote: Is there a way I can get my fsock to stay open when the child process exits? Kyle Kyle, Are you trying to create a PHP daemon? What do you mean by child process is PHP launching a second script to

[PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
Is there a reverved variable that can be used to check the remote IP address of the computer hitting your web page? Javier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reserved var for checking remote IP address

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 1:57 PM, Javier Huerta [EMAIL PROTECTED] wrote: Is there a reverved variable that can be used to check the remote IP address of the computer hitting your web page? ?php $_SERVER['REMOTE_ADDR']; ? -- /Daniel P. Brown Ask me about: Dedicated servers starting @

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

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: On 16/04/2008, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] What about encapsulation? Interfaces have nothing to do with encapsulation for the smple reason that I can have encapsulation without using interfaces. Unique

Re: [PHP] PHP Unit Test - Code Coverage - Continuous Intergration?

2008-04-16 Thread Brice
Hello, I think of PHPUnit+Xdebug+PHPUndercontrol. Brice Favre On Wed, Apr 16, 2008 at 8:17 PM, Jay Paulson [EMAIL PROTECTED] wrote: Hi everyone, I¹m just not getting into unit testing and was wondering what tools are out there that will automatically run unit tests continuously and make

Re: [PHP] Reserved var for checking remote IP address

2008-04-16 Thread Javier Huerta
Daniel Brown [EMAIL PROTECTED] wrote in message Is there a reverved variable that can be used to check the remote IP address of the computer hitting your web page? ?php $_SERVER['REMOTE_ADDR']; ? Wow that was quick, thanks Daniel. Javier -- PHP General Mailing List

[PHP] PHP Unit Test - Code Coverage - Continuous Intergration?

2008-04-16 Thread Jay Paulson
Hi everyone, I¹m just not getting into unit testing and was wondering what tools are out there that will automatically run unit tests continuously and make reports if a test failed and how much/what code was tested. Currently in Java land I¹m using Hudson, ant, Junit, and Coberatura. Thanks!

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 3:38 AM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Wednesday 16 April 2008, vester_s wrote: Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? NNTP has no concept of users. Crayon is

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

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston [EMAIL PROTECTED] wrote: Robert Cummings [EMAIL PROTECTED] wrote in message While I agree that Interfaces are mostly a lot of extra code, I have to also say that they are there primarily to enforce a contract between the user of the interface

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

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston [EMAIL PROTECTED] wrote: Robert Cummings [EMAIL PROTECTED] wrote in message While I agree that Interfaces are mostly a lot of extra code, I have to also say that they are there

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

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:01 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: On 16/04/2008, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] What about encapsulation? Interfaces have nothing to do with encapsulation for the

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

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:54 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston [EMAIL PROTECTED] wrote: Robert Cummings [EMAIL PROTECTED] wrote in message While I agree that

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

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston [EMAIL PROTECTED] wrote: Robert Cummings [EMAIL PROTECTED] wrote in message While I agree that Interfaces are mostly a lot of extra code, I have to also say that they are there primarily to enforce a contract between

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

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett [EMAIL PROTECTED] wrote: This is a holy war that is never going to end. It boils down to personal and professional preferences. The fact of the matter is, if a company uses these concepts and you don't know, understand, or execute that

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 2:42 PM, Per Jessen [EMAIL PROTECTED] wrote: If required, authentication is done via NNTP. The nntp servers can be set up to require authentication for some or more groups, for instance for closed user communities. If you check your newsreader, you'll no doubt

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

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett [EMAIL PROTECTED] wrote: This is a holy war that is never going to end. It boils down to personal and professional preferences. The fact of the matter is, if a company uses these concepts and you don't know, understand,

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 2:42 PM, Per Jessen [EMAIL PROTECTED] wrote: If required, authentication is done via NNTP. The nntp servers can be set up to require authentication for some or more groups, for instance for closed user communities. If you check your

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:27 PM, Per Jessen [EMAIL PROTECTED] wrote: Well, NNTP (the protocol) certainly has a userid/password concept, and so does e.g. INN, the news-server I'm using. I'm sure INN _could_ use a PAM-module for interfacing Linux access control, but the straight forward

[PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email that gets sent to yahoo appears to come from my web host's domain! How can

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg [EMAIL PROTECTED] wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:04 PM: On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg [EMAIL PROTECTED] wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg [EMAIL PROTECTED] wrote: The entire processor.php file is: ?php $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); mail([EMAIL PROTECTED],[EMAIL PROTECTED],SUBSCRIBE,Form data: Name: .

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:56 PM: On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg [EMAIL PROTECTED] wrote: The entire processor.php file is: ?php $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); mail([EMAIL PROTECTED],[EMAIL

  1   2   >