Re: PHP include before or after Apache SSI?
| From: | Andrew W | Date: | Wed, 15 Sep 2004 19:21:53 +0000 |
| Subject: | Re: PHP include before or after Apache SSI? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196780@lists.php.net to get a copy of this message | ||
On 13 Sep 2004, at 19:11, Ed Lazor wrote:
Why use SSI? PHP's include directive allows you to bring separate pages together for creating an overall page. You can include .html files. Also, PHP programming isn't *required* in a file with the php extension.I had wondered about that but I must be using it wrong because when I include a section of code it doesn't include the source it includes the output - if that makes sense. In other words suppose I had a file which contained the interfeace HTML and took an argument like this file1.php?id=value now suppose the actual PHP code which took that id=value and did some processing with it was in another file, file2.php, in order to get the value to file2.php file1 would have to include the following: $id = $_REQUEST['id']; include 'file1.php?id=$value'; In other words the arguments have to be passed accross twice. What am I doing wrong?