[PHP] What would cause this?

2006-06-01 Thread tedd
Hi gang: I have a question regarding php and security. My apologies beforehand if this is common knowledge to everyone except me. I have a php application sitting at root level on one of my servers who's sole function is to send me an email whenever it's run. So, whenever I reference this

Re: [PHP] What would cause this?

2006-06-01 Thread Chris
tedd wrote: Hi gang: I have a question regarding php and security. My apologies beforehand if this is common knowledge to everyone except me. I have a php application sitting at root level on one of my servers who's sole function is to send me an email whenever it's run. So, whenever I

Re: [PHP] What would cause this?

2006-06-01 Thread nicolas figaro
tedd a écrit : Hi gang: Hi I have a question regarding php and security. My apologies beforehand if this is common knowledge to everyone except me. I have a php application sitting at root level on one of my servers who's sole function is to send me an email whenever it's run. So,

Re: [PHP] What would cause this?

2006-06-01 Thread Jochem Maas
nicolas figaro wrote: tedd a écrit : tedd, let us know what your logs say. but it's not a very good idea to let the script run without any control. you can be quickly flooded by mail from this script if it's called very often during the week-end. dude, what's a week-end? wait let me

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Kevin Waterson
This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word? Officially SPL is part of PHP. It provides a standard interface for

[PHP] regex problem

2006-06-01 Thread Merlin
Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a hint why the regex also is true for text

Re: [PHP] regex problem

2006-06-01 Thread Dave Goodchild
On 01/06/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me

Re: [PHP] regex problem

2006-06-01 Thread Merlin
Dave Goodchild schrieb: On 01/06/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm

RE: [PHP] regex problem

2006-06-01 Thread Dan Parry
[snip] Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a hint why the regex also is true for

Re: [PHP] regex problem

2006-06-01 Thread Robin Vickery
On 01/06/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a

Re: [PHP] regex problem

2006-06-01 Thread Merlin
Robin Vickery schrieb: On 01/06/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm

Re: [PHP] What would cause this?

2006-06-01 Thread André Medeiros
Here's what you can do: Have a timestamp of the last e-mail stored on a file. If time() - that timestamp 600 (10 minutes) then don't send the e-mail. When sending it, do this $server_array = print_r($_SERVER, true); and use the $server_array variable to obtain some info regarding the client

Re: [PHP] What would cause this?

2006-06-01 Thread tedd
At 4:56 PM +1000 6/1/06, Chris wrote: If you can, check your apache access logs and that will tell you the ip of the person who accessed that page.. will give you a starting point anyway. Thanks -- have done, see below. At 8:59 AM +0200 6/1/06, nicolas figaro wrote: However, the app isn't

[PHP] PHP Fatal error: Unable to write base address in Unknown on line 0 ?

2006-06-01 Thread Ilja Polivanovas
Hello, maybe someone know what can be the problem and how to solve it. It appears on startup of Apache, WinXP. Apache doesn't start. -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Fatal error: Unable to write base address in Unknown on line 0 ?

2006-06-01 Thread Jochem Maas
Ilja Polivanovas wrote: Hello, maybe someone know what can be the problem and how to solve it. It appears on startup of Apache, WinXP. Apache doesn't start. fron a quick google I would hazard a guess that your install is f***ed due to an earlier apache/php installation. either that or

Re: [PHP] What would cause this?

2006-06-01 Thread tedd
At 12:55 PM +0100 6/1/06, André Medeiros wrote: When sending it, do this $server_array = print_r($_SERVER, true); and use the $server_array variable to obtain some info regarding the client that's causing the requests. Thank you -- that was a most excellent idea. tedd --

[PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of the messages get to the destination. I wrote a

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread chris smith
On 6/1/06, Aaron Todd [EMAIL PROTECTED] wrote: I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of

[PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Jochem Maas
I get this sometimes, it often means I have overlooked something: Fatal error: Access to undeclared static property: AreaAgendaItem::$extraFields EVERYWHERE in php an unset var causes an E_NOTICE, but if you dare to use OO then all of a sudden the OO nuthouse runs out to put a

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
Thanks for the reply. I'll ask the ISP about throtteling next time I talk with them. I would also like to mention that I am also getting intermitent results when just sending a single email. One if the web pages I am testing is a support request form. When the form is submitted it sends an

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread tedd
At 4:01 PM +0200 6/1/06, Jochem Maas wrote: I get this sometimes, it often means I have overlooked something: Fatal error: Access to undeclared static property: AreaAgendaItem::$extraFields EVERYWHERE in php an unset var causes an E_NOTICE, but if you dare to use OO then all of a

RE: [PHP] OO purism sucks - this is a rant for anyone who is allergic to thatkind of thing...

2006-06-01 Thread Jay Blanchard
[snip] RANT [/snip] ROFLMMFAO! You have never programmed in C++ have you? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex problem

2006-06-01 Thread John Nichel
Merlin wrote: Hi there, I do work on following regex: ^(.*)_a[0-9](.*).htm$ This should be valid for test_a9393.htm, but not for 9393.htm as ther is no leading _a infront of the number. Unfortunatelly this also works for the 9393.htm file. Can somebody give me a hint why the regex also is

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Nichel
Jochem Maas wrote: I get this sometimes, it often means I have overlooked something: Fatal error: Access to undeclared static property: AreaAgendaItem::$extraFields EVERYWHERE in php an unset var causes an E_NOTICE, but if you dare to use OO then all of a sudden the OO nuthouse runs out

[PHP] HTML form

2006-06-01 Thread Martin Marques
Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the selected one, but my browser

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Meyer
John Nichel wrote: Do what I do, and don't do OO. ;) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and ignore dogma? Hmm, what a concept! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTML form

2006-06-01 Thread John Meyer
Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options. Now wat I did is make the current value be the

Re: [PHP] HTML form

2006-06-01 Thread Dave Goodchild
On 01/06/06, John Meyer [EMAIL PROTECTED] wrote: Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and modify data through an HTML form. When I modify the options, some are in text, others in textarea, and some are in select options.

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Nichel
John Meyer wrote: John Nichel wrote: Do what I do, and don't do OO. ;) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and ignore dogma? Hmm, what a concept! Actually, the company I work for operates multiple sites which all

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Robert Cummings
On Thu, 2006-06-01 at 15:01, John Meyer wrote: John Nichel wrote: Do what I do, and don't do OO. ;) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and ignore dogma? Hmm, what a concept! Other than basic inheritance and the

[PHP] Solved (Re: [PHP] HTML form)

2006-06-01 Thread Martin Marques
On Thu, 01 Jun 2006 13:06:24 -0600, John Meyer [EMAIL PROTECTED] wrote: Martin Marques wrote: doesn't seem to get it right. Here is the HTML output: SELECT name=cargo OPTION value=8Profesor titular/OPTION OPTION value=7Profesor asociado/OPTION OPTION value=6Profesor adjunto/OPTION

[PHP] Checkbox Hidden Field to Delete Row

2006-06-01 Thread Rahul S. Johari
Ave, I¹m stuck on a problem here. I have a file manager kind of application and I¹m trying to add the functionality to delete multiple files. Basically, there¹s a bunch of rows generated dynamically. Each row has a checkbox for ³Delete² option, and a hidden field which contains the name of the

Re: [PHP] Checkbox Hidden Field to Delete Row

2006-06-01 Thread Ray Hauge
On Thursday 01 June 2006 12:58, Rahul S. Johari wrote: Ave, I¹m stuck on a problem here. I have a file manager kind of application and I¹m trying to add the functionality to delete multiple files. Basically, there¹s a bunch of rows generated dynamically. Each row has a checkbox for

Re: [PHP] Checkbox Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Rahul S. Johari
Ave, I spent 3 hours trying to find or develop a solution for this problem... And believe it or not, within 3 minutes of sending the problem to the mailing list, I actually generated a solution!! Ray, you’re spot on with what’s actually happening, but this is what I did to resolve it... Here’s

Re: [PHP] Checkbox Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Ray Hauge
On Thursday 01 June 2006 13:15, Rahul S. Johari wrote: Ave, I spent 3 hours trying to find or develop a solution for this problem... And believe it or not, within 3 minutes of sending the problem to the mailing list, I actually generated a solution!! Ray, you’re spot on with what’s actually

Re: [PHP] HTML form

2006-06-01 Thread Richard Lynch
If you have already visited the page, and chosen another option, Firefox remembers your choice for you. Quit Firefox and start over, and it should work On Thu, June 1, 2006 1:53 pm, Martin Marques wrote: Sorry for the OT, but this is PHP output anyway :-) I have a bunch of code to input and

Re: [PHP] Checkbox Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Rahul S. Johari
Ray, Interestingly, I don't' allow special characters in File Names for files being uploaded to the File Manager. So that problem won't occur. Thanks. On 6/1/06 4:23 PM, Ray Hauge [EMAIL PROTECTED] wrote: On Thursday 01 June 2006 13:15, Rahul S. Johari wrote: Tad different, but that will

Re: [PHP] regex problem

2006-06-01 Thread Richard Lynch
On Thu, June 1, 2006 4:56 am, Merlin wrote: ^(.*)_a[0-9](.*).htm$ Don't know what it will help, but you need \\.htm in PHP to get \.htm in PCRE to escape the . in the extension. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Richard Lynch
On Thu, June 1, 2006 3:52 am, Kevin Waterson wrote: This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word? Officially SPL is

Re: [PHP] What would cause this?

2006-06-01 Thread Richard Lynch
On Thu, June 1, 2006 1:18 am, tedd wrote: However, the app isn't reference or linked anywhere on the site, but it still occasionally runs all by itself. My question is -- what's triggering it? Bad Guys are probably trying to poke at your site, finding URLs at random, regardless of links,

Re: [PHP] PHP Fatal error: Unable to write base address in Unknown on line 0 ?

2006-06-01 Thread Richard Lynch
Open up a DOS shell and try to start Apache by hand. On Thu, June 1, 2006 7:42 am, Ilja Polivanovas wrote: Hello, maybe someone know what can be the problem and how to solve it. It appears on startup of Apache, WinXP. Apache doesn't start. -- Using Opera's revolutionary e-mail client:

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Jochem Maas
Robert Cummings wrote: On Thu, 2006-06-01 at 15:01, John Meyer wrote: John Nichel wrote: Do what I do, and don't do OO. ;) there an 'oo baby' joke in there somewhere :-) In other words, do what works, realizing that 99 percent of the time that you're doing indivdual sites, and

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to thatkind of thing...

2006-06-01 Thread Jochem Maas
Jay Blanchard wrote: [snip] RANT [/snip] ROFLMMFAO! You have never programmed in C++ have you? er no - I have this C++ book on my shelf that I keep avoiding though :-P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Jochem Maas
Richard Lynch wrote: On Thu, June 1, 2006 3:52 am, Kevin Waterson wrote: This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word?

[PHP] Retrieve Content from URL

2006-06-01 Thread Ministério Público
Hi guys I'm in a predictament, this is why: How can I retrieve the content of some of the html code in an url. Its something like this, there is a URL that have an OPTION that shows a x number of options and it has a name y, how can I access this html output retrieve the options and name of the

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Robert Cummings
On Thu, 2006-06-01 at 17:43, Jochem Maas wrote: Robert Cummings wrote: On Thu, 2006-06-01 at 15:01, John Meyer wrote: John Nichel wrote: Do what I do, and don't do OO. ;) there an 'oo baby' joke in there somewhere :-) In other words, do what works, realizing that 99 percent

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Jochem Maas
Robert Cummings wrote: On Thu, 2006-06-01 at 17:43, Jochem Maas wrote: ... Other than basic inheritance and the namespace features provided by classes, I don't see much else that is critically useful. There's was a strange push for all kinds of advanced OO features in PHP5 and somehow

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Robert Cummings
On Thu, 2006-06-01 at 19:14, Jochem Maas wrote: Robert Cummings wrote: Ahh yes, I do like the elegance of prototypes too. They're a different kind of beast, but a very flexible one. the more I get in it the pretty it gets - javascript doesn't just give you a revolver to shoot yourself

[PHP] Extended Ascii Characters

2006-06-01 Thread Richard Luckhurst
Hi All I am in the process of cleaning up an application that was left half finished. I am fairly new to PHP so I am seeking the wisdom of the community to help with a little problem. In many cases I need to build command strings to be sent to a backend system. The strings have to contain a

Re: [PHP] Extended Ascii Characters

2006-06-01 Thread tedd
At 9:46 AM +1000 6/2/06, Richard Luckhurst wrote: Hi All I am in the process of cleaning up an application that was left half finished. I am fairly new to PHP so I am seeking the wisdom of the community to help with a little problem. In many cases I need to build command strings to be sent to a

[PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread Chris
Aaron Todd wrote: Thanks for the reply. I'll ask the ISP about throtteling next time I talk with them. I would also like to mention that I am also getting intermitent results when just sending a single email. One if the web pages I am testing is a support request form. When the form is

Re: [PHP] Retrieve Content from URL

2006-06-01 Thread Chris
Ministério Público wrote: Hi guys I'm in a predictament, this is why: How can I retrieve the content of some of the html code in an url. Its something like this, there is a URL that have an OPTION that shows a x number of options and it has a name y, how can I access this html output retrieve

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok. well I looked more deeply into the issue, and I noticed that PHP My Admin does recognize that there are spaces. So if I click edit on PMA, it displays everything exactly liked I typed it. So why does my program not display it? This is the code I use Then you're not

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 So why is my program not showing those spaces? On 6/1/06, Chris [EMAIL

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 The answer is to change this: ? echo .$row['post'].

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chuck Anderson
Chris wrote: George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Awesome, thank you so much! It works! On 6/1/06, Chris [EMAIL PROTECTED] wrote: George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread Rasmus Lerdorf
Robert Cummings wrote: Well there was a segfault, but that's fixed now, now the warning is thrown because of some purist attitude that says it's incorrect to pass a literal to a reference expecting parameter... I can see how that's an issue in C with pointers, or in a strongly type language

Re: [PHP] OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

2006-06-01 Thread John Meyer
Robert Cummings wrote: On Thu, 2006-06-01 at 19:14, Jochem Maas wrote: Robert Cummings wrote: Ahh yes, I do like the elegance of prototypes too. They're a different kind of beast, but a very flexible one. the more I get in it the pretty it gets - javascript doesn't just give you a revolver