php-general Digest 10 May 2011 02:33:58 -0000 Issue 7305

Topics (messages 312730 through 312736):

Re: [PHP-WEBMASTER] Simple question
        312730 by: Richard Quadling

Re: Bold links
        312731 by: tedd
        312732 by: Andre Polykanine
        312733 by: Micky Hulse
        312734 by: Joshua Kehn
        312735 by: Micky Hulse

Error Reporting/Display Errors Issues?
        312736 by: Mike Mackintosh

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On 9 May 2011 15:59, Vincent McGinley <[email protected]> wrote:
> Notice:  Undefined variable: Product in
> /Applications/MAMP/htdocs/Pages/Products/Bamboo_Zoo/index.php on line 181
>

And there's the issue.

In your old system, you probably had something called
"register_globals" enabled.

Please read http://php.net/manual/en/security.globals.php



-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
At 1:39 PM -0400 5/7/11, <[email protected]> wrote:
<?php global $current_user;
       get_currentuserinfo();

       echo 'Welcome &nbsp;<B>' . $current_user->user_firstname . "</B>\n";
       echo '<B>' . $current_user->user_lastname . "</B>\n";
?>

Richard L. Buskirk

Really?

How does the blind via readers, such as JAWS, understand what a <B> is?

First, never use <B> -- or <I> for that matter.

Second, use <strong> or <em> instead. Readers can understand and render STRONG and EMPHASIZED text, but not <B> and <I> text -- those tags mean nothing and that's the reason why they are not encouraged for use and even removed from XHTML.

Third, if neither of those tags (i.e., <strong> or <em> ) work for you, they try using a class (or an id) with a css rule of:

.whatever
   {
    font-weight: bold;
   }

or

#whatever
   {
    font-weight: bold;
   }

Cheers,

tedd

--
-------
http://sperling.com/

--- End Message ---
--- Begin Message ---
Hello tedd,

I'm standing up and applauding you.
Really, I'm... quite touched. There are too few people that care about
us,  I  mean,  JAWS  users.  Of course, we, my wife and I, develop accessible 
websites
ourselves but... there is lots of inaccessible stuff out there.

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

------------ Original message ------------
From: tedd <[email protected]>
To: [email protected]
Date created: , 12:56:34 AM
Subject: [PHP] Bold links


      At 1:39 PM -0400 5/7/11, <[email protected]> wrote:
><?php global $current_user;
>        get_currentuserinfo();
>
>        echo 'Welcome &nbsp;<B>' . $current_user->user_firstname . "</B>\n";
>        echo '<B>' . $current_user->user_lastname . "</B>\n";
>?>
>
>Richard L. Buskirk

Really?

How does the blind via readers, such as JAWS, understand what a <B> is?

First, never use <B> -- or <I> for that matter.

Second, use <strong> or <em> instead. Readers can understand and 
render STRONG and EMPHASIZED text, but not <B> and <I> text -- those 
tags mean nothing and that's the reason why they are not encouraged 
for use and even removed from XHTML.

Third, if neither of those tags (i.e., <strong> or <em> ) work for 
you, they try using a class (or an id) with a css rule of:

.whatever
    {
     font-weight: bold;
    }

or

#whatever
    {
     font-weight: bold;
    }

Cheers,

tedd

-- 
-------
http://sperling.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
On Mon, May 9, 2011 at 2:56 PM, tedd <[email protected]> wrote:
> Really?
> How does the blind via readers, such as JAWS, understand what a <B> is?
> First, never use <B> -- or <I> for that matter.
> Second, use <strong> or <em> instead. Readers can understand and render
> STRONG and EMPHASIZED text, but not <B> and <I> text -- those tags mean
> nothing and that's the reason why they are not encouraged for use and even
> removed from XHTML.
> Third, if neither of those tags (i.e., <strong> or <em> ) work for you, they
> try using a class (or an id) with a css rule of:

[OT]

Tedd, it seems like you are spreading a little bit of mis-information here.

* <i> — was italic, now for text in an “alternate voice,” such as
foreign words, technical terms and typographically italicized text
* <b> — was bold, now for “stylistically offset” text, such as
keywords and typographically emboldened text (W3C:Markup, WHATWG)
* <em> — was emphasis, now for stress emphasis, i.e., something you’d
pronounce differently (W3C:Markup, WHATWG)
* <strong> — was for stronger emphasis, now for strong importance,
basically the same thing (stronger emphasis or importance is now
indicated by nesting) (W3C:Markup, WHATWG)

– http://html5doctor.com/i-b-em-strong-element/

Seems to me the original posted just wanted to "stylistically offset"
or "bold" the last name... I dunno, maybe I am wrong, but here's no
good reason to stress "stronger" emphasis on the last name.

There's a time and a place and a reason to use one over the other.

Also, I don't think <b> and <i> have been removed from XHTML... In
fact, they are not even deprecated in XHTML.

