RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard 
on Thursday, September 29, 2005 1:34 PM said:

> 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 %>
> 

Wow. I didn't think that would work! haha

> Nuts, huh?

Yes.



C.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Satyam
A real interesting challenge and when I first read it I thought the same 
thing, instead of using the short form of tags, using a more extended form 
such as

RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Jay Blanchard
[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 %>


Interestingly enough, the following worked ...but I will not use it in
production;



<%
response.write("fooID")
%>



returned

SELECT foo FROM bar where fooID = '4'

Nuts, huh?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Miles Thompson

At 03:02 PM 9/29/2005, Jay Blanchard wrote:

I have a situation where I have to fix an app interface that was constructed
with hundreds of lines of VBScript. The quickest way for me to do this would
be to replace the offending VBScipt with PHP. Does anyone see any potential
problems with doing this? I did a diagram on paper and see no gotcha's..TIA

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Jay,

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?


Wow - Miles 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard 
on Thursday, September 29, 2005 11:03 AM said:

> I have a situation where I have to fix an app interface that was
> constructed with hundreds of lines of VBScript. The quickest way for
> me to do this would be to replace the offending VBScipt with PHP.
> Does anyone see any potential problems with doing this? I did a
> diagram on paper and see no gotcha's..TIA 

You don't mean within the same file do you? If so (though I doubt it)
I'm sure there will be lots of problems! 

On the other hand if you're just having one file (that may be written in
vbs) talk to another file (PHP perhaps) via GET, POST, or COOKIE I don't
see why you would have a problem. Working with the SESSION might be a
problem though.


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php