Re: [PHP] which php file is sending emails?

2011-01-16 Thread David Hutto
On Sun, Jan 16, 2011 at 11:19 AM, Mujtaba Arshad  wrote:
> Nilesh's note to self: don't sound condescending when suggesting untested


Now define 'self'. Is it a remembrance(i.e. a string of molecular
structures), or a google(google 'Rich formatting' says google isn't
actually a word, and gives the squiggly red underlining for it's own
name) search through the archives?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-16 Thread Mujtaba Arshad
Nilesh's note to self: don't sound condescending when suggesting untested
code.

On Sun, Jan 16, 2011 at 10:56 AM, Marc Guay  wrote:

> > There can be nothing more simpler than this!!!
>
> I thought that this quote needed some revisiting.
>
> Marc
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Mujtaba


Re: [PHP] which php file is sending emails?

2011-01-16 Thread Marc Guay
> There can be nothing more simpler than this!!!

I thought that this quote needed some revisiting.

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan

On 01/16/2011 12:33 PM, Jim Lucas wrote:

On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:

On 01/15/2011 11:13 PM, Daniel Brown wrote:

On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan   wrote:

On 01/15/2011 10:22 PM, Jim Lucas wrote:


Um, I use OpenBSD and that command gives me an error or two...

$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php

$ grep -l mail $(find ./ -name "*.php")
Output a big long list of files...


So the second one is right.


  His point was in the irony --- you sent a rather insulting message
to the OP suggesting he needs to "revise [his] sysadmin skills,"
whereas your own example was broken.  Probably just a typo, but
something worth a second thought for next time.



hahaha, that command wasn't broken. It works on Linux. But certain commands have
to be changed to work on *BSD.

For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will not
on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory.



Ok, are you trying to pull our chain here???  Which version of Linux?  I have
tried your example on CentOS release 4.2 (Final), and CentOS release 5.5
(Final), and it gives me this

# grep -l mail $(find -name *.php)
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]

and it just sits there waiting for input, just like grep would if I did this

# grep -l mail

I have to surround the name value in quotes to make it work.  Like so...

# grep -l mail $(find -name "*.php")

So, please, within what version of Linux does your example work?

If you are going to give advice and want to contribute good working example code
to the archives of this mailing list, please, for everybody's benefit make sure
the code example works as expected.  Or, if it is to used as a guide to get the
person thinking, say that.

Jim Lucas



LOL. Anyways, we always learn from mistakes. Thanks for correcting me.
Actually I wrote that in a hurry, so didn't test it. Usually I test 
before writing any code/command on irc/mailing lists.

Apologies friends. :)

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote:
> On 01/15/2011 11:13 PM, Daniel Brown wrote:
>> On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan  wrote:
>>> On 01/15/2011 10:22 PM, Jim Lucas wrote:

 Um, I use OpenBSD and that command gives me an error or two...

 $ grep -l mail $(find -name *.php)
 find: unknown option -- n
 find: unknown option -- a
 find: unknown option -- m
 find: unknown option -- e
 formmail.php

 $ grep -l mail $(find ./ -name "*.php")
 Output a big long list of files...
>>>
>>> So the second one is right.
>>
>>  His point was in the irony --- you sent a rather insulting message
>> to the OP suggesting he needs to "revise [his] sysadmin skills,"
>> whereas your own example was broken.  Probably just a typo, but
>> something worth a second thought for next time.
>>
> 
> hahaha, that command wasn't broken. It works on Linux. But certain commands 
> have
> to be changed to work on *BSD.
> 
> For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will 
> not
> on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory.
> 

Ok, are you trying to pull our chain here???  Which version of Linux?  I have
tried your example on CentOS release 4.2 (Final), and CentOS release 5.5
(Final), and it gives me this

# grep -l mail $(find -name *.php)
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]

and it just sits there waiting for input, just like grep would if I did this

# grep -l mail

I have to surround the name value in quotes to make it work.  Like so...

# grep -l mail $(find -name "*.php")

So, please, within what version of Linux does your example work?

If you are going to give advice and want to contribute good working example code
to the archives of this mailing list, please, for everybody's benefit make sure
the code example works as expected.  Or, if it is to used as a guide to get the
person thinking, say that.

Jim Lucas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread David Hutto
On Sat, Jan 15, 2011 at 10:32 PM, Nilesh Govindarajan  wrote:
> On 01/16/2011 12:45 AM, Daniel Brown wrote:
>>
>> On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan
>>  wrote:
>>>
>>> hahaha, that command wasn't broken. It works on Linux. But certain
>>> commands
>>> have to be changed to work on *BSD.
>>>
>>> For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but
>>> will
>>> not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o=
>>> directory.
>>
>>     Oh, I get it.  So you deliberately give bad commands to people to
>> teach them differences.  I mean, you know the difference, and the OP
>> did mention that he's using FreeBSD, so that must be the only
>> explanation, right?
>>
>>     And yes, I know it works on Linux.  I'm just messing with you.  ;-P
>>
>
> Okay now this is turning into a war :D We're deviating from the original
> topic.
> Anyways, I'm not a regular *BSD user :D
> So some commands may be broken :D :D
>
> --
> Regards,
> Nilesh Govindarajan
> Facebook: http://www.facebook.com/nilesh.gr
> Twitter: http://twitter.com/nileshgr
> Website: http://www.itech7.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


And the computational atheist's have a religion.
-- 
Sometimes...my mama...says I get over excited about technology.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan

