[PHP] include working....but confusion

2004-01-20 Thread Ryan A
Hi, A bit confused here... this is my programs logic: if(multipleProducts==1) {include multiple_products_looping_code.php;} else {include single_products_code.php;} I am doing the above because some of the code is pretty big and it makes life simlier if I just add the code when I need it. Only

Re: [PHP] include working....but confusion

2004-01-20 Thread CPT John W. Holmes
From: Ryan A [EMAIL PROTECTED] Do I have to start and end the included files with ?php ? ? Yes. One day you'll learn to spend the two seconds trying this instead of asking the list. I'll be so proud of you then! ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] include working....but confusion

2004-01-20 Thread Ryan A
Hey, Thanks for the very informative reply but I did try itproblem is, it seems to work with and without...thats why the confusion. I have one program like the one i outlined and the second one, like this: some html code goes here some output stuff goes here something ? php stuff? something

Re: [PHP] include working....but confusion

2004-01-20 Thread CPT John W. Holmes
From: Ryan A [EMAIL PROTECTED] Thanks for the very informative reply but I did try itproblem is, it seems to work with and without...thats why the confusion. I have one program like the one i outlined and the second one, like this: some html code goes here some output stuff goes here

Re: [PHP] include working....but confusion

2004-01-20 Thread Ryan A
Hey, Now, that being said, there was a discussion on here a while ago that you don't _really_ have to close PHP mode at the end of your file and there were certain pros and cons to doing so. Adapt to your needs. Sounds like I missed a good discussion because I was awayany idea of what the

Re: [PHP] include working....but confusion

2004-01-20 Thread John Nichel
Ryan A wrote: snip Do I have to start and end the included files with ?php ? ? Yes. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include working....but confusion

2004-01-20 Thread Justin French
On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: Do I have to start and end the included files with ?php ? ? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the examples show what you need to know too. Read the manual, and

Re: [PHP] include working....but confusion

2004-01-20 Thread Robert Cummings
On Tue, 2004-01-20 at 18:07, Justin French wrote: On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: Do I have to start and end the included files with ?php ? ? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the