NYCPHP Meetup

NYPHP.org

[nycphp-talk] Basic security question

Jon Baer jonbaer at jonbaer.net
Sat Jul 17 01:25:17 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

| Practically the only real thing you can do from a security pespective is
| to virtually "listen" to the mailing lists which get the word out,
| things like Bugtraq, FullDisclosure, OSVDB, and others.

btw, here is your friendly neighborhood osvdb link for PHP:

http://www.osvdb.org/searchdb.php?action=search_title&vuln_title=php&Search=Search

fun,fun,fun ...

- - jon

pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA+Lg9Qdvbi5oMr0cRAkfvAJ9YKkvezoi4frZDOnaBd1KJxgcZ4QCgpXgW
Ca6BM5txFen6hWnlSTow9AA=
=g5rK
-----END PGP SIGNATURE-----

>From hans not junk at nyphp.com  Sat Jul 17 01:30:08 2004
Return-Path: <hans not junk at nyphp.com>
Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10])
	by virtu.nyphp.org (Postfix) with ESMTP id 990ECA85F0
	for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:30:08 -0400 (EDT)
Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by
	smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); 
	Fri, 16 Jul 2004 22:30:07 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [nycphp-talk] PHP5 on K5
Date: Fri, 16 Jul 2004 22:30:10 -0700
Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373A at ehost011-1.exch011.intermedia.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [nycphp-talk] PHP5 on K5
Thread-Index: AcRq2d26osTZectfRtGigPUGIfmoQgA4/FSw
From: "Hans Zaunere" <hans not junk at nyphp.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
X-OriginalArrivalTime: 17 Jul 2004 05:30:07.0743 (UTC)
	FILETIME=[1F1238F0:01C46BBF]
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jul 2004 05:30:09 -0000



> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Sklar
> Sent: Thursday, July 15, 2004 10:09 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] PHP5 on K5
>=20
> John Lacey wrote:
>=20
> > Michael R. McLarnon wrote:
> >
> >> There is a long article on kuro5hin.org that just hit the front
page,
> >> in response to the release of 5.  It has a nice little tutorial,
and
> >> even goes into OO and what is new in this release.  My favorite
quote:
> >> "The syntax of PHP looks like the offspring of a drunken
alley-fondle
> >> between C and Perl."

I like drunken alley-fondles...  and yes, PHP's syntax is a perfect
blend of sober C and staggering Perl.

> > Once you get past the "emotional" part, it's a somewhat interesting
> > piece.  I would be more interested in what the Convissors,
Shifletts,
> > Sklars, Tractenbergs and Zauneres and other people of that technical
> > caliber on this list have to say...
>=20
> I must admit to being underwhelmed by this article. I am not sure what
> the author's point(s) was/were. New PHP 5 features make it possible to
> write non-web apps in PHP? Heavily OO PHP 5 code looks a lot like
Java?

I agree... I'm not sure of the point.  Although, for new users looking
at PHP, especially with the release of 5, it does make a nice summation.

I especially like this comment:

"As someone who spent half a year implementing a major web application
in PHP, these are all features it would have been nice to have."

I'm sure there are programmers around that could rewrite that as:

"As someone who spent 5 years implementing a major financial application
in Assembly, these are all features it would have been nice to have."

> I suppose if today is the first time you are taking a look at PHP 5,
> then these might seem like notable and mildly amazing aspects of it,
but
>   otherwise they don't seem too surprising. PHP-GTK and the cli SAPI
> have been around for a while; the PHP 5 OO syntax has been available
for
> perusal for plenty of time as well.
>=20
> A more interesting area for PHP futurology, IMHO, is whether future
> versions of PHP will run on the Zend Engine (v2 or a future version),
> Parrot, or the CLR.

Perhaps alluded to by the clever title "Zend in the clowns?"

H

>From hans not junk at nyphp.com  Sat Jul 17 01:47:47 2004
Return-Path: <hans not junk at nyphp.com>
Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10])
	by virtu.nyphp.org (Postfix) with ESMTP id AA00FA85EA
	for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:47:46 -0400 (EDT)
Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by
	smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); 
	Fri, 16 Jul 2004 22:47:46 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C46BC1.993AA25A"
