php-general Digest 17 Nov 2011 01:14:42 -0000 Issue 7571
Topics (messages 315711 through 315720):
Re: Safari and PDF
315711 by: Tim Streater
315714 by: Tommy Pham
Re: Sniping on the List
315712 by: Ashley Sheridan
{} forms
315713 by: Tim Streater
315715 by: Richard Quadling
315716 by: Tim Streater
315719 by: Robert Cummings
Re: Think I found a PHP bug
315717 by: Geoff Shang
315718 by: Geoff Shang
no regrets after doing this venture...
315720 by: Nirmalya Lahiri
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On 16 Nov 2011 at 12:13, HallMarc Websites <m...@hallmarcwebsites.com> wrote:
> Seems strange that you are given a choice. My clients have been telling me
> that they are told to get the latest Acrobat Reader by Safari. Which they have
> done (again why allow a plugin that isn't supported get installed to begin
> with) only to be told the same exact thing the next time the click on a pdf.
Perhaps they just need to completely de-install the Acrobat plugin. When a PDF
is in a Safari widow, there is a fade-in/fade-out
type of array of things you can click on at the bottom of the window (not good
UI, IMO, but there it is). You can choose to open in Preview, Save, or
increase/decrease zoom. If you do nothing then the array fades out, but
reappears if you mouse down there. As I say, I've not had, or needed, Acrobat
Reader on a Mac for some 10 years. Trouble is, all these sites telling you to
download this PDF and "needs Acrobat Reader" which is complete cock.
> Anyway, I realize this topic is now slightly off list.
True but I think you needed a rant :-)
--
Cheers -- Tim
--- End Message ---
--- Begin Message ---
On Wed, Nov 16, 2011 at 4:13 AM, HallMarc Websites
<m...@hallmarcwebsites.com> wrote:
> Seems strange that you are given a choice. My clients have been telling me
> that they are told to get the latest Acrobat Reader by Safari. Which they
> have done (again why allow a plugin that isn't supported get installed to
> begin with) only to be told the same exact thing the next time the click on a
> pdf. Anyway, I realize this topic is now slightly off list.
>
>
Perhaps their system administrator / tech support person doesn't know
any better about what's available in OS X and decided to install
Acrobat Reader?
Regards,
Tommy
--- End Message ---
--- Begin Message ---
Now, if you have ANY idea who I am
Does anyone know who this guy is, as he seems to have forgotten :p
--
Thanks!
-Shawn
http://www.spidean.com
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
I'm looking at the source of a web sockets server and I see these various forms:
"ws://{$host}{$path}"
"HTTP/1.1 ${status}\r\n"
Are these simply equivalent to:
"ws://" . $host . $path
"HTTP/1.1 " . $status . "\r\n";
and if so, is there any particular benefit to using that form? Or if not, what
do they mean?
(I've read up about variable variables).
Thanks,
--
Cheers -- Tim
--- End Message ---
--- Begin Message ---
On 16 November 2011 13:56, Tim Streater <t...@clothears.org.uk> wrote:
> I'm looking at the source of a web sockets server and I see these various
> forms:
>
> "ws://{$host}{$path}"
> "HTTP/1.1 ${status}\r\n"
>
> Are these simply equivalent to:
>
> "ws://" . $host . $path
> "HTTP/1.1 " . $status . "\r\n";
>
> and if so, is there any particular benefit to using that form? Or if not,
> what do they mean?
>
> (I've read up about variable variables).
>
> Thanks,
>
> --
> Cheers -- Tim
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
If you want to embed $array[CONSTANT], then the {} is used.
I use {} out of habit for non arrays. Not sure if there is an impact.
http://docs.php.net/manual/en/language.types.string.php#example-71
shows the use.
Oh. I've fixed the layout bug for
http://docs.php.net/manual/en/language.types.string.php#example-70.
--
Richard Quadling
Twitter : EE : Zend : PHPDoc : Fantasy Shopper
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea :
fan.sh/6/370
--- End Message ---
--- Begin Message ---
On 16 Nov 2011 at 14:27, Richard Quadling <rquadl...@gmail.com> wrote:
> If you want to embed $array[CONSTANT], then the {} is used.
>
> I use {} out of habit for non arrays. Not sure if there is an impact.
>
> http://docs.php.net/manual/en/language.types.string.php#example-71
> shows the use.
>
> Oh. I've fixed the layout bug for
> http://docs.php.net/manual/en/language.types.string.php#example-70.
Ah *that's* where it was hiding. Thanks - got it now.
--
Cheers -- Tim
--- End Message ---
--- Begin Message ---
On 11-11-16 09:27 AM, Richard Quadling wrote:
On 16 November 2011 13:56, Tim Streater<t...@clothears.org.uk> wrote:
I'm looking at the source of a web sockets server and I see these various forms:
"ws://{$host}{$path}"
"HTTP/1.1 ${status}\r\n"
Are these simply equivalent to:
"ws://" . $host . $path
"HTTP/1.1 " . $status . "\r\n";
and if so, is there any particular benefit to using that form? Or if not, what
do they mean?
(I've read up about variable variables).
If you want to embed $array[CONSTANT], then the {} is used.
I use {} out of habit for non arrays. Not sure if there is an impact.
The braces are also used when the characters following the variable are
also valid variable name characters :)
Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
--- End Message ---
--- Begin Message ---
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 'date_' and found that under the 5.1.0 they added the above
function. How it is stated, it makes me think that PHP now requires you to call
this function prior to any use of other date functions. I cannot find anything
in the php manual confirming my last statement. YMMV
If you don't use date_default_timezone_set(), it's supposed to use the
server timezone. I recalled reading that a notice/warning would be logged
if you did this, but like you, I can't find any reference to this now.
I've searched my apache error logs and can't find anything there either,
which seems to suggest that this in fact is not the case.
In case it wasn't obvious in my original post, this worked just fine
during UK summer time. It's only since the clocks changed two weeks ago
that PHP has been thinking that the server timezone is UTC rather than
Europe/London.
Geoff.
--- End Message ---
--- Begin Message ---
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 won't help in this case.
date_default_timezone_get() is returning the wrong timezone.
Geoff.
--- End Message ---
--- Begin Message ---
<p>Hi Friend!<br>I knew things couldnt get any worse I consider myself lucky to
have found this now im in this for the long run you should consider trying
it<br><a
href="http://lacadenasport.es/profile/31AlanWalsh/">http://lacadenasport.es/profile/31AlanWalsh/</a><br>see
you.</p>
--- End Message ---