note 9182 added to virtual

From: Date: Sat, 21 Oct 2000 03:35:57 +0000
Subject: note 9182 added to virtual
Groups: php.notes 
Request: Send a blank email to php-notes+get-6789@lists.php.net to get a copy of this message
The docs above say that the Virtual() function is supposed to be equivalent to <!--#include virtual...--> in mod_include. However, I am trying to include a .jsp file in my page. I use this command in a .shtml file: <!--#include virtual="sample.jsp" --> and that works just fine. However, when I try a similar statement in PHP, the include doesn't work: <?php virtual("sample.jsp"); ?> Instead of including the sample.jsp file, it includes the contents of the current file (index.php)! Is that weird or what? Anyone else tried to include a JSP file inside PHP with the 'virtual' tag? --dante http://www.php.net/manual/function.virtual.php

« previous php.notes (#6789) next »