Subject: RE: [nycphp-talk] A little network help
Date: Fri, 16 Jul 2004 22:47:49 -0700
Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373B at ehost011-1.exch011.intermedia.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [nycphp-talk] A little network help
Thread-Index: AcRq6ZVZGpbbGGV0TaOIngtkfFVUZgA1vGHg
From: "Hans Zaunere" <hans not junk at nyphp.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
X-OriginalArrivalTime: 17 Jul 2004 05:47:46.0140 (UTC)
	FILETIME=[95ECC9C0:01C46BC1]
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jul 2004 05:47:47 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01C46BC1.993AA25A
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20

=20

I have a ton of PHP and MySQL experience and I have decided to put a
little network in my apartment.  So I got my Linux box, I have two
windows boxes, I have a single static IP, a Cisco router, and a manual?
Can anyone give me some pointers?  A path in the right direction?

=20

1) What Linux should I use?  I have a free distribution of Red Hat 9?
Is Fedora better?  Any advice?

=20

I've used Fedora Core 2 and have been very happy.... as far as Linuxes
go, anyway.

=20

2) Currently my router is dynamically assigning TCP/IP #'s to each
machine.  I know I have to set this up differently.  I want the linux
box to be a http server, ftp, email, etc, and I want the windows boxes
to have access to the net.  Any suggestions on how I should do this?  I
think I have to setup a DNS, but with only one static IP I think this
gets tricky.  Any assistance would be greatly appreciated.

=20

I have a Linksys router and it's a simple config to make a particular IP
part of the DMZ (ie, all traffic from the internet gets routed into that
IP, and vice versa).  Meanwhile, the other boxes (Windows and Mac) are
tucked away behind NAT.  I'm also able to setup a static IP address
assignment via the DHCP server in the Linksys router.  If this isn't an
option, then you can just turn off DHCP on the Linux box and set the IP
manually.  Nevertheless, you don't need a DNS server by any stretch.

=20

3) Also, when I unpack RPM distributions and the RPM needs a library,
where is the best place to find it.  And if you can't find it what do
you do.  For example, I was trying to install PICO under Red Hat and it
kept asking for libncurses.so.5.  I check the web but could not find it.
Any help?

=20

http://www.rpmfind.net <http://www.rpmfind.net/>  can be helpful.  If
you're using a particular distro, like Fedora, 99% of the RPMs are at
their download site.  Otherwise, the particular library or package is
probably available as an RPM at its homepage.

=20

Or you could just use a ports based distro like Chris says... oh wait,
that's FreeBSD  :-)

=20

H


------_=_NextPart_001_01C46BC1.993AA25A
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple id=3D"role_body" =
bottomMargin=3D7
leftmargin=3D7 topmargin=3D7 rightMargin=3D7>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>I have a ton of PHP and MySQL =
experience
and I have decided to put a little network in my apartment.&nbsp; So I =
got my
Linux box, I have two windows boxes, I have a single static IP, a Cisco =
router,
and a manual?&nbsp; Can anyone give me some pointers?&nbsp; A path in =
the right
direction?</span></font><font size=3D2 color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span=
></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>&nbsp;<o:p></o:p></span></font></p>=


</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>1) What Linux should I use?&nbsp; =
I have
a free distribution of Red Hat 9?&nbsp; Is Fedora better?&nbsp; Any =
advice?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I've used Fedora Core 2 and have =
been very
happy&#8230;. as far as Linuxes go, anyway.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>&nbsp;<o:p></o:p></span></font></p>=