Ok, getting off of my soapbox now. :D

[/OT]

--- End Message ---
--- Begin Message ---
On Monday, May 9, 2011 at 6:53 PM, Micky Hulse wrote:
On Mon, May 9, 2011 at 2:56 PM, tedd <[email protected]> wrote:
> > Really?
> > How does the blind via readers, such as JAWS, understand what a <B> is?
> > First, never use <B> -- or <I> for that matter.
> > Second, use <strong> or <em> instead. Readers can understand and render
> > STRONG and EMPHASIZED text, but not <B> and <I> text -- those tags mean
> > nothing and that's the reason why they are not encouraged for use and even
> > removed from XHTML.
> > Third, if neither of those tags (i.e., <strong> or <em> ) work for you, they
> > try using a class (or an id) with a css rule of:
> 
> [OT]
> 
> Tedd, it seems like you are spreading a little bit of mis-information here.
> 
> * <i> — was italic, now for text in an “alternate voice,” such as
> foreign words, technical terms and typographically italicized text
> * <b> — was bold, now for “stylistically offset” text, such as
> keywords and typographically emboldened text (W3C:Markup, WHATWG)
> * <em> — was emphasis, now for stress emphasis, i.e., something you’d
> pronounce differently (W3C:Markup, WHATWG)
> * <strong> — was for stronger emphasis, now for strong importance,
> basically the same thing (stronger emphasis or importance is now
> indicated by nesting) (W3C:Markup, WHATWG)
> 
> – http://html5doctor.com/i-b-em-strong-element/
> 
> Seems to me the original posted just wanted to "stylistically offset"
> or "bold" the last name... I dunno, maybe I am wrong, but here's no
> good reason to stress "stronger" emphasis on the last name.
> 
> There's a time and a place and a reason to use one over the other.
> 
> Also, I don't think <b> and <i> have been removed from XHTML... In
> fact, they are not even deprecated in XHTML.
> 
> Ok, getting off of my soapbox now. :D
> 
> [/OT]
If you are only make the last name bold for stylistic purposes you should use 
CSS and a class. If you have text that needs to be <em>phasized or <strong>ly 
put use the appropriate tags.

Regards,

-Josh
____________________________________________
Joshua Kehn | [email protected]
http://joshuakehn.com


--- End Message ---
--- Begin Message ---
On Mon, May 9, 2011 at 4:18 PM, Joshua Kehn <[email protected]> wrote:
> If you are only make the last name bold for stylistic purposes you should
> use CSS and a class. If you have text that needs to be <em>phasized or
> <strong>ly put use the appropriate tags.

Hrmm, I personally don't think there is anything wrong with <b> in this case.

Span tag, or whatever (with a class, optionally, or however you prefer
to mark things up), would work too... but, IMHO, there is absolutely
nothing wrong with <b>.

To each their own I guess. :)

Cheers,
Micky

--- End Message ---
--- Begin Message ---
Anyone else notice PHP throwing Warning and Notices even when display errors 
and error reporting disabled?

I compiled PHP with the following:

'./configure'  '--prefix=/usr/local/php-5.3.3' '--enable-cli' '--disable-debug' 
'--disable-rpath' '--disable-static' '--with-pic' '--with-openssl=/usr' '--enab
le-bcmath' '--with-bz2' '--enable-calendar' '--enable-ctype' '--with-curl' 
'--with-zlib-dir=/usr' '--with-xsl' '--enable-exif' '--enable-ftp' '--with-gd' 
'--enable-gd-native-ttf' '-
-with-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' 
'--with-freetype-dir=/usr' '--with-gettext' '--with-iconv' '--with-imap' 
'--with-kerberos=/usr' '--with-imap-ssl=/usr' '--ena
ble-mbstring' '--with-mcrypt' '--with-mhash' '--with-mime-magic' 
'--with-mysql=/usr/local/mysql-5.1.49' '--with-pcre-regex=/usr' 
'--with-pspell=/usr' '--enable-sockets' '--enable-wd
dx' '--with-xmlrpc' '--with-zlib=/usr' '--with-pear' '--with-layout=GNU' 
'--with-ldap' '--enable-pdo' '--enable-soap' 
'--with-apxs2=/usr/local/apache-2.2.16/bin/apxs' '--enable-pcnt
l' '--enable-mailparse' '--enable-zip' '--with-zip=/usr' '--with-bz2=/usr' 
'--with-config-file-path=/etc' 
'--with-config-file-scan-dir=/usr/local/php-5.3.3/etc' '--with-pdo-mysql=/u
sr/local/mysql-5.1.49' '--with-openssl=/usr'

I have also set the following:

display_errors => Off => Off
display_startup_errors => Off => Off
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 0 => 0

But i continue to receive Strict/Notice and Warnings in code that i wish to be 
hidden.

Any suggestions?

Thanks,

Mike

--- End Message ---

Reply via email to