On Aug 29, 2011, at 4:32 PM, George Langley wrote:
The One True Brace Style:
http://en.wikipedia.org/wiki/Indent_style
Didn't know there was a name for the way I learned to indent! Make sense to
me - looks so much cleaner and less scrolling/printing.
And, I already add a comment
On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote:
On 11-08-30 11:36 AM, Richard Quadling wrote:
On 30 August 2011 15:04, Tedd Sperlingtedd.sperl...@gmail.com wrote:
To all:
I prefer the Whitesmiths style:
http://rebel.lcc.edu/sperlt/citw229/brace-styles.php
But style is really up
On Sep 1, 2011, at 8:16 AM, Tim Streater wrote:
On 01 Sep 2011 at 11:42, Richard Quadling rquadl...@gmail.com wrote:
On 30 August 2011 23:25, Richard Quadling rquadl...@gmail.com wrote:
On 30 August 2011 20:09, Robert Cummings rob...@interjinn.com wrote:
You're just saying that so Tedd
On Sep 9, 2011, at 1:30 PM, Shawn McKenzie wrote:
On 09/09/2011 12:04 PM, Joshua Stoutenburg wrote:
NOTE: There could be lag caused by network and server technologies.
Perhaps answers arrive during the time it takes a person to prepare an
answer. These are forgivable.
This is the reason,
On Sep 9, 2011, at 2:36 PM, Daniel Brown wrote:
On Fri, Sep 9, 2011 at 14:30, Robert Cummings rob...@interjinn.com wrote:
Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI
I didn't know it was possible to fill almost four minutes with a
single note, outside of a test pattern. That's
On Sep 17, 2011, at 10:56 AM, Bill Guion wrote:
On Sep 17, 2011, at 3:46 AM, Cyril Lopez wrote:
Can someone help me understand how money_format() rounds numbers ?
As someone else pointed out, rounding rules vary by locale, but I was taught
40+ years ago in graduate school programming
Hi gang:
I need information to convince administrators in management that PHP is a
viable subject that should be taught in college with credits going toward a
Degree or Certification.
You see, I am pushing for a Web Development Certification program that would
include PHP/MySQL as well as
On Oct 8, 2011, at 8:48 PM, Tommy Pham wrote:
On Sat, Oct 8, 2011 at 5:33 PM, Complex complex.confus...@gmail.com wrote:
Thanks for the advice, I'm aware of all that, but I'm looking for a
specific PHP solution at the moment. Unless you have advice on how I
can update the SSI includes on the
On Oct 9, 2011, at 11:41 AM, Complex wrote:
Tedd,
The crucial detail you're lookign for is my lack of choice or control
in the matter, for all sorts of reasons that are actually quite stupid
but not possible for *me* to change, and not possible for anyone else
to change quickly. Thus I am
On Oct 9, 2011, at 7:43 PM, Tommy Pham wrote:
On Sun, Oct 9, 2011 at 8:41 AM, Complex complex.confus...@gmail.com wrote:
Tedd,
The crucial detail you're lookign for is my lack of choice or control
in the matter, for all sorts of reasons that are actually quite stupid
but not possible for
On Oct 12, 2011, at 4:24 PM, Ken Robinson wrote:
Yes, but scope does not necessarily protect a value. Within a function
globals are out of scope, but their values can still be accessed through
$GLOBALS.
Tangental to the main point (and probably obvious to many) but I used to
believe (until
On Oct 13, 2011, at 11:37 AM, Tim Streater wrote:
On 13 Oct 2011 at 16:25, Tedd Sperling tedd.sperl...@gmail.com wrote:
So, if you want a main script variable (i.e., $myVar) to be accessed by a
function, you can do it by stating:
myFunction
{
global $myVar;
// and then using $myVar
On Oct 15, 2011, at 8:57 PM, Stephen wrote:
I am building a site for my photography.
The photographs are displayed by category.
The category table has a field for order
In my control panel I want to be able to change the order of the categories
by changing the values in the category
On Oct 21, 2011, at 12:27 PM, Daniel Brown wrote:
I'll get this week's Friday distraction kicked off here with
something shared with me by a Facebook friend. If you're on Facebook,
try this. It's pretty sweet (and safe for work and kids).
http://www.takethislollipop.com/
--
On Oct 21, 2011, at 5:27 PM, Christopher Lee wrote:
[1] Your naturalness is always endearing, even when you play grumpy. ;-)
-snip-
[2] What does truly uplifting/evolutionary code look like anyway?
Christopher:
[1] Thanks (I think). Perceptions are just that -- I could be wrong or looking
On Oct 23, 2011, at 9:38 PM, tamouse mailing lists wrote:
http://reflectionbeads.com/i/design-your-own
That's a very interesting site. Surprising that it doesn't use a lick
of PHP to do what it's doing, given what you wrote below.
How do you know that? Just to be argumentative, the entire
Hi gang:
I have a few questions -- this is my first one.
Please review this link:
http://webbytedd.com//perms/
This page simply reads the contents of a file of the user's choice and displays
the file's data.
My first question is with regard to reading a file ( fread() ):
If the user
Hi gang:
Another question -- in the context of file permissions (rwx) is the execute
permission limited to shell commands -- Or -- is there more?
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Oct 27, 2011, at 5:14 PM, Daniel Brown wrote:
On Thu, Oct 27, 2011 at 15:25, Tedd Sperling tedd.sperl...@gmail.com wrote:
-snip my confusion -
No need to review the code. The first hunch I had proved correct.
PHP opens with a less-than (left carat, or 'less-than') symbol, as do
HTML
On Oct 27, 2011, at 4:51 PM, Ashley Sheridan wrote:
Yes, I just ran a quick test PHP script without any execute permissions set
at all, only rw-rw-r-- and it ran just fine, suggesting it is just an
argument as Larry said.
I don't think Apache needs execute permissions set on PHP files or
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
On Thu, Oct 27, 2011 at 18:15, Tedd Sperling tedd.sperl...@gmail.com wrote:
Ash:
You answered a question I wasn't prepared to ask, which was How can php
scripts be executed when their execute permissions aren't set?
That question begged
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
On Thu, Oct 27, 2011 at 18:15, Tedd Sperling tedd.sperl...@gmail.com wrote:
That question begged the question of What does execute mean?
It means execute. Not to be confused with what others are
mentioning here, which is read and interpret
On Oct 28, 2011, at 7:19 AM, Geoff Shang wrote:
On Thu, 27 Oct 2011, Tedd Sperling wrote:
You answered a question I wasn't prepared to ask, which was How can php
scripts be executed when their execute permissions aren't set?
Because as far as the system is concerned, the thing which
On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote:
On Thu, Oct 27, 2011 at 19:44, Tedd Sperling tedd.sperl...@gmail.com wrote:
One of the things I'm trying to understand is a php script can execute a
shell command, right? Is there a way via permissions to prevent that -- or
-- does
On Oct 28, 2011, at 9:43 AM, Stuart Dallas wrote
On 28 Oct 2011, at 12:54, Daniel Brown wrote:
On Fri, Oct 28, 2011 at 05:03, Adam Richardson simples...@gmail.com wrote:
Well, Daniel,
I'll bet you never thought that your Friday Distraction would elicit such
a broad range of responses AND keep
On Oct 28, 2011, at 11:07 AM, Daniel Brown wrote:
On Fri, Oct 28, 2011 at 11:01, Tedd Sperling tedd.sperl...@gmail.com wrote:
But does having execute permissions set on a script affect the scripts
ability to run shell commands?
Negative. It won't inherit permissions, though one might
On Oct 29, 2011, at 12:38 PM, Pau wrote:
-snip-
I am a newbie to php and I have been trying to get that information
somewhere, but I was not successful.
A little help would be appreciated. In particular an example would be
wonderful.
Thanks.
Pau:
something that I'm struggling with,
then please share it. But if you just want to take pot shots at us, then
please keep your comments to yourself.
To that end, I wish to thank Ashley Sheridan, Daniel P. Brown, Tedd
Sperling and Tommy Pham, to name but just a few of those who have
On Nov 15, 2011, at 2:54 PM, Steven Staples wrote:
tamouse.li...@gmail.com sent:
tedd.sperl...@gmail.com wrote:
PS: I know it's not Friday, but this question came up in class
yesterday and I thought maybe all of you might like to guess why
null is Wednesday?
Wait.. What??
$ php -r 'echo
On Nov 17, 2011, at 11:07 AM, Stuart Dallas wrote:
On 17 Nov 2011, at 16:01, Tedd Sperling wrote:
To all:
Okay, so now that we have had people reply, here's my take.
The Unix timestamp started on 01 Jan 1970 00:00:00 + -- and that was a
Thursday.
The second before (i.e., 31
On Nov 17, 2011, at 11:58 AM, Stuart Dallas wrote:
The epoch specifies the exact time that 0 represents. It makes no claims as
far as that being the start of anything...
defined as the number of seconds elapsed since midnight Coordinated
Universal Time (UTC) of Thursday, January 1, 1970
On Nov 17, 2011, at 7:59 PM, Stuart Dallas wrote:
On 17 Nov 2011, at 20:17, Tedd Sperling wrote:
On Nov 17, 2011, at 11:58 AM, Stuart Dallas wrote:
defined as the number of seconds elapsed since midnight Coordinated
Universal Time (UTC) of Thursday, January 1, 1970 (Unix times are defined
On Nov 18, 2011, at 12:40 AM, Robert Cummings wrote:
By you're reasoning since I did not exist before 1974 then time itself could
not possibly have existed before then either since I was not in existence to
perceive it. That's as ludicrous as suggesting time did not exist before the
big
On Nov 19, 2011, at 11:59 AM, Stuart Dallas wrote:
On 19 Nov 2011, at 16:48, Tedd Sperling wrote:
For example, if you push '-1' though strtotime(-1), you'll get Wednesday
only one day a week -- whereas 'null' works every time.
Technically I see that as a bug. I believe strtotime(null) should
On Nov 20, 2011, at 4:00 PM, Geoff Shang wrote:
On Sat, 19 Nov 2011, Tedd Sperling wrote:
Now, where are my observations wrong? The code is shown in the demo.
To summarise, your observations are wrong because they do not take timezone
into account and do not show the time, only the date
On Nov 20, 2011, at 4:59 PM, Geoff Shang wrote:
On Sun, 20 Nov 2011, Tedd Sperling wrote:
I appreciate your time and comments. However, you missed the point I was
trying to make, which does not have anything to do with timezones. If you
copy my code and place it on any server in the world
On Dec 14, 2011, at 7:59 AM, Rick Dwyer wrote:
Hello all.
Can someone tell me which of the following is preferred and why?
echo a style='text-align:left;size:14;font-weight:bold'
href='/mypage.php/$page_id'$page_name/abr;
echo a style='text-align:left;size:14;font-weight:bold'
On Dec 14, 2011, at 12:09 PM, Peter Ford wrote:
With respect to tedd and Al, you've misread the question: the important
PHP-related bit is about whether to embed variables in double-quoted strings
or to concatenate them. These are only two of the options, and each has it's
pros and cons.
On Dec 21, 2011, at 2:14 AM, Christopher Lee wrote:
Hello All,
I have two forms (see attached) that I would like to recreate and enable the
user to complete the form online. The data would be collected in a MySQL DB.
http://ucensys.com/activities.pdf
http://ucensys.com/guidelines.pdf
On Dec 22, 2011, at 11:22 AM, Christopher Lee wrote:
Tedd,
I appreciate your reply to my post. In no way do I expect anyone to code for
me. If that were the case I would hire someone. I have posted to this list
numerous times and, if I am not mistaken, the list is designed to ask for
On Jan 1, 2012, at 11:26 AM, muad shibani wrote:
I have a website that posts the most important news according to the number
of clicks to that news
the question is : what is the best way to prevent multiple clicks from the
same visitor?
Not a fool-proof method, but use Javascript on the
On Jan 5, 2012, at 3:14 PM, Jim Giner wrote:
ok - somebody has advised that I should not be trying to print to a printer
from my website php script.
The suggestion of creating a pdf and sending to the client was made. How do
I install the pdf functions? I've never had to install a
On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote:
Is there ever a case where SCRIPT_NAME does not equal PHP_SELF?
Was this every answered? I would like to know.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List
On Jan 27, 2012, at 12:45 PM, Adam Richardson wrote:
On Fri, Jan 27, 2012 at 12:09 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote:
Is there ever a case where SCRIPT_NAME does not equal PHP_SELF?
Was this every answered? I would
On Jan 29, 2012, at 7:01 PM, Adam Richardson wrote:
On Sun, Jan 29, 2012 at 11:38 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Jan 27, 2012, at 12:45 PM, Adam Richardson wrote:
On Fri, Jan 27, 2012 at 12:09 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Jan 11, 2012
On Feb 6, 2012, at 4:01 PM, Stuart Dallas wrote:
Generally speaking you're better off with a design that automatically adapts
to the viewport on which it's being displayed. While there's more than one
reason for this, the overriding reason is that the same software (i.e. the
same user
On Feb 6, 2012, at 11:28 AM, Larry Martell wrote:
Just for another data point, the FAA does not allow gotos in any code
that goes into an airplane.
That settles it -- the government knows best.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing
On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:
On 13 Feb 2012, at 06:28, Rui Hu wrote:
How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
if I want to modify $_SERVER myself?
Once your script starts the superglobals are no different to any other
variables,
On Feb 14, 2012, at 1:39 PM, Daniel Brown wrote:
On Tue, Feb 14, 2012 at 13:36, Rick Dwyer rpdw...@earthlink.net wrote:
I only have access to domain B... the one receiving the Form POST.
Then all you should need to do is:
a.) Verify that Domain A is indeed pointing to Domain
On Feb 20, 2012, at 2:49 PM, Daniel Brown wrote:
On Mon, Feb 20, 2012 at 14:40, Bastien phps...@gmail.com wrote:
Definitely doesn't work
The list works just fine, it's you goofs who need to work now! ;-P
It still doesn't work and I didn't get this. :-)
Cheers,
tedd
On Feb 21, 2012, at 9:44 AM, Jay Blanchard wrote:
It's like coming home, I knew I could count on certain of you to make light
of this and that makes me strangely happy.
Seek professional help now. :-)
Cheers,
tedd
_
tedd.sperl...@gmail.com
http://sperling.com
--
PHP
Hi gang:
I am using the getdate(mktime()) functions to get month data (i.e., name of
month, first weekday, last day, number of days).
To get the number of days for a specific month, I use:
// $current_month is the month under question
$next_month = $current_month + 1;
$what_date =
On Mar 7, 2012, at 4:28 PM, Daniel Brown wrote:
On Wed, Mar 7, 2012 at 15:03, Tedd Sperling tedd.sperl...@gmail.com wrote:
Hi gang:
I am using the getdate(mktime()) functions to get month data (i.e., name of
month, first weekday, last day, number of days).
To get the number of days
On Mar 8, 2012, at 11:20 AM, Ford, Mike wrote:
-Original Message-
From: Tedd Sperling [mailto:tedd.sperl...@gmail.com]
From my code, the number of days in a month can be found by using 0
as the first index of the next month -- not the last day of the
previous month.
Huh? The 0th
On Mar 8, 2012, at 6:53 PM, Daniel Brown wrote:
On Mar 8, 2012 6:14 PM, Tedd Sperling tedd.sperl...@gmail.com wrote:
Side-point: I find it interesting that getdate() has all sorts of neat
descriptions for the current month (such as, what weekday a numbered day
is), but lacks how many
On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote:
From: Tedd Sperling [mailto:tedd.sperl...@gmail.com]
But why does anyone have to use the next month to figure out how
many days there are are in this month? Do you see my point?
Actually, no. To figure this out, somewhere along the line you've
On Mar 9, 2012, at 11:17 AM, Charles wrote:
On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote:
From: Tedd Sperling [mailto:tedd.sperl...@gmail.com]
But why does anyone have to use the next month to figure out how
many
On Mar 9, 2012, at 12:52 PM, Charles wrote:
On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
Well no, I don't need to know the first day of next month to know the last
day of this month. That's like saying I need to know who is going to stand
at the 'end
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
tamouse mailing lists tamouse.li...@gmail.com wrote in message
news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Feb 13, 2012, at 4:10 AM
On Mar 10, 2012, at 12:20 PM, Maciek Sokolewicz wrote:
function getAmountOfDaysInAMonth($month, $year) {
$days = array(31, (($year%4==0 and ($year%100 0 or $year%400==0)) ? 29 :
28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
return $days[$month+1];
}
I like that -- here's a small
On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote:
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
That's correct, but to access those variables outside of their scope (such
as a function) you do via a SuperGlobal, namely $GLOBAL['whatever
On Mar 11, 2012, at 10:25 AM, Daniel Brown wrote:
On Sat, Mar 10, 2012 at 10:37, Tedd Sperling tedd.sperl...@gmail.com wrote:
As such, there are no globals in PHP other than SuperGlobals. As I said,
if I'm wrong, please show me otherwise.
A superglobal is predefined at run-time
On Mar 11, 2012, at 6:12 AM, Ashley Sheridan wrote:
I still don't see what's wrong with
date(t);
--
Thanks,
Ash
Ash:
It's just too damn simple -- we need to make things complicated. :-)
Actually, this works for me:
$days_in_month = date('t', mktime(0, 0, 0, $next_month, 0, $year));
On Mar 11, 2012, at 3:10 PM, Matijn Woudt wrote:
On Sun, Mar 11, 2012 at 7:33 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
Actually, this works for me:
$days_in_month = date('t', mktime(0, 0, 0, $next_month, 0, $year));
But again, I don't see why I have to use next month to find
On Mar 11, 2012, at 3:04 PM, Tim Streater wrote:
In the following, $x is a global but not a super-global (AFAIK).
?php
function echox ()
{
global $x;
echo $x;
}
$x = Hello world\n;
echox ();
?
--
Cheers -- Tim
Tim:
I read somewhere that using:
On Mar 12, 2012, at 7:12 PM, Tim Streater wrote:
?php
function yes ($a)
{
global $x;
if ($a) $x = yes\n;
}
first (true);
echo $x;
?
but I haven't looked into $GLOBALS enough to know whether using them instead
would have saved my bacon.
I'm not sure what
On Mar 12, 2012, at 12:04 PM, Daniel Brown wrote:
On Sun, Mar 11, 2012 at 14:16, Tedd Sperling tedd.sperl...@gmail.com wrote:
This document clearly states that $GLOBALS is a SuperGlobal -- what am I not
understanding here?
You are understanding it correctly, the only thing that's missing
On Mar 13, 2012, at 12:20 PM, Stuart Dallas wrote:
On 13 Mar 2012, at 15:59, Tedd Sperling wrote:
In any event, I seldom use globals anyway. This was more an academic
discussion.
-snip-
It ultimately also means that only the superglobals are true globals.
That was my initial statement
Hi gang:
What's a better/shorter way to write this?
$first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null;
$first_name = isset($_POST['first_name']) ? $_POST['first_name'] : $first_name;
$_SESSION['first_name'] = $first_name;
Cheers,
tedd
_
Hi gang:
What's wrong with this?
echo date(D M d Y). ', sunrise time : ' .date_sunrise(time(),
SUNFUNCS_RET_STRING, 42.57, 84.3320, 90, -5);
echo('br');
echo date(D M d Y). ', sunset time : ' .date_sunset(time(),
SUNFUNCS_RET_STRING, 42.57, 84.3320, 90, -5);
It gives exactly the wrong time --
On Mar 20, 2012, at 9:50 AM, Andrew Ballard wrote:
On Tue, Mar 20, 2012 at 9:23 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
Hi gang:
What's wrong with this?
echo date(D M d Y). ', sunrise time : ' .date_sunrise(time(),
SUNFUNCS_RET_STRING, 42.57, 84.3320, 90, -5);
echo('br
On Mar 21, 2012, at 3:45 PM, Daniel Brown wrote:
I would, yes, but that's not the point. Is Anna single? I'm
ready to trade Debs in for a newer model.
--
/Daniel P. Brown
Ah... to be young again. But, on the other hand, they have so much to learn. :-)
Cheers,
tedd
Hi gang:
Let me start a religious war -- should one end their scripts with ? or not?
After years of never having a problem with ending any of my scripts with ?,
I found that several students in my class had scripts that did not produce the
desired result even after they were given the scripts
On Apr 5, 2012, at 10:26 PM, Kirk Bailey wrote:
I need a page that will live in a directory and list all image files in
there. That is, the page has
img src=./foo.typeP
tags emitted in it's structure, one per file in the directory with a saught
file type- .png, .gif, .jpg, you get the
Kirk:
Okay, you took the first step. Now please review this:
?php
foreach (glob(images/*.jpg) as $filename)
{
echo(img src=\$filename\br$filename brbr);
}
?
Note:
1. This example does not put in all the embedded formatting shown in your
example. What you did was simply bad form -- you
Hi gang:
On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote:
A rule of thumb is no more than 50 lines per
function, most much less. Back in the day when we didn't have nifty
gui screens and an 24 line terminals (yay green on black!), if a
function exceeded one printed page, it was
On May 23, 2012, at 11:49 AM, shiplu wrote:
On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote:
When number of lines becomes the criteria of function size? Wouldn't it
depends on the task the function is doing?
You missed the point.
Of course, the difficulty of the task of a specific
On May 23, 2012, at 12:21 PM, Robert Cummings wrote:
On 12-05-23 12:15 PM, Tedd Sperling wrote:
What I was talking about was that what we can grasp in one view, we can
understand better. If the code lies outside of our view, then we understand
it less. I can support this claim with numerous
On May 23, 2012, at 3:49 PM, Ashley Sheridan wrote:
I'm of the same mind. Generally I'll split a function if I'm reusing more
than a couple of lines of code. I only split a large function if it's
actually doing several things, if it happens to need 200 lines to perform one
'step' then
On May 24, 2012, at 8:37 AM, Steven Staples wrote:
Tedd,
I think the length of code depends on a few different factors, what if you
have your docblocks, and comment lines, as well as your bracing style?
Where do you consider your function to start?
It starts where it starts. It doesn't make
On May 24, 2012, at 4:48 PM, tamouse mailing lists wrote:
Yes, I think that is *exactly* the criterion-- not a mystery or an emergent
thing, really, was a pretty expicit reasoning--being able to see/scan the
entire function on one page (or now in one screenful) makes it much easier to
see
On May 24, 2012, at 5:01 PM, Ashley Sheridan wrote:
On Thu, 2012-05-24 at 15:48 -0500, tamouse mailing lists wrote:
On May 23, 2012 9:14 AM, Tedd Sperling t...@sperling.com
wrote:
H
Yes, I think that is *exactly* the criterion-- not a mystery or an emergent
thing, really, was a pretty
On 29 May 2012 18:15, Gary listgj-phpgene...@yahoo.co.uk wrote:
Okay, let's assume I have three things, A, B, and C. I need to produce
an array with a list of all possible combinations of them, however many
there might be in those combinations: e.g. A, B, C, D, AB, AC, AD, BC,
ABC (not sure
On May 29, 2012, at 10:20 AM, Stuart Dallas wrote:
-snip-
Besides, truth is subjective, but then so is everything, including that
assertion.
-Stuart
You reply was longer than my monitor was high so I can't give an immediate
reply -- I have to scroll. :-)
However, with that said, you
On May 29, 2012, at 11:41 AM, Adam Richardson wrote:
On Tue, May 29, 2012 at 10:55 AM, Tedd Sperling t...@sperling.com wrote:
On 29 May 2012 18:15, Gary listgj-phpgene...@yahoo.co.uk wrote:
Okay, let's assume I have three things, A, B, and C. I need to produce
an array with a list of all
On May 29, 2012, at 5:06 PM, Paul M Foster wrote:
I think a lot of coders try to be kewler than the next 18 guys who are
gonna have to look at the code, so they use a lot of compression
techniques to reduce LOC.
That's not kewl to me.
Plus, they're lazy. I'd rather see everything
with
On May 31, 2012, at 12:48 PM, Tristan wrote:
I'm using Zend Studio and it had a suggestion that I do a foreach as such
foreach($entry as $entry){
}
instead of
foreach($entries as $entry){
}
they both seem to work but, from a readability standpoint and just makes
more sense to
Hi gang:
This is a little early for Friday's Open Comment day, but my memory is
increasingly more short term and by tomorrow I might forget -- so, here goes.
I watched a interview today where an security expert claimed that the Flame
Virus was written in a scripted language named lua
On May 31, 2012, at 7:45 PM, Ross McKay wrote:
On Thu, 31 May 2012 13:21:07 -0400, Tedd Sperling wrote:
[...]
I watched a interview today where an security expert claimed that
the Flame Virus was written in a scripted language named lua
(http://www.lua.org/).
That's surprising... I'm
On Jun 3, 2012, at 5:21 PM, Ashley Sheridan wrote:
There is a new law been passed in the UK that makes non-essential cookies
opt-in only, so you must get permission in order to use them.
What's a non-essential cookie?
Cheers,
tedd
_
tedd.sperl...@gmail.com
On Jun 4, 2012, at 6:13 PM, Ashley Sheridan wrote:
Yeah, it's been such a pain, as nobody over here is quite sure how the
hell it'll be enforced either, or if it even will be. It's also pretty
vague as to just where the line gets drawn. The official government
sites on this are pretty black
On Jun 1, 2012, at 1:44 PM, Ashley Sheridan wrote:
This is a bit of a shameless plug, but it is a Friday and a pretty
special weekend over here.
I recently got to work on something a bit fun at work in my spare time
and they liked it so much that it got used internally to celebrate the
Hi Daniel and gang:
Considering I'm never afraid to show my ignorance, please review the following
example.
Because of the way I normally use sessions and considering this way works for
me, I thought I knew what sessions were about -- but my faith is eroding.
Cases in point
1. The following
On Jun 22, 2012, at 5:07 PM, Daevid Vincent dae...@daevid.com wrote:
http://www.addedbytes.com/blog/if-php-were-british/
Oh, that is too funny!
I'll counter with my Hill-Billy version:
---
echo();
yell('revenewers commin');
---
var_dump();
take_a_dump();
preferred:
leave_one();
On Jun 26, 2012, at 3:21 PM, Al n...@ridersite.org wrote:
No postings for days.
Maybe everyone learned it -- no new questions.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Jul 9, 2012, at 2:40 PM, Floyd Resler fres...@adex-intl.com wrote:
I want to have an alert pop up to let the user know their session is about to
expire. Would the best approach be to do a timer in Javascript or check it
in PHP. I'm storing session data in a MySQL database so I can know
Hi gang:
Does anyone have a resource, or better yet code, to solve the scheduling
problem described below?
Let's say you have a week calendar that has openings between 8:00am to 5:00pm
for Monday through Friday (40 hours).
Then you have an assortment of appointments that must be scheduled
_
t...@sperling.com
http://sperling.com
On Jul 14, 2012, at 6:32 PM, Bill Guion bgu...@comcast.net wrote:
On Jul 14, 2012, at 4:53 PM, php-general-digest-h...@lists.php.net wrote:
From: Tedd Sperling t...@sperling.com
Does anyone have a resource, or better yet code
On Jul 16, 2012, at 4:16 PM, Ramiro Barrantes ram...@precisionbioassay.com
wrote:
Hello,
I am making an application using PHP/Javascript/mysql and had a question.
Sometimes I need to use javascript to fill a drop down box based on the value
of a previous drop down box. However, the
Hi gang:
I can't wait for tomorrow -- so here's my off-topic post today.
First question:
What do you call the people who ultimately use your code?
I call them the end-user, but others have stated other terms, such as
customer or user.
Second question:
Are you concerned with their (whomever)
1 - 100 of 237 matches
Mail list logo