Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior

RE: [PHP] Re: problem with sessions config.

2008-03-22 Thread N . Boatswain
Thanks for your answers people; but i'm still having the problem, ¿any approach to the reason?. Remember everything works fine in on-line servers, so it may not be a problem of the code, but a config. one;cheers, Nicolas. > To: php-general@lists.php.net > Date: Sat, 22 Mar 2008 13:58:15 +0530

[PHP] Re: selling gpl software?

2008-03-22 Thread Nilesh Govindrajan
Colin Guthrie wrote: Larry Garfield wrote: If the code is "work for hire" and the initial ownership is with the client/company, then there is no distribution and so you are not required to do anything. That includes if you are a full time employee of the company. OK, that's more or less my u

[PHP] Re: question about customized error

2008-03-22 Thread Nilesh Govindrajan
Sudhakar wrote: if a user by mistake types the wrong url directly in the address bar ex= www.website.com/abou.php instead of typing www.website.com/aboutus.php instead of the browser displaying File not found or a 404 error message i would like to display a customized page which will still have t

[PHP] Re: spider

2008-03-22 Thread Nilesh Govindrajan
tedd wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction for me to take? Also, is there

[PHP] Re: pulling text from a file

2008-03-22 Thread Nilesh Govindrajan
Richard Kurth wrote: I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find="Address:"; $f= strstr($f,$find); $separat="City:"; $ADDRESS = sub

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Nilesh Govindrajan
Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. W

Re: [PHP] Comparing file creating dates...

2008-03-22 Thread Al
you may need to use filemtime() and not filectime(); Jim Lucas wrote: Ryan S wrote: Hey all, Heres what i am trying to do: When someone sends a message from my site, i take their ip address and make a file with their ip address in a directory called "hash-directory", the file looks like thi

[PHP] Re: strange list behavior when replying to message on list

2008-03-22 Thread Shawn McKenzie
Mark Weaver wrote: > Hi all, > > I'm wondering if anyone else happens to be using Mozilla Thunderbird and > seeing this behavior, and also if this behavior is a feature or a bug. > > When I hit the reply button to respond to a message most of the time the > actual sender's address is the one the

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Shawn McKenzie
Mark Weaver wrote: > Andrew Ballard wrote: >> On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> >> wrote: >>> Hi all, >>> >>> I'm wondering if anyone else happens to be using Mozilla Thunderbird >>> and >>> seeing this behavior, and also if this behavior is a feature or a bug. >>>

Re: [PHP] sprintf problem... (with simplified code )

2008-03-22 Thread Richard
Here is a simplifie version of my code : I get 12.00 and 23.99 ... what should I do to get 12.00 and 24.00 ? Richard a écrit : Hello, I'm trying to write a invoice script but I have encountered a slight problem. Each product needs to be listed without tax, and at the end of the file I need

[PHP] sprintf problem...

2008-03-22 Thread Richard
Hello, I'm trying to write a invoice script but I have encountered a slight problem. Each product needs to be listed without tax, and at the end of the file I need to show the VAT. In France VAT is 19.6% So €10.03 without vat = €12.00 with vat. So I do this : $totalwithoutvat = 0; $totalwithout

[PHP] Re: Returned mail: see transcript for details

2008-03-22 Thread L-Soft list server at AudetteMedia (1.8d)
> JOIN I-WINSOFT Sorry, the I-WINSOFT list is closed. Contact the list owner ([EMAIL PROTECTED]) for more information. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Procmail Recipe to INSERT reply-to header (was: strange list behavior when replying to message on list)

2008-03-22 Thread tedd
At 2:30 PM -0400 3/22/08, Mark Weaver wrote: tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers

Re: [PHP] Comparing file creating dates...

2008-03-22 Thread Jim Lucas
Ryan S wrote: Hey all, Heres what i am trying to do: When someone sends a message from my site, i take their ip address and make a file with their ip address in a directory called "hash-directory", the file looks like this: 169.34.534.243.txt I want to make sure they cant send too many messa

Re: [PHP] Procmail Recipe to INSERT reply-to header (was: strange list behavior when replying to message on list)

2008-03-22 Thread Mark Weaver
tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd Just in case you "Do" have access to

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd That's what I've been doing as well

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread tedd
At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd -- --- http://sperling.com http://ancientstone

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Andrew Ballard
On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm wondering if anyone else happens to be using Mozilla Thunderbird and > seeing this behavior, and also if this behavior is a feature or a bug. > > When I hit the reply button to respond to a message most of

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: The list admin, if uses a program called ezlm (or something similar), it adds the List-Id or the Newsgroups header which also helps. They must have it. hmmm... I wonder if Sylpheed for Windows will handle this? I'll have to take a look. -- Mark "If you have fo

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Brandon Orther wrote: I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Ort

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Nilesh Govindrajan
Brandon Orther wrote: I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Ort