On 01/16/2011 12:45 AM, Daniel Brown wrote:

On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan  wrote:


hahaha, that command wasn't broken. It works on Linux. But certain commands
have to be changed to work on *BSD.

For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will
not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory.


 Oh, I get it.  So you deliberately give bad commands to people to
teach them differences.  I mean, you know the difference, and the OP
did mention that he's using FreeBSD, so that must be the only
explanation, right?

 And yes, I know it works on Linux.  I'm just messing with you.  ;-P



Okay now this is turning into a war :D We're deviating from the original 
topic.

Anyways, I'm not a regular *BSD user :D
So some commands may be broken :D :D

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Daniel Brown
On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan  wrote:
>
> hahaha, that command wasn't broken. It works on Linux. But certain commands
> have to be changed to work on *BSD.
>
> For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will
> not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= directory.

Oh, I get it.  So you deliberately give bad commands to people to
teach them differences.  I mean, you know the difference, and the OP
did mention that he's using FreeBSD, so that must be the only
explanation, right?

And yes, I know it works on Linux.  I'm just messing with you.  ;-P

-- 

Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan

On 01/15/2011 11:13 PM, Daniel Brown wrote:

On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan  wrote:

On 01/15/2011 10:22 PM, Jim Lucas wrote:


Um, I use OpenBSD and that command gives me an error or two...

$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php

$ grep -l mail $(find ./ -name "*.php")
Output a big long list of files...


So the second one is right.


 His point was in the irony --- you sent a rather insulting message
to the OP suggesting he needs to "revise [his] sysadmin skills,"
whereas your own example was broken.  Probably just a typo, but
something worth a second thought for next time.



hahaha, that command wasn't broken. It works on Linux. But certain 
commands have to be changed to work on *BSD.


For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but 
will not on FreeBSD. It has to be changed to chmod -R u=rwx,g=rwx,o= 
directory.


--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] which php file is sending emails?

2011-01-15 Thread tedd

At 11:23 AM +0530 1/15/11, Nilesh Govindarajan wrote:

On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:

is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?

coz i have a server and i have many domains and subdomains. on my smtp
systems i saw that many random mails are being sent from www server which
has RELAY permission. I know i must not give RELAY (i can use SMTP-AUTH) but
some kind of issues i have to give it.

so i have to find the domain or subdomain and the file or files which send
this emails.

how can i solve this issue?

my system ise freebsd.

thanks...



grep -l mail $(find -name *.php)
There can be nothing more simpler than this!!!
Seriously man, you need to revise your sysadmin skills!

--
Regards,
Nilesh Govindarajan


Hey count me in that ignorant group.

My sysadmin skills must really suck because I would not have thought 
of that. Instead, I would have used my editor to look globally for 
"mail" appearing in my code. But I'm pretty simple.


Cheers,

tedd

--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Daniel Brown
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan  wrote:
> On 01/15/2011 10:22 PM, Jim Lucas wrote:
>>
>> Um, I use OpenBSD and that command gives me an error or two...
>>
>> $ grep -l mail $(find -name *.php)
>> find: unknown option -- n
>> find: unknown option -- a
>> find: unknown option -- m
>> find: unknown option -- e
>> formmail.php
>>
>> $ grep -l mail $(find ./ -name "*.php")
>> Output a big long list of files...
>
> So the second one is right.

His point was in the irony --- you sent a rather insulting message
to the OP suggesting he needs to "revise [his] sysadmin skills,"
whereas your own example was broken.  Probably just a typo, but
something worth a second thought for next time.

-- 

Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan

On 01/15/2011 10:22 PM, Jim Lucas wrote:


Um, I use OpenBSD and that command gives me an error or two...

$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php

$ grep -l mail $(find ./ -name "*.php")
Output a big long list of files...


So the second one is right.

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
On 1/14/2011 9:53 PM, Nilesh Govindarajan wrote:
> On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:
>> is it possible to see which php file(s) is/are sending emails on my server
>> by php.ini or with any other way?
>>
>> coz i have a server and i have many domains and subdomains. on my smtp
>> systems i saw that many random mails are being sent from www server which
>> has RELAY permission. I know i must not give RELAY (i can use SMTP-AUTH) but
>> some kind of issues i have to give it.
>>
>> so i have to find the domain or subdomain and the file or files which send
>> this emails.
>>
>> how can i solve this issue?
>>
>> my system ise freebsd.
>>
>> thanks...
>>
> 
> grep -l mail $(find -name *.php)
> There can be nothing more simpler than this!!!
> Seriously man, you need to revise your sysadmin skills!
> 

Um, I use OpenBSD and that command gives me an error or two...

$ grep -l mail $(find -name *.php)
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
formmail.php

$ grep -l mail $(find ./ -name "*.php")
Output a big long list of files...


Jim Lucas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which php file is sending emails?

2011-01-14 Thread Nilesh Govindarajan

On 01/15/2011 06:21 AM, Mesut GULNAZ wrote:

is it possible to see which php file(s) is/are sending emails on my server
by php.ini or with any other way?

coz i have a server and i have many domains and subdomains. on my smtp
systems i saw that many random mails are being sent from www server which
has RELAY permission. I know i must not give RELAY (i can use SMTP-AUTH) but
some kind of issues i have to give it.

so i have to find the domain or subdomain and the file or files which send
this emails.

how can i solve this issue?

my system ise freebsd.

thanks...



grep -l mail $(find -name *.php)
There can be nothing more simpler than this!!!
Seriously man, you need to revise your sysadmin skills!

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php