php-windows Digest 27 Oct 2002 15:54:17 -0000 Issue 1409
Topics (messages 16571 through 16578):
Re: <Script language=php???
16571 by: Mikey
16576 by: Dash McElroy
16577 by: Jason Porembski
PHP and Apache 2
16572 by: erythros
16573 by: Stephen Edmonds
16574 by: erythros
16575 by: Thoenen, Peter Mr. EPS
Best PHP clients out there
16578 by: John Meyer
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin 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: [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> 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
> > [EMAIL PROTECTED]
> >
> >
> > -----Original Message-----
> > From: Jason Porembski [mailto:jporembs@;optonline.net]
> > Sent: Friday, October 25, 2002 8:32 PM
> > To: [EMAIL PROTECTED]
> > 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
>
>
>
>
--- End Message ---
--- Begin Message ---
I just took a look in my php.ini file and I didn't see any restrictions
about the <script language="php"> syntax. Is this syntax in a .php (or php
parsed) file?
Also, as to executing PHP code in an ASP page, I'm not sure how possible
that is - unless all you need to do is to do an 'include' (if that works).
I'm hoping you don't want PHP and ASP code in the same file...
Good luck.
-Dash
Bureaucrats cut red tape -- lengthwise.
On Fri, 25 Oct 2002, Jason Porembski wrote:
> 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
>
>
--- End Message ---
--- Begin Message ---
No definetly not in the same file. But this is the current problem that
I am facing. We are in the midst of putting ads on our sites. (I know I
know no popups thankfully =) ) Fortunetly those ads use PHP and most of
our sites are run with PHP very tightly except ONE. The admin of that
page refuses to use PHP and is in love with ASP. I need to run some PHP
code from within ASP. How can this be done? My first idea was to use
<!--#exec cgi="filename.php" --> but I noticed that ASP doesn't parse
that. Any ideas?
-----Original Message-----
From: Dash McElroy [mailto:php@;l1te.net]
Sent: Saturday, October 26, 2002 9:46 PM
To: Jason Porembski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] <Script language=php???
I just took a look in my php.ini file and I didn't see any restrictions
about the <script language="php"> syntax. Is this syntax in a .php (or
php
parsed) file?
Also, as to executing PHP code in an ASP page, I'm not sure how possible
that is - unless all you need to do is to do an 'include' (if that
works). I'm hoping you don't want PHP and ASP code in the same file...
Good luck.
-Dash
Bureaucrats cut red tape -- lengthwise.
On Fri, 25 Oct 2002, Jason Porembski wrote:
> 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
>
>
--- End Message ---
--- Begin Message ---
this is probably the wrong place to ask but does anyone know of any progress
on PHP and Apache2 for windows?
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GMC@ d- s a-- C++++ !U P L+ ?E W++ N ?o K w !O !M ?V PS+
PE Y+ PGP t+ 5 !X R tv+ b+++ DI+ D++ G e h--- r+++ y+++
------END GEEK CODE BLOCK------
--- End Message ---
--- Begin Message ---
Aparently, there are some major issues with it, but someone got it working.
>From the PHP installation help mail list:
============================ Quote Starts ============================
Hey, get this.. I have a fully functional Apache 2.0.43 and PHP 4.2.3
running on Win2k. But you are right about the module approach not
working... I had to give up on this.
I set it so that PHP.exe is executed as a cgi when the relevant file
extensions are requested from Apache.
Add these lines to your httpd.conf file:
ScriptAlias /php/ "C:/PHP/"
(change to your PHP path, i.e. the location of php.exe)
AddType application/x-httpd-php .phtml .php .php3
Action application/x-httpd-php /php/php.exe
And that should do it. There are security issues with this approach, but
aren't there always?
"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message
news:000301c27aa0$56929c00$0401a8c0@;aaron...
> A hope and a prayer - that's what you need.
>
> I hear it IS possible but hell if I know how. I tried for daaays to
> figure this out when I didn't have any time to do so. Said screw it and
> when with Apache 1.3X and guess what? Worked right off the bat.
>
> That's my suggestion to you if you wanan save yourself some trouble.
>
> From my understanding, apache 2.X is not stable with PHP right now.
>
> Aaron
>
> -----Original Message-----
> From: Billy Kendall [mailto:billykendall@;hotmail.com]
> Sent: Wednesday, October 23, 2002 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Apache 2.0.43/PHP 4.2.3/Win XP Pro
>
>
> I have installed Apache 2.0.43 on Windows XP Professional SP1 and I am
> trying to get PHP 4.2.3 to run. I added the following lines to my
> httpd.conf file:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> but I am receiving the following errors when trying to restart Apache:
>
> Cannot load C:/php/sapi/php4apache.dll into server: The specified module
> could not be found.
>
> Are there other changes that must be made to the httpd.conf to enable
> PHP?
>
> ____________
> BILLY KENDALL
> Cell: 214.334.3633
> Fax: 703.935.7804
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.billykendall.com
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
----- Original Message -----
From: "erythros" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 3:52 PM
Subject: [PHP-WIN] PHP and Apache 2
> this is probably the wrong place to ask but does anyone know of any
progress
> on PHP and Apache2 for windows?
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GMC@ d- s a-- C++++ !U P L+ ?E W++ N ?o K w !O !M ?V PS+
> PE Y+ PGP t+ 5 !X R tv+ b+++ DI+ D++ G e h--- r+++ y+++
> ------END GEEK CODE BLOCK------
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
thanx
"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
news:000f01c27d4c$e6899d00$1200a8c0@;q...
> Aparently, there are some major issues with it, but someone got it
working.
> From the PHP installation help mail list:
>
> ============================ Quote Starts ============================
>
> Hey, get this.. I have a fully functional Apache 2.0.43 and PHP 4.2.3
> running on Win2k. But you are right about the module approach not
> working... I had to give up on this.
>
> I set it so that PHP.exe is executed as a cgi when the relevant file
> extensions are requested from Apache.
>
> Add these lines to your httpd.conf file:
>
> ScriptAlias /php/ "C:/PHP/"
> (change to your PHP path, i.e. the location of php.exe)
>
> AddType application/x-httpd-php .phtml .php .php3
>
> Action application/x-httpd-php /php/php.exe
>
>
> And that should do it. There are security issues with this approach, but
> aren't there always?
>
>
> "Aaron Wolski" <[EMAIL PROTECTED]> wrote in message
> news:000301c27aa0$56929c00$0401a8c0@;aaron...
> > A hope and a prayer - that's what you need.
> >
> > I hear it IS possible but hell if I know how. I tried for daaays to
> > figure this out when I didn't have any time to do so. Said screw it and
> > when with Apache 1.3X and guess what? Worked right off the bat.
> >
> > That's my suggestion to you if you wanan save yourself some trouble.
> >
> > From my understanding, apache 2.X is not stable with PHP right now.
> >
> > Aaron
> >
> > -----Original Message-----
> > From: Billy Kendall [mailto:billykendall@;hotmail.com]
> > Sent: Wednesday, October 23, 2002 10:28 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-INST] Apache 2.0.43/PHP 4.2.3/Win XP Pro
> >
> >
> > I have installed Apache 2.0.43 on Windows XP Professional SP1 and I am
> > trying to get PHP 4.2.3 to run. I added the following lines to my
> > httpd.conf file:
> >
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> > AddModule mod_php4.c
> > AddType application/x-httpd-php .php
> >
> > but I am receiving the following errors when trying to restart Apache:
> >
> > Cannot load C:/php/sapi/php4apache.dll into server: The specified module
> > could not be found.
> >
> > Are there other changes that must be made to the httpd.conf to enable
> > PHP?
> >
> > ____________
> > BILLY KENDALL
> > Cell: 214.334.3633
> > Fax: 703.935.7804
> > E-Mail: [EMAIL PROTECTED]
> > Web: http://www.billykendall.com
> >
> >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> ----- Original Message -----
> From: "erythros" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 25, 2002 3:52 PM
> Subject: [PHP-WIN] PHP and Apache 2
>
>
> > this is probably the wrong place to ask but does anyone know of any
> progress
> > on PHP and Apache2 for windows?
> >
> > --
> > -----BEGIN GEEK CODE BLOCK-----
> > Version: 3.1
> > GMC@ d- s a-- C++++ !U P L+ ?E W++ N ?o K w !O !M ?V PS+
> > PE Y+ PGP t+ 5 !X R tv+ b+++ DI+ D++ G e h--- r+++ y+++
> > ------END GEEK CODE BLOCK------
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--- End Message ---
--- Begin Message ---
It works fine unofficially. Officially I believe 4.3 it is supported.
-Peter
> -----Original Message-----
> From: erythros [mailto:erythros@;erythros.d2g.com]
> Sent: Friday, October 25, 2002 16:52
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP and Apache 2
>
>
> this is probably the wrong place to ask but does anyone know
> of any progress
> on PHP and Apache2 for windows?
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GMC@ d- s a-- C++++ !U P L+ ?E W++ N ?o K w !O !M ?V PS+
> PE Y+ PGP t+ 5 !X R tv+ b+++ DI+ D++ G e h--- r+++ y+++
> ------END GEEK CODE BLOCK------
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Can somebody send me the names and URLs of the best PHP clients out there.
Auto-completion is a big feature that I'd like to have.
--- End Message ---