RE: [PHP-WIN] <Script language=php???

From: Date: Sat, 26 Oct 2002 16:13:17 +0000
Subject: RE: [PHP-WIN] <Script language=php???
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16567@lists.php.net to get a copy of this message
Don't know if this will help, but it looks to me that you are trying to identify a browser based scripting language in html format; <script language="php"> For that to work, Netscape and IE would need to be able to execute your code, and as of my last check that wasn't even in the works. PHP is designed to run "server side", not "browser side". To your second question; ASP is a server side language running under IIS, and if installed properly PHP is also. That does not mean that you can switch to PHP coding in a ASP script, but there should be ways that they can interface. Haven't tried this but if you have a way in ASP to invoke another URL (Include may not do the trick) something like PHP's $fp = fopen("http://www.yourdomain.com/info/test.php?parm1=5&parm2=3","r"); $info = fread($fp,2048); Notice that you can pass parameters in the "get" format to the URL, and $info contains the data generated by the PHP script (there should be some equivalent technique in ASP). This technique should work with relative URL's as well. there are probably other methods of doing the same thing as well, good luck. Warren Vail warren@vailtech.net -----Original Message----- From: Jason Porembski [mailto:jporembs@optonline.net] Sent: Friday, October 25, 2002 8:32 PM To: php-windows@lists.php.net Subject: [PHP-WIN] <Script language=php??? Hey folks. I am attempting to run PHP code with <script language="php"> and it doesn't work. Any ideas as to why and how I can fix that? Also what is the best way to run a snippet of PHP code in an ASP page? Thanks in advance. Jason "Gluten Mifflin" Porembski http://www.world-gaming.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#16567) next »