RE: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Brandon Orther
I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Orther -Original Mess

[PHP] Comparing file creating dates...

2008-03-22 Thread Ryan S
Hey all, Heres what i am trying to do: When someone sends a message from my site, i take their ip address and make a file with their ip address in a directory called "hash-directory", the file looks like this: 169.34.534.243.txt I want to make sure they cant send too many messages because of t

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. Why in the bloody hell doesn't the list admin simply "add" t

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Nilesh Govindrajan
Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm won

RE: [PHP] best method for relative linking in php

2008-03-22 Thread Brandon Orther
Hello Sudhakar, I have added #firstError to the end of my script url and then if I have an error, I add that anchor to the first error on the page. This way I don't have to use any javascript to leap the person forward to the first error. I think this is what you are doing with your first method

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Greg Bowser
Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm wondering if anyone

[PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the time the actual sender's address is the one the message is being sent to rath

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Al wrote: Seems like this does what you are attempting. if(DEBUG_MODE) // TRUE for debug only { ini_set("display_errors", "on"); //use off if users will see them error_reporting(E_ALL); echo 'Error display and logging on '; } If I understand this correctly this "if" statement di

[PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Al
Seems like this does what you are attempting. if(DEBUG_MODE) // TRUE for debug only { ini_set("display_errors", "on"); //use off if users will see them error_reporting(E_ALL); echo 'Error display and logging on '; } Mark Weaver wrote: Hi all, I've been lurking and reading now fo

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Al wrote: int file_put_contents ( string $filename, mixed $data [, int $flags [, resource $context]] ) This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a file. This native function does it for you Very nice! I wasn't aware of this one. Tha

Re: [PHP] Re: fwrite/fclose troubles

2008-03-22 Thread Mark Weaver
Dave Goodchild wrote: Why are you writing a logging class? Why not use error_log and enable error logging? two reasons actually, 1. learning OOP for PHP, so the more I practice at it the better I get. 2. the logging that's being done with this class is done primarily for debugging during th

Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread tedd
At 7:21 AM + 3/22/08, Lester Caine wrote: tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple

Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread tedd
At 4:23 PM -0700 3/21/08, Jim Lucas wrote: It would require a little JS, but you could use the onUnload feature and pop up a warning that would tell them the problem(s) of leaving this page. Then use the confirm() method from JS to either allow or deny them to leave the current page. I don't

[PHP] best method for relative linking in php

2008-03-22 Thread Sudhakar
i have a registration page where a user fills a form and i display an error message if a validation message needs to be displayed which i have written in php. everything works fine. the way the form is made presently is there is a huge amount of information relating to general information about the

Re: [PHP] relative linking in php

2008-03-22 Thread Nitsan Bin-Nun
Oops, I didnt post it to the list, copy is attached. On 22/03/2008, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > > Hi Sudhakar, > There are 2 solutions, > You can change the tag to something like: > > > > *#errorsArea*" > > method="POST" id="test2" > > name="registrationform"> > > > Then add the f

[PHP] Memory Leaks

2008-03-22 Thread Nilesh Govindrajan
I am having 2 memory leaks while calling phpinfo() via FastCGI (lighttpd) when session.auto_start is 1. Otherwise there is no memory leak. Here are the two memory leaks - [Sat Mar 22 14:07:49 2008] Script: '/var/www/lighttpd/test.php' /root/php-5.2.5/ext/standard/url_scanner_ex.c(305) : Free

[PHP] Re: problem with sessions config.

2008-03-22 Thread Nilesh Govindrajan
N . Boatswain wrote: Hello guys; i'm having a problem with session behavior; i'm going straight to it, but first some considerations: PHP Version 5.2.5IIF 5.1Running on localhost (XP machine)I start sessions at the top of every page. A the start of a test page, just as example, i do the assig

Re: [PHP] Double click problem [SOLVED]

2008-03-22 Thread Lester Caine
tedd wrote: Hi gang: This is probably trivial for most of you, but here's my solution to the problem I presented earlier. The problem was, I just wanted to be certain that if a use clicked a button that they could only do it once. Sounds simple enough, huh? Certainly, one can use javascrip