RE: [WSG] PHP Question...
?php is more reliable - you can configure a server to ignore "?" as an opening PHP tag (short_tags i think the directive is from memory). for compatibilities sake, you should always use the ?php tag in your coding, but if short tags are enabled, then technically the 2 are the same (both just define a block of PHP code) Beau --Beau LebensInformation Architect[EMAIL PROTECTED]Dented Reality - www.dentedreality.com.auInformation Architecture, Usability, Web Development -Original Message-From: Chris Stratford [mailto:[EMAIL PROTECTED]Sent: Monday, 8 December 2003 7:07 PMTo: [EMAIL PROTECTED]Subject: [WSG] PHP Question... Hey People! Sorry me again Wondering, what is the difference between using: ? /* php code */? as opposed to: ?PHP /* php code */ ? Chris Stratford [EMAIL PROTECTED] www.neester.com
RE: [WSG] PHP Question...
Another thing to consider is XML. Some people (myself included) create XML files on a regular basis. The PHP short tag ? can easily be confused by XML parsers, because it is the same as the beginning of a Processing Instruction. For example:?xml version="1.0" encoding="iso-8859-1" ? The problem doesn't usually arise, because the server strips the page of PHP as it is being served; however, it is better to be safe than sorry, eh? --Simon Jesseybusiness: http://keystonewebsites.com/personal: http://jessey.net/blog/e: [EMAIL PROTECTED] -Original Message-From: Beau Lebens [mailto:[EMAIL PROTECTED]Subject: RE: [WSG] PHP Question... ?php is more reliable - you can configure a server to ignore "?" as an opening PHP tag (short_tags i think the directive is from memory). for compatibilities sake, you should always use the ?php tag in your coding, but if short tags are enabled, then technically the 2 are the same (both just define a block of PHP code) -Original Message-From: Chris Stratford [mailto:[EMAIL PROTECTED]Subject: [WSG] PHP Question... Wondering, what is the difference between using: ? /* php code */? as opposed to: ?PHP /* php code */ ?
Re: [WSG] Generated Content
I'm wondering if anyone out there can point me to an article or crib-sheet discussing the current support for generated content in CSS2. Such as are discussed here http://www.richinstyle.com/guides/generated2.html. I would like to use counters to add numbering to headings in web-versions of some technical documents. Allo, See here: http://www.literarymoose.info/=/article/conquistadors.html 3 pages full of generated content. Enjoy! M. p.s. IE will see nothing, hear nothing... so it's safe to use GC. * The discussion list for http://webstandardsgroup.org/ *
Re: [WSG] PHP Question...
Beau Lebens wrote: ?php is more reliable - you can configure a server to ignore ? as an opening PHP tag (short_tags i think the directive is from memory). for compatibilities sake, you should always use the ?php tag in your coding, but if short tags are enabled, then technically the 2 are the same (both just define a block of PHP code) For the 0.3 ASP programmers at WSG (I used to be one, but not anymore *grin* and I don't know how many there are here), when learning PHP, you can enable an ASP style of tag delimiter % /* php code here */ %. I've never used it myself, but I gather the shorttag vs specifying the full %php rules still apply. within httpd.conf / .htaccess the directive takes the form (i think) php_admin_value asptags on|off It's also available in php.ini and can be set using the ini_set() function Although the feature seems utterly useless in my opinion. When using a programming language, I believe that you should stay within the bounds of the language syntax structure rather than modifying it to suit another, let alone another language that I don't like. :) -- /--\ |Adam Carmichael, A+, 2xMCP (Windows 2000), Cert IV Helpdesk Admin | |[EMAIL PROTECTED] /( _,-,_ )\ _| |_ /,|| | |#1 Computer Services \`/ \'/ _| |_|| | |BSD/UNIX Network Engineer\ /o\ /o\ /| |_||_ | \--/ * The discussion list for http://webstandardsgroup.org/ *