</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>2) Currently my router is =
dynamically
assigning TCP/IP #'s to each machine.&nbsp; I know I have to set this up
differently.&nbsp; I want the linux box to be a http server, ftp, email, =
etc,
and I want the windows boxes to have access to the net.&nbsp; Any =
suggestions
on how I should do this?&nbsp; I think I have to setup a DNS, but with =
only one
static IP I think this gets tricky.&nbsp; Any assistance would be =
greatly
appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I have a Linksys router and it's a =
simple
config to make a particular IP part of the DMZ (ie, all traffic from the
internet gets routed into that IP, and vice versa). &nbsp;Meanwhile, the =
other
boxes (Windows and Mac) are tucked away behind NAT. &nbsp;I'm also able =
to
setup a static IP address assignment via the DHCP server in the Linksys =
router.
&nbsp;If this isn't an option, then you can just turn off DHCP on the =
Linux box
and set the IP manually.&nbsp; Nevertheless, you don't need a DNS server =
by any
stretch.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>&nbsp;<o:p></o:p></span></font></p>=


</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>3) Also, when I unpack RPM =
distributions
and the RPM needs a library, where is the best place to find it.&nbsp; =
And if
you can't find it what do you do.&nbsp; For example, I was trying to =
install
PICO under Red Hat and it kept asking for libncurses.so.5.&nbsp; I check =
the
web but could not find it.&nbsp; Any help?</span></font><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><a =
href=3D"http://www.rpmfind.net/">http://www.rpmfind.net</a>
can be helpful. &nbsp;If you're using a particular distro, like Fedora, =
99% of
the RPMs are at their download site. &nbsp;Otherwise, the particular =
library or
package is probably available as an RPM at its =
homepage.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Or you could just use a ports based =
distro
like Chris says&#8230; oh wait, that's FreeBSD&nbsp; </span></font><font
size=3D2 color=3Dnavy face=3DWingdings><span =
style=3D'font-size:10.0pt;font-family:
Wingdings;color:navy'>J</span></font><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C46BC1.993AA25A--

>From hans not junk at nyphp.com  Sat Jul 17 01:51:05 2004
Return-Path: <hans not junk at nyphp.com>
Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10])
	by virtu.nyphp.org (Postfix) with ESMTP id C0610A85EA
	for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:51:04 -0400 (EDT)
Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by
	smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); 
	Fri, 16 Jul 2004 22:51:03 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [nycphp-talk] A call for all PHP'ers,
	the gtk.php.net site needs your help.
Date: Fri, 16 Jul 2004 22:51:06 -0700
Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373C at ehost011-1.exch011.intermedia.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [nycphp-talk] A call for all PHP'ers,
	the gtk.php.net site needs your help.
Thread-Index: AcRrRdGuBMwlUOv8SeS6V0h+43qSqAAfAY5g
From: "Hans Zaunere" <hans not junk at nyphp.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
X-OriginalArrivalTime: 17 Jul 2004 05:51:03.0881 (UTC)
	FILETIME=[0BC9AB90:01C46BC2]
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jul 2004 05:51:05 -0000


> If you are not familiar with php-gtk, you can do some pretty cool
stuff
> with it, I have a tutorial here:
> http://lucifer.intercosmos.net/tut/
> and another here:
> http://lucifer.intercosmos.net/phpgtk/
> There are a lot of apps out, but the documentation has been an issue
in
> bringing in new programmers.
>=20
> I was also asked to do a presentation at the new meeting on php-gtk in
> september based on my first php-gtk tutorial, though I don't know the
> status of that as I may be in Ireland for an RDF conference.

Yes, you were asked  :)

I hope it can happen.  If not Sept, then soon... let me know.

It's also exciting to see php-gtk coming back into light... it's a great
area for PHP to be in.

H


>From hans not junk at nyphp.com  Sat Jul 17 01:59:35 2004
Return-Path: <hans not junk at nyphp.com>
Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10])
	by virtu.nyphp.org (Postfix) with ESMTP id 90A51A85EA
	for <talk at lists.nyphp.org>; Sat, 17 Jul 2004 01:59:35 -0400 (EDT)
Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by
	smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); 
	Fri, 16 Jul 2004 22:59:35 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C46BC3.3D10320B"
