Re: [PHP] style

2006-04-06 Thread Brad Bonkoski
short_open_tag Dallas Cahker wrote: What is that called and where in the php.ini file do I enable it? Sorry if this is a stupid question but since I dont know what its called it makes it difficult to google it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] style

2006-04-06 Thread Dan McCullough
Short tags in the php.ini file. On 4/6/06, Dallas Cahker <[EMAIL PROTECTED]> wrote: > What is that called and where in the php.ini file do I enable it? Sorry if > this is a stupid question but since I dont know what its called it makes it > difficult to google it. > > -- PHP General Mailing Lis

[PHP] style

2006-04-06 Thread Dallas Cahker
What is that called and where in the php.ini file do I enable it? Sorry if this is a stupid question but since I dont know what its called it makes it difficult to google it.

Re: [PHP] Re: php style guides

2005-01-12 Thread Tom
Something I've laboured over for years, in various languages (same issue in perl, ASP, JSP...). My personal preference depends on how much of what is being dumped. If it's a really simple page, then do it in line, I tend to indent it as a seperate tree to the php code (ie there are two staggers)

Re: [PHP] Re: php style guides

2005-01-12 Thread Jochem Maas
Jason Barnett wrote: Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? Please do not flame me here, different strokes for different folks! :-) ... And that's fine. The main thing is: aim for consist

Re: [PHP] php style guides

2005-01-12 Thread Jochem Maas
Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? I generally have my own preference for formatting like if ( condition ) { statements; } which personally I think is ugly and a waste of space ;-) (a

[PHP] Re: php style guides

2005-01-12 Thread Jason Barnett
Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? Please do not flame me here, different strokes for different folks! If you're entirely new to coding in PHP ... and you don't have a codebase already

Re: [PHP] php style guides

2005-01-12 Thread Zouari Fourat
try http://pear.php.net/manual/en/standards.php On Wed, 12 Jan 2005 23:34:59 +1030, Tim Burgan <[EMAIL PROTECTED]> wrote: > Hi everyone, > > What 'rules' do you follow about styling/formatting your PHP code? Do > you follow a guide that is available online? > > I generally have my own preferenc

[PHP] Re: php style guides

2005-01-12 Thread Matthew Weier O'Phinney
* Tim Burgan <[EMAIL PROTECTED]>: > What 'rules' do you follow about styling/formatting your PHP code? Do > you follow a guide that is available online? PEAR standards are fairly well-accepted: http://pear.php.net/manual/en/standards.php > I generally have my own preference for formatting like >

[PHP] php style guides

2005-01-12 Thread Tim Burgan
Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? I generally have my own preference for formatting like if ( condition ) { statements; } for all conditional statements and loops, as opposed to if (condition) { st

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Christophe Chisogne
Adam Bregenzer wrote: You have to use javascript or some other client side language to change anything on a page once it is loaded in the browser. Perhaps with a minor exception: with mozilla, you can select a stylesheet to apply (menu view / use style). From the CSS 1 spec [1]: The 'LINK' element

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Adam Bregenzer
On Wed, 2004-02-04 at 04:47, Freedomware wrote: > Hm... I haven't found Kumar's style sheet switcher post yet, but if > you say it can't be done, I'll take your word for it. The problem here is your approach. PHP can only be used to control the content sent to browsers. Once the browser rec

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Freedomware
Hm... I haven't found Kumar's style sheet switcher post yet, but if you say it can't be done, I'll take your word for it. Thanks for the tip. Raditha Dissanayake wrote: Hi, This is explained in Kumar's mail which was sent out a little while ago. If you didn't see it an older version is arc

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload pages?

2004-02-04 Thread Raditha Dissanayake
Hi, This is explained in Kumar's mail which was sent out a little while ago. If you didn't see it an older version is archived here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html but in short it can't be done. Does anyone know if there's a PHP method that does NOT involve reload

[PHP] Is there a PHP Style Sheet Switcher that doesn't reload pages?

2004-02-04 Thread Freedomware
I have a JavaScript style sheet switcher that works quite nicely, but I want to make a MULTI-style switcher; one that lets you switch various items independently of one another. It sounds like it can be done with either PHP or JavaScript, each with its own advantages. The biggest disadvantage w

[PHP] PHP Style Switchers - Recommendations?

2004-01-30 Thread Freedomware
I've been using JavaScript style switchers combined with "alternate style sheets," allowing users to control the appearance of my web pages. However, I recently read that you can make style switchers with PHP - which are allegedly superior to JavaScript style sheets. Then I fou

[PHP] PHP Style Conventions

2003-02-15 Thread John Wells
Looking for info on recommended PHP style conventions. I've seen the Pear style conventions, and they seem fairly good, but I'm interested in something that covers more ground, like what's the best way to name included files (*.inc?) class files, etc., what's the recommend

RE: [PHP] OO-PHP Style question

2002-04-10 Thread Martin Towell
A 7. see if changes are shown in B -Original Message- From: Alok K. Dhir [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 6:52 AM To: [EMAIL PROTECTED] Subject: [PHP] OO-PHP Style question (sent this to the wrong list the first time - apologies in advance) Given an app with t

[PHP] OO-PHP Style question

2002-04-10 Thread Alok K. Dhir
(sent this to the wrong list the first time - apologies in advance) Given an app with the following overall class structure: Base.class { function Base() { ##initialize stuff } } A.class extends Base { var $var; var $b; function A() {