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

From: Date: Sat, 26 Oct 2002 19:04:20 +0000
Subject: RE: [PHP-WIN] Re: <Script language=php???
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16571@lists.php.net to get a copy of this message
Surely you are missing... <script language="php" runat="server"> </script> As for wanting to run ASP/PHP together, if it is just the objects you want access to, then couldn't you just use the COM functions? If, however, you wish to mix VBScript & PHP I can only wonder what on earth would induce you to hobble yourself in such a manner ;-) regards, Mikey > -----Original Message----- > From: news [mailto:news@main.gmane.org]On Behalf Of George William Smith > Sent: 26 October 2002 18:42 > To: php-windows@lists.php.net > Subject: [PHP-WIN] Re: <Script language=php??? > > > No, see http://uk.php.net/manual/en/language.basic-syntax.php > > I quote: "There are four sets of tags which can be used to denote > blocks of > PHP code. Of these, only two (<?php. . .?> and <script language="php">. . > .</script>) are always available;" > > <script language="php"> /* PHP CODE */ </script> is perfectly valid way > of > escaping from HTML into PHP. > > G > > "Warren Vail" <warren@vailtech.net> wrote in message > news:006401c27d0a$9872cac0$9b897ed8@WarrenVail... > > 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 > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.windows (#16571) next »