On Wed, 10 Apr 2012, Tim Streater wrote:
I want to format a date/time using a 12 hour representation of the time
part. I can do this with, say, "%d %b %Y %l:%M %p", where the first time
format specifier is the lower-case L. But, this gives me a leading space
in the case that the hour is less t
Stuart Dallas" wrote:
On 18 May 2012, at 14:50, Jim Giner wrote:
Daft is a little harsh. :) 00:40 is just not a time value that is
generally accepted.
It may appear harsh, but as far as I'm concerned it is daft to make
assumptions like that. You've essentially disallowed 12:nn am, but al
On Wed, 27 Jun 2012, tamouse mailing lists wrote:
RTFM with no hint of where to look is a problem. But the dictum of
"Read here in the manual" will surely be the best thing. You will then
know where to look for future questions.
Personally, I've got better things to do with my time than spend
On Mon, 2 Jul 2012, Rob Weissenburger wrote:
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
mktime() and strtotime() will do it, depending on the form your time is
in. The
On Wed, 17 Oct 2012, Richard S. Crawford wrote:
I've confirmed that the server is set to PDT. The value of date.timezone in
php.ini is "America/Los_Angeles", which should be (currently) -8 hours from
UTC, but it looks like the PDT offset is only set to -4. Does that even
make sense?
Actually,
On Thu, 3 Jan 2013, Jim Giner wrote:
The only time I use a single '=' symbol in an if statement is when I forget
to use two of them! Must be my old school, old languages habits but this
style of programming reminds me of the days when we used to pack empty spaces
in assembler code with consta
On Tue, 8 Jan 2013, Arno Kuhl wrote:
Starting with a unix timestamp for 31 December 2012 13:12:12 (which is
1356952332) I calculate a week number:
$ux_date = 1356952332;
$weeknumber = date("W", $ux_date); // returns 01 instead of 52
I'm not that familiar with date, I tend to use strftime m
On Sat, 9 Feb 2013, Jim Giner wrote:
Lately, my web pages are giving me some problems. Once a day or so one or
more of my pages/scripts will give me a 404 error page saying my web page has
timed out. Problem is that the page was just displayed. I click on a link,
the page shows up, I click
Hi,
Apologies if this is covered somewhere but I've searched fairly
extensively and not found anything.
I'm working on an application which has a function for redirecting to a
given URL. This is generally used for redirecting after a form has been
submitted.
Right now it sends an HTTP URL
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote:
The %{HTTPS} variable is not an Apache core variable. A more-portable
solution is to check %{SERVER_PORT} for port 80 or port 443 -- or for "not
port 80" or "not port 443."
ah but this doesn't actually work for me, I get 80 regardless of wh
On Thu, 26 May 2011, ad...@buskirkgraphics.com wrote:
So when you echo $_SERVER['SERVER_PORT'];
You get port 80 even if the url currently is https://www.yoursite.com ?
Yes.
If this is the case good luck. Because you have serious issues.
OK. This on its own is not particularly helpful. Su
On Fri, 27 May 2011, Curtis Maurand wrote:
$_SERVER['HTTPS']
I don't see this at all.
I'm definitely connecting securely. Here are the status lines from Lynx
when surfing to https://MintFM.net/phpinfo.php:
1. Looking up mintfm.net
2. Making HTTPS connection to mintfm.net
3. Ve
On Sun, 29 May 2011, Richard Quadling wrote:
On 29 May 2011 01:36, TR Shaw wrote:
(sorry for the top posting)
Sent from my iPad
Are you telling me that you can't scroll down the page on an iPad?
I refer back to my comment that the "Sent from my iPad/iPhone" is
inherently an apology.
Iro
On Mon, 30 May 2011, Andre Polykanine wrote:
most of you post your messages *after* the quotes. It's
really not comfortable: I use screenreading software here and I need
to scroll with my down arrow key before I see the actual message.
I use screen reading software as well and prefer bott
On Wed, 1 Jun 2011, Ali Asghar Toraby Parizy wrote:
I need to tell something to the user before starting download.
something like "Your download will begin in a moment..." . So header
couldn't help me. If I try to echo anything header doesn't work!
Couldn't you just do an HTML redirect?
On Thu, 2 Jun 2011, Richard Quadling wrote:
There are other possibilities, but they could have legal repercussions
- essentially reversing the encoding may be considered as an attempt
to bypass a copyright protection system which could contravene the
http://en.wikipedia.org/wiki/Digital_Millenni
On Sun, 5 Jun 2011, Tim Streater wrote:
Anyone whose site says that sort of crap needs a good smack.
Don't get me started on Facebook. If they don't like your browser, they
redirect you to their"We don't support your browser page". They don't
even let you try with your unsupported browser,
On Sun, 5 Jun 2011, Richard Riley wrote:
Why do you feel FB should support some antiquated browser that doesnt
support any of the newer technoogies which enable security and more
advanced client side rendering?
I don't. I just don't want them to lock out my browser just because they
don't su
On Sun, 5 Jun 2011, Richard Riley wrote:
I don't. I just don't want them to lock out my browser just because they don't
support it. Many pages which don't work optimally under Lynx can still be read,
which is all I'm wanting to do anyway.
They need to or there can be unintentional side affec
On Sun, 5 Jun 2011, Richard Riley wrote:
If they allowed incompatible browsers that caused havoc then before you
know it the great unwashed would be demanding more and better support or
complaining about lack of functionality. Doing what they do they make it
very clear from day one.
This would
On Wed, 29 Jun 2011, Brian Dunning wrote:
$start = gmdate('Y-m-d\TH:i:s.00\Z', strtotime("yesterday 00:00:00"));
$end = gmdate('Y-m-d\TH:i:s.00\Z', strtotime("yesterday 23:59:59"));
I think this is right, since it's 7 hours off California time, but I
just need someone to double check my spinn
On Wed, 29 Jun 2011, Richard Quadling wrote:
And UTC is not the same as GMT. Ish.
GMT is only valid for 6 months of the year. Then, due to DST, it becomes BST.
UTC is just UTC.
This is incorrect. For all practical purposes, GMT and UTC are the same.
The fact that the time in Greenwich is n
On Wed, 29 Jun 2011, Brian Dunning wrote:
Thanks everyone. It seems to be working correctly. You gave me some
extra peace of mind. I did set the
date_default_timezone_set('America/Los_Angeles') but it looks like that
was in the defaults anyway. :-)
It probably is if this is where your site
On Fri, 8 Jul 2011, Varuna Seneviratna wrote:
I am Using Ubuntu 11.04 Desktop as my OS.Below are the two types of
PHP5 available for installation
php5 - server-side, HTML-embedded scripting language (metapackage)
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
I got the a
On Sun, 10 Jul 2011, Tamara Temple wrote:
On Jul 10, 2011, at 5:38 AM, Negin Nickparsa wrote:
I want to make a batch file and then exec it in php
I have a problem in batch file
wget have been installed in Yast I want to download a RuleFile from
snort.org
I used this on shell:
$ wget
http://w
On Sun, 14 Aug 2011, Alekto Antarctica wrote:
I have tried to implement a cookie to remember the login for 48 hours, but
it still logs the user out after the default 24min for a session like this:
* //We compare the submited password and the real one, and we
check if the user exist
Hi,
I know this is probably more a Drupal question, but I'm guessing some here
have probably had to deal with this.
I've written some PHP code which works just fine on its own. Now someone
wants to include it in their Drupal site, with the regular headers and
footers for their site surround
On Fri, 26 Aug 2011, tamouse mailing lists wrote:
The log says what I said: Premature end of script headers
I put this into Google and got this:
http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature
As I understand it, the webserver is compl
On Mon, 29 Aug 2011, Rico Secada wrote:
You go into your homemade library of code to re-use some piece that you
already are using 12 other places in production. Now, last time you
worked on the code you thought it was almost perfect. While working on
the code this time you find an undiscovered b
On Wed, 31 Aug 2011, rob...@myself.com wrote:
I have the below function with array for satus of issues where I need to have
'Resolved/Closed' visible but not available for choice
This as closing is a separate function to ensure correct resolution code is
selected
Already tried removing 'Resol
On Sat, 1 Oct 2011, Mike Mackintosh wrote:
Best bet would to toss this into either an object or array for
simplification, otherwise that type of syntax would need the use of
eval.
example: eval('echo $trivia_answer_'.$correct_answer.';');
You could do:
$var = "trivia_answer_.$correct_ans
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 is being
executed is either PHP itself or something in
On Sat, 12 Nov 2011, tamouse mailing lists wrote:
I'm curious how others feel about this. When I'm creating an SQL
string, either for a non-prepared or prepared execution, I build it in
a variable and then pass the variable to the query or prepare
function. This lets me easily add something to v
Hi,
A couple of weeks ago, I discovered what I'm pretty sure is a PHP bug.
In addition, I looked in the PHP changelog and I haven't seen any mention
of a fix for it.
I'm writing here because I was wondering if anyone else can confirm it and
what to do about it.
The bug is that if a server'
On Tue, 15 Nov 2011, Jim Lucas wrote:
Also, I recalled something from the early 5.1.0 version that was related to the
introduction of the date_timezone_set() function. So, from there I searched
Google for "php changelog" and found the changelog for php v5. Then I searched
that document for 'da
On Wed, 15 Nov 2011, Tim Streater wrote:
I find I need to do this:
date_default_timezone_set (@date_default_timezone_get ());
in all my scripts since 5.x.x to avoid rude messages.
Apart from the fact that I've not seen the rude messages of which you
speak, even though I expected to, this w
On Thu, 17 Nov 2011, Tedd Sperling wrote:
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 Ti
On Sat, 19 Nov 2011, Tedd Sperling wrote:
My observations are demonstrated here:
http://www.webbytedd.com//strtotime/index.php
this code would IMHO be more useful if it also displayed time, not just
date. It's also not clear what timezone you're using, as it's not set as
far as I can s
On Sat, 19 Nov 2011, Ron Piggott wrote:
Also the formatting of the from field changes in various e-mail programs:
From: Ron Piggott
From: "Ron Piggott"
From: ron.pigg...@actsministries.org
From:
I've also seen:
Piggott, Ron
And that's before you get to people who only use their first na
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, you'll observe
the same results as I did.
NO I wo
Hi,
Apologies if this has moved on, I've not read all my mail from the last
day and a half.
On Mon, 21 Nov 2011, Tedd Sperling wrote:
Let's consider this -- you are in a different time zone than me, right?
You said UTC and mine is America New York. As such you claim is that
your strtotime()
On Mon, 23 Jan 2012, Matty Sarro wrote:
I have been trying to unsubscribe from this list. I've gone through the
directions at http://www.ezmlm.org/ezman/ezman1.html as suggested by
http://us.php.net/mailing-lists.php. They don't seem to apply for these
lists as written (the method listed for uns
On Fri, 17 Feb 2012, Ashley Sheridan wrote:
I would avoid making a user type in something they see in a picture, as
you've just succeeded in pissing off a bunch of blind people.
Thank you! Glad someone pointed this out so I didn't have to.
And if you use a system like Recaptcha which has an
43 matches
Mail list logo