Re: [PHP] PARANOID PERMISSIONS for apache?

2001-02-13 Thread Steve Smith
On Tue, 13 Feb 2001, Derek Sivers wrote: > Can anyone think of any downside to this idea? > > Set Apache to run as user/group "www:www" > > Set ownership of PHP files and folders to "www:www" > And set permissions to 700 > So that ONLY Apache can read them. > > Now - even if I give someone shel

Re: [PHP] undefined symbol: __dn_expand ???

2001-02-06 Thread Steve Smith
On Tue, 6 Feb 2001, Jeffrey Dyer wrote: > Hey, I'm on Mandrake 7.1. I installed PHP 4.0 without any errors, using > the following: ./configure --with-mysql=/usr/local/mysql > --with-apxs=/usr/local/apache/bin/apxs --with-gnu-ld make make install > > It seemed to go fine -- no errors during ins

Re: [PHP] PHP mail as 'nobody'

2001-02-05 Thread Steve Smith
On Mon, 5 Feb 2001, Dave Goodrich wrote: > The problem is that some of our customers are now blocking mail from user > 'nobody', regardless if the account exists or not. I can have PHP write the > complete headers but that doesn't stop the 'from' header in Sendmail being > written (the true user

Re: [PHP] Exit Function

2001-01-31 Thread Steve Smith
On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: > What is the way to exit a function? For example: > > function FooBar() { > > if ($foo = $bar) > Exit_this_Function; > > ## otherwise execute the rest of this function > } Use "return". If you want your function to retu