Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
CPT John W. Holmes wrote: Well, the first part is out your butt... :) Yep. I tested it after making the assumption, sure enough I was WRONG. I've got to keep my butt under control, it's getting a little out of hand. To the OP, sorry 'bout that. Erik -- PHP General Mailing List (http://www

Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
> > If you had a constant named "somefile" or "php" and you use the second > > syntax, the constant would be interpolated/evaluated to the value of the > > constant. > > > > Generally I always use single quoted strings unless there's some need > > for double-quoted strings (like if I want to embed

Re: [PHP] What is the difference: include()

2003-03-17 Thread John Nichel
Erik Price wrote: BTW, I'm talking out my butt here. I was wondering what that smell was. :o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Erik Price wrote: If you had a constant named "somefile" or "php" and you use the second syntax, the constant would be interpolated/evaluated to the value of the constant. Generally I always use single quoted strings unless there's some need for double-quoted strings (like if I want to embed

Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price
Charles Kline wrote: What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering... If you had a constant named "somefile" or "php" and you use the second syntax, the constant would be interpolated/evaluated to the value of the const

Re: [PHP] What is the difference: include()

2003-03-17 Thread Kevin Stone
- Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 17, 2003 11:57 AM Subject: [PHP] What is the difference: include() > What is the difference as in... why one or the other? > > include('somef

Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
> What is the difference as in... why one or the other? > > include('somefile.php'); > > include("somefile.php"); > > Just wondering... No difference as far as include() goes. Read the manual on strings to see how PHP treats strings in single and double quotes differently. ---John Holmes... --

Re: [PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
perfect. thanks for the explanation. cheers, charles On Monday, March 17, 2003, at 02:01 PM, Pete James wrote: Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("somefile_{$foo}"); will include the fi

Re: [PHP] What is the difference: include()

2003-03-17 Thread Pete James
Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("somefile_{$foo}"); will include the file 'somefile_bar' HTH. Charles Kline wrote: What is the difference as in... why one or the other? include('some

[PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering... - ck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php