RE: [PHP] Mixing PHP & VBSCript
| From: | Jay Blanchard | Date: | Thu, 29 Sep 2005 20:33:53 +0000 |
| Subject: | RE: [PHP] Mixing PHP & VBSCript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223429@lists.php.net to get a copy of this message | ||
[snip]
Your new job is getting real interesting!
Did you try it on a test file? If it works then the parsing in the web
server can be overloaded, for lack of a better term.
So whether the extension is .asp or .php, watch for the tags and treat them
appropriately, that it?
[/snip]
Darn right 'wow'!
I can keep the ASP seperate from the PHP by use of the proper tags for this
instance. So...
<% stuff here gets executed by ASP %>
<?php stuff here gets executed by PHP ?>
Interestingly enough, the following worked ...but I will not use it in
production;
<?php
$sql = "SELECT foo FROM bar where fooID = ' ";
?>
<%
response.write("fooID")
%>
<?php
$sql .= "' ";
echo $sql . "\n";
?>
returned
SELECT foo FROM bar where fooID = '4'
Nuts, huh?