Re: Re[3]: [PHP] How to argue with ASP people...
It should be noted that the MS KnowledgeBase article about trying to do a dynamic include (as of when I last used ASP, years ago) made absolutely NO mention of using: !--#include %=FileName% --! and tells you to just 'read' and 'print' the file -- which doesn't execute the ASP at all, and there is no 'eval' function (as far as I could find). So, assuming this #include stuff actually works, I guess it's just the documentation that sucked, not the actual technology. For *THIS* problem. I fought with ASP for only a few months, but it felt like years, and I hated every minute of it. I actually wrote comments in ASP like: % /* Microsoft sucks, Microsoft sucks Can't moveFirst in an empty record set */ % My co-workers knew when such comments were written, since I would sing them as I typed. (Yes, really) I had a lonng song before that two months was up... Boolean expressions don't short-circuit is another verse I recall, off the top of my head. Sadly, I lost all my copies of that song/project. Oh well. If somebody out there actually *LIKES* ASP VBScript programming, more power to them -- So long as I don't have to ever use it again, I don't care what you use. Oh yeah, here's a good one: *EVERY* error message coming back from SQL Server had the same error number -- Even when the error *message* was different! That's got to be in the running for dumbest software design choice on the planet. TimeLife music presents a collection unlike any other. **The Best of Richard Lynch** Remember the classics such as - Microsoft Sucks, Microsoft Sucks! - Can't moveFirst in an Empty Record Set - Boolean Expressions Don't Short-Circuit and the ever classic - ASP, I Think It's Giving Me Cancer of the Rectum And for a limited time, we'll include documentation that leaves out most of what you're looking for. Order yours today! -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[3]: [PHP] How to argue with ASP people...
On Tue, 4 Jan 2005, Richard Davey wrote: Hello Ron, Tuesday, January 4, 2005, 5:59:31 PM, you wrote: RC You then do %=filen% to go back into ASP to get the value of the RC variable into the HTML code that you wrote. ASP is not including the file, RC it is only supplying a file name for SSI includes whether apache SSI or RC IIS SSI. The server parsing the HTML recognizes the HTML comment is RC sentax for server side include and includes the suppplied file name. Perhaps this is a better example for you: script1.asp % StrName = bob % script2.asp !--#include file=script1.asp-- % Response.Write Hello StrName % Clearer now? I understand what you're saying perfectly, but in the context of ASP scripts I am afraid it's wrong. Best regards, Richard Davey -- With this new example you are still using SSI from the web server to include an ASP file. ASP itself is not including the file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[3]: [PHP] How to argue with ASP people...
[snip] ...stuff... [/snip] I think we can all agree that PHP and ASP can do the same things, so the one glaring difference is COST. An efficient Apache / PHP server can be set up for much less than an IIS / ASP server, even if you take the same 'box' to do it with. Given the same 'box' you will find the Apache / PHP server to be much more efficient. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[3]: [PHP] How to argue with ASP people...
On Wed, 5 Jan 2005, Jay Blanchard wrote: [snip] ...stuff... [/snip] I think we can all agree that PHP and ASP can do the same things, so the one glaring difference is COST. An efficient Apache / PHP server can be set up for much less than an IIS / ASP server, even if you take the same 'box' to do it with. Given the same 'box' you will find the Apache / PHP server to be much more efficient. I totally agree and would add more secure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[3]: [PHP] How to argue with ASP people...
It should be noted that the MS KnowledgeBase article about trying to do a dynamic include (as of when I last used ASP, years ago) made absolutely NO mention of using: !--#include %=FileName% --! and tells you to just 'read' and 'print' the file -- which doesn't execute the ASP at all, and there is no 'eval' function (as far as I could find). So, assuming this #include stuff actually works, I guess it's just the documentation that sucked, not the actual technology. For *THIS* problem. I fought with ASP for only a few months, but it felt like years, and I hated every minute of it. I actually wrote comments in ASP like: % /* Microsoft sucks, Microsoft sucks Can't moveFirst in an empty record set */ % My co-workers knew when such comments were written, since I would sing them as I typed. (Yes, really) I had a lonng song before that two months was up... Boolean expressions don't short-circuit is another verse I recall, off the top of my head. Sadly, I lost all my copies of that song/project. Oh well. If somebody out there actually *LIKES* ASP VBScript programming, more power to them -- So long as I don't have to ever use it again, I don't care what you use. Oh yeah, here's a good one: *EVERY* error message coming back from SQL Server had the same error number -- Even when the error *message* was different! That's got to be in the running for dumbest software design choice on the planet. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[3]: [PHP] How to argue with ASP people...
Hello Ron, Tuesday, January 4, 2005, 5:59:31 PM, you wrote: RC You then do %=filen% to go back into ASP to get the value of the RC variable into the HTML code that you wrote. ASP is not including the file, RC it is only supplying a file name for SSI includes whether apache SSI or RC IIS SSI. The server parsing the HTML recognizes the HTML comment is RC sentax for server side include and includes the suppplied file name. Perhaps this is a better example for you: script1.asp % StrName = bob % script2.asp !--#include file=script1.asp-- % Response.Write Hello StrName % Clearer now? I understand what you're saying perfectly, but in the context of ASP scripts I am afraid it's wrong. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know everything. - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[3]: [PHP] How to argue with ASP people...
--- Richard Davey [EMAIL PROTECTED] wrote: Perhaps this is a better example for you: script1.asp % StrName = bob % script2.asp !--#include file=script1.asp-- % Response.Write Hello StrName % Clearer now? It looked to me like he understood before. If your example is the only way to include files, it demonstrates that ASP cannot do it (ASP stuff happens between % and %), but that this limitation doesn't prevent an ASP developer from modularizing code when there is support for SSI. The point is that you're relying on a mechanism in the server (e.g., Apache or IIS) and not in the language. The include and require language constructs in PHP can be used independently of support for SSI. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php