Subject: RE: [nycphp-talk] PHP and IIS Site Creation
Date: Fri, 16 Jul 2004 22:59:33 -0700
Message-ID: <41EE526EC2D3C74286415780D3BA9F87031D373D at ehost011-1.exch011.intermedia.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [nycphp-talk] PHP and IIS Site Creation
Thread-Index: AcRq8GtJrAW1eZydT1OoNLOzvMDr4wA0mqjQ
From: "Hans Zaunere" <hans not junk at nyphp.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
X-OriginalArrivalTime: 17 Jul 2004 05:59:35.0038 (UTC)
	FILETIME=[3C7609E0:01C46BC3]
X-BeenThere: talk at lists.nyphp.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: NYPHP Talk <talk at lists.nyphp.org>
List-Id: NYPHP Talk <talk.lists.nyphp.org>
List-Unsubscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=unsubscribe>
List-Archive: <http://lists.nyphp.org/pipermail/talk>
List-Post: <mailto:talk at lists.nyphp.org>
List-Help: <mailto:talk-request at lists.nyphp.org?subject=help>
List-Subscribe: <http://lists.nyphp.org/mailman/listinfo/talk>,
	<mailto:talk-request at lists.nyphp.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jul 2004 05:59:36 -0000

This is a multi-part message in MIME format.

------_=_NextPart_001_01C46BC3.3D10320B
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20

=20

________________________________

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Shai G Chen
Sent: Friday, July 16, 2004 12:50 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] PHP and IIS Site Creation

=20

 I'm currently working on IIS 5.0 and PHP 4.3.8. I running my own web
server at my place. Here is the task I would like my script to
accomplished:

- Bind an exisiting IP address I have on my IIS server (ie.
189.176.2.104) to the web folder itself. At this point I'm manually
linking the folder and IP together. So if I create a folder name
"newsite" and I bind the IP 189.176.2.104 to it., I would be able to
access the folder content if I put the IP address on the web browser. I
know there is ways to do it using VBScript and all the .NET series. What
I am interested in using is PHP, or even javascript. Thanks in advance
for the help.=20

=20

This isn't possible, as far as I know, with PHP.  VBScript and .NET
stuff have a freighting intimate relationship with their web server,
IIS.  PHP is designed - and rightfully so - to be a straightforward
scripting language for connecting to databases, parsing and sending
text, etc.  And this is certainly not possible using JavaScript
(although with the IE and Windows security problems recently, it might
be :-)

=20

H


------_=_NextPart_001_01C46BC3.3D10320B
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:PMingLiU;
	panose-1:2 1 6 1 0 1 1 1 1 1;}
@font-face
	{font-family:"\@PMingLiU";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:PMingLiU;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3DPMingLiU><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>
talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Shai G Chen<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, July 16, =
2004 12:50
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
talk at lists.nyphp.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [nycphp-talk] PHP =
and IIS
Site Creation</span></font><font face=3DArial><span =
style=3D'font-family:Arial'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>&nbsp;I'm currently working on IIS 5.0 and PHP 4.3.8. =
I
running my own web server at my place. Here is the task I would like my =
script
to accomplished:<br>
<br>
- Bind an exisiting IP address I have on my IIS server (ie. =
189.176.2.104) to
the web folder itself. At this point I'm manually linking the folder and =
IP
together. So if I create a folder name &quot;newsite&quot; and I bind =
the IP
189.176.2.104 to it., I would be able to access the folder content if I =
put the
IP address on the web browser. I know there is ways to do it using =
VBScript and
all the .NET series. What I am interested in using is PHP, or even =
javascript.
Thanks in advance for the help. <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>This isn't possible, as far as I =
know,
with PHP. &nbsp;VBScript and .NET stuff have a freighting intimate =
relationship
with their web server, IIS. &nbsp;PHP is designed - and rightfully so - =
to be a
straightforward scripting language for connecting to databases, parsing =
and
sending text, etc.&nbsp; And this is certainly not possible using =
JavaScript
(although with the IE and Windows security problems recently, it might =
be </span></font><font
size=3D2 color=3Dnavy face=3DWingdings><span =
style=3D'font-size:10.0pt;font-family:
Wingdings;color:navy'>J</span></font><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>H<o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C46BC3.3D10320B--



More information about the talk mailing list