On 8/13/07, tedd [EMAIL PROTECTED] wrote:
At 4:54 PM +0200 8/11/07, Tijnema wrote:
On 8/11/07, tedd [EMAIL PROTECTED] wrote:
At 7:21 PM +0200 8/10/07, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
if( !isset( $argv[1] ) || !isset( $argv[2] ) || !isset(
At 12:10 PM +0200 8/13/07, Tijnema wrote:
On 8/13/07, tedd [EMAIL PROTECTED] wrote:
But, if I see this:
if(!isset($argv[1],$argv[2],$argv[3])))
My first thought is Is this OR or AND? And my second thought is If
this is OR, then what's AND?
Being dyslexic I'm easily confused that way
At 4:54 PM +0200 8/11/07, Tijnema wrote:
On 8/11/07, tedd [EMAIL PROTECTED] wrote:
At 7:21 PM +0200 8/10/07, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
if( !isset( $argv[1] ) || !isset( $argv[2] ) || !isset( $argv[3] ) )
At 11:00 AM -0400 8/10/07, Robert Cummings wrote:
On Fri, 2007-08-10 at 10:43 -0400, Jason Pruim wrote:
Hi All :)
Hope you're not getting sick of my questions as of late, but I keep
getting closer and closer and thank you all who have helped me in the
past! The only reason I can see this
At 7:21 PM +0200 8/10/07, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
if( !isset( $argv[1] ) || !isset( $argv[2] ) || !isset( $argv[3] ) )
if(!isset($argv[1],$argv[2],$argv[3])) // Bit shorter ;)
But a bit harder to recognize IMO. :-)
Cheers,
tedd
--
---
On 8/11/07, tedd [EMAIL PROTECTED] wrote:
At 7:21 PM +0200 8/10/07, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
if( !isset( $argv[1] ) || !isset( $argv[2] ) || !isset( $argv[3] ) )
if(!isset($argv[1],$argv[2],$argv[3])) // Bit shorter ;)
But a bit harder to
if (isset($_GET['order'] in_array($_GET['order'], array('Last',
'First', ...))) { $requestedOrder = $_GET['order']; } else {
$requestedOrder = your default; }
Mind the in_array() call. Always sanitize user input.
greetz,
boro
Jason Pruim schreef:
Hi All :)
Hope you're not getting sick
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from the previous day
and my first task each day is to go through that and track down any
issues that usage has
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 11:40 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
If PHP thinks something might be wrong it will tell you. Why on earth
would you want to ignore it? You think you're smarter than PHP?
Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
If PHP thinks something might be wrong it will tell you. Why on earth
would you want to ignore it? You think you're smarter than PHP? Really?
Okay, Stut, let's not make Friday the official Flame Dan Brown
holiday this week. I
On Fri, 2007-08-10 at 11:40 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
If PHP thinks something might be wrong it will tell you. Why on earth
would you want to ignore it? You think you're smarter than PHP? Really?
Okay, Stut, let's not make Friday the official
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from the previous day
and my first task each day is to go
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 17:39 +0100, Stut wrote:
Robert Cummings wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of
On Fri, 2007-08-10 at 17:39 +0100, Stut wrote:
Robert Cummings wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from the previous day
and my first task
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 19:21 +0200, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from the previous day
and my first task each day is to go through that and track down any
issues that usage has highlighted.
That's actually a good point there that I
Hi Stut,
Friday, August 10, 2007, 4:44:14 PM, you wrote:
On my production servers error_reporting is set to E_ALL,
display_errors is off and log_errors is on. I get an email from each
server containing the contents of the error log from the previous
day and my first task each day is to go
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
If PHP thinks something might be wrong it will tell you. Why on earth
would you want to ignore it? You think you're smarter than PHP? Really?
Okay, Stut, let's not make Friday the official Flame Dan Brown
holiday this week. I vote that it should be
On Fri, 2007-08-10 at 11:28 -0400, Daniel Brown wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
I never disable E_NOTICE or even E_STRICT.
I'm humbled in the presence of greatness.
Nothing great about it. It's work as usual. When you're developing the
code you see any
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
I never disable E_NOTICE or even E_STRICT.
I'm humbled in the presence of greatness.
I do my best to ensure that there are no notices or warnings, but
I still disable E_NOTICE in general, because I know that it's not
going to end the
On Fri, 2007-08-10 at 10:43 -0400, Jason Pruim wrote:
Hi All :)
Hope you're not getting sick of my questions as of late, but I keep
getting closer and closer and thank you all who have helped me in the
past! The only reason I can see this far is I am standing on the
shoulders of
Hi Robert,
Friday, August 10, 2007, 4:13:02 PM, you wrote:
On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote:
Remember to clean that input before you sit down at the table, there,
boy!
It's safe to ignore the `Undefined index` notices. That will just
appear if a variable is
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
Bad Dan *slap*. Ignoring notices may be detrimental to your health
and/or well-being. Better to initialise it with a default if it has not
been set in the request.
if (!isset($_GET['order'])) $_GET['order'] = 'Last';
Ouch!
So you're all
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote:
Remember to clean that input before you sit down at the table, there,
boy!
It's safe to ignore the `Undefined index` notices. That will just
appear if a variable is
On Fri, 2007-08-10 at 11:00 -0400, Daniel Brown wrote:
Remember to clean that input before you sit down at the table, there, boy!
It's safe to ignore the `Undefined index` notices. That will just
appear if a variable is referenced without first being instantiated or
defined. No
On 8/10/07, Jason Pruim [EMAIL PROTECTED] wrote:
Hi All :)
Hope you're not getting sick of my questions as of late, but I keep
getting closer and closer and thank you all who have helped me in the
past! The only reason I can see this far is I am standing on the
shoulders of giants don't know
At 8/10/2007 07:43 AM, Jason Pruim wrote:
I want to be able to sort that info so my sql query looks like:
Select * from current order by '$order'; and $order is populated by
a GET when they click on a link: A href=index.php?order='Last'Sort
by last name/A Now... the whole PHP page is being
Hi All :)
Hope you're not getting sick of my questions as of late, but I keep
getting closer and closer and thank you all who have helped me in the
past! The only reason I can see this far is I am standing on the
shoulders of giants don't know who said that but I like it :)
Anyway...
Here's what I use to watch my apache logs.. Looks for php errors,
notices, and warnings, seg faults, etc.. Grabs the stats for the prior
hour and spits them to stdout.. Pipe that to mutt or sendmail and
youve got an hourly cron.. Check the command line options for other
good stuff.. Only catch:
On Fri, 2007-08-10 at 11:18 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
Bad Dan *slap*. Ignoring notices may be detrimental to your health
and/or well-being. Better to initialise it with a default if it has not
been set in the request.
if
On Fri, 2007-08-10 at 19:49 +0200, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
I always forget about file_get_contents() because its counterpart
file_put_contents() for some ungodly reason didn't appear until PHP 5.
Forget PHP4 and life becomes a lot easier :)
Robert Cummings wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from the previous day
and my first task each day is to go through that and track down any
issues
Daniel Brown wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
I never disable E_NOTICE or even E_STRICT.
I'm humbled in the presence of greatness.
I do my best to ensure that there are no notices or warnings, but
I still disable E_NOTICE in general, because I know that
Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
Bad Dan *slap*. Ignoring notices may be detrimental to your health
and/or well-being. Better to initialise it with a default if it has not
been set in the request.
if (!isset($_GET['order'])) $_GET['order'] = 'Last';
Ouch!
Daniel Brown wrote:
On 8/10/07, Jason Pruim [EMAIL PROTECTED] wrote:
Hi All :)
Hope you're not getting sick of my questions as of late, but I keep
getting closer and closer and thank you all who have helped me in the
past! The only reason I can see this far is I am standing on the
shoulders of
On Fri, 2007-08-10 at 19:21 +0200, Tijnema wrote:
On 8/10/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
I get an email from each
server containing the contents of the error log from
On Fri, August 10, 2007 9:43 am, Jason Pruim wrote:
I want to be able to sort that info so my sql query looks like:
Select * from current order by '$order'; and $order is populated by
a GET when they click on a link: A href=index.php?order='Last'Sort
by last name/A Now... the whole PHP page
On Fri, August 10, 2007 10:00 am, Daniel Brown wrote:
It's safe to ignore the `Undefined index` notices. That will just
appear if a variable is referenced without first being instantiated or
defined. No biggie, just put this at the head of your code:
ini_set(error_reporting,E_ALL
On Fri, August 10, 2007 10:18 am, Daniel Brown wrote:
So you're all going to tell me that you have E_NOTICE set to
report on your sites?
Damn right I do!
That's the FIRST thing I change on any new development site, anywhere,
anytime.
--
Some people have a gift link here.
Know what I
On Fri, August 10, 2007 10:43 am, Robert Cummings wrote:
On Fri, 2007-08-10 at 11:40 -0400, Daniel Brown wrote:
On 8/10/07, Stut [EMAIL PROTECTED] wrote:
If PHP thinks something might be wrong it will tell you. Why on
earth
would you want to ignore it? You think you're smarter than PHP?
40 matches
Mail list logo