php-windows Digest 14 Jun 2002 10:40:44 -0000 Issue 1191

Topics (messages 14208 through 14216):

Re: Extracting data from a URL using PHP
        14208 by: Scott Pier

Re: PHP 4.2.1. on PWS...
        14209 by: Steve Yates

Re: Ming experience anyone?
        14210 by: Allan  Kent

can't set my cookie
        14211 by: Alfredo T. Rigor

SSL Support for PHP....
        14212 by: Brian McGarvie
        14214 by: Stuart Dallas
        14215 by: Brian McGarvie
        14216 by: Stuart Dallas

Re: [PHP] SSL Support for PHP....
        14213 by: Brian McGarvie

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 ---
Tony,

You should be able to extract the section you want if there is something
specific about that section. For example if that table has a name=, id= or
the width is different from the other tables, etc... I have done this, I am
sure there is an easier way but here is what I did...
<CODE>
// Open website
$fp=@fopen("http://www.TheURL.com/ThePage.asp?ID=".$id, "r") or die("Die
Message.");

// Read  website into $read
$read=fread($fp, 15000);

// Close the channel
fclose($fp);

// Select the region of the site to work with.
$search = eregi("<table width=\"542\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">(.*)</table>", $read, $printing);
</CODE>
I then put the table back in when I printed the string.

I hope this helps,

Scott


"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Is there any way to extract *specific* data off a page - like text within
> one table (if there were four separate html tables on that page) - while
> leaving the balance of the text and the other tables alone?
>
> Thank you.
> Tony Ritter
>
>
>
>
>
>
>
>
>


--- End Message ---
--- Begin Message ---
"CéSar Monroy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Lucky you... I've still try to figure out how to make it work... After
> several tries, following step by step instructions my PWS still can't pase
> PHP scripts.

> "Max Sullivan" <[EMAIL PROTECTED]> escribió en el mensaje
> 004d01c20bf6$bf074420$1f281142@WILLY">news:004d01c20bf6$bf074420$1f281142@WILLY...
> > You need to set cgi.force_redirect = 0 in your php.ini file.

    Is your PHP.INI file in your Windows directory?

 - Steve Yates
 - Paranoia is when you think these are about you.

/ Taglines by Taglinator - www.srtware.com /




--- End Message ---
--- Begin Message ---
heya,

> supplied in the examples zip file) I get some of the contents of the
script
> dumped to the browser and nothing else.

what version of php are you running ?  Does phpinfo() show that the ming
module is loaded ?  What's getting dumped to the browser ?

allan


--- End Message ---
--- Begin Message ---
greetings,

i am having problem setting my cookie locally. i am using win98se with pws.
somehow my script worked when i upload it to the server but it just won't
work locally. i tried asking around but no one seems to know the answer.
does it have to do with certain settings or configuration. i desparately
need help, if anyone can kindly help me out..it would be greatly
appreciated!!

--

regards,
alfredo t. rigor
technical consultant


--- End Message ---
--- Begin Message ---
Right...

Back to the old bombshell of which webserver...

I have'nt seen any reports which say what is better...

Here is my issue:

The webserver I am setting up will potentially host 4 or 5 sites...

How does IIS fair against Apache with servring multiple sites? each site will be 
like... http://customername.ourdomain.co.uk

Also - more an IIS/Apache Q, how do you configure the above to work in both IIS and 
Apache?

We arenot using ASP - yet, but might do at a later date... can IIS and Apache live 
together? if so how would you confirue a site who's PHP is served with Apache and ASP 
with IIS.

SSL Certificates... how do they work on Apache? IIS is a simple Wizard, I've not had 
to set SSL up before.

The hardware config is that machine has 2 nics, one to router for outside world to 
access it, another so the server can access the LAN as components of the 
web-application are VB Apps running on client machines to the LAN manipulating the 
database that is ultimatley used by PHP.

It's Win2k Server, p3 1.7ghz 512mb ram, 120gb raid 5.

The Application is not *launched* as yet, So I'l looking at whither to use Apache/IIS.

Thanks in advance....

   Brian M McGarvie...

   [ http://www.the-local-guide.com :: http://www.mcgarvie.net ]
--- End Message ---
--- Begin Message ---
On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote:
> How does IIS fair against Apache with servring multiple sites? each site will be 
>like... http://customername.ourdomain.co.uk

Both are capable of serving multiple sites without any issues that I am aware
of.

> Also - more an IIS/Apache Q, how do you configure the above to work in both IIS and 
>Apache?

In IIS you set the host header for the site when you set the IP for the site.
In Apache you use the NameVirtualHost directive. See the MSIIS and Apache docs
for more detailed instructions.

> We arenot using ASP - yet, but might do at a later date... can IIS and Apache live 
>together? if so how would you confirue a site who's PHP is served with Apache and ASP 
>with IIS.

IIS and Apache can live together happily. You have to disable connection
pooling for IIS (can't remember how - there is a knowledge-base article on the
MS site that gives full details).

Why would you want to have Apache serve PHP and IIS serve ASP for the same
site? Why not just have IIS do both?

> SSL Certificates... how do they work on Apache? IIS is a simple Wizard, I've not had 
>to set SSL up before.

Dunno, never used SSL with Apache. Sorry.

I hope that helps.

-- 
Stuart

--- End Message ---
--- Begin Message ---
Basically then there is no real reason for Apache over IIS on win2k server?

I am the admin of the Webservers, but the overall network manager would like to keep 
it MS-centric just because all the rest is.

With our leased line we aqquired 16 ips, so in the IIS config I would just use that IP 
and keep it port 80?

(I will read the manual, I will read the manual, I will read the manual!)

SSL is a must for a few of the 'sites' that will be getting ran.

As for ASP *shudder* I personally don't plan on using it, tho I might experiment with 
asp.net but thats a by-the-by.

I'm kinda trying to verify that using IIS with PHP isapi module is as secure as Apache?

Heres a strange one tho jist on the side: I installed Apache2/PHP on my own machine 
(used for writing code etc) and copied the application to an apache location, and ran 
it, but... there is supposedly files missing according to apache, all is as on the 
other machine - files/code wise.

One last item I need some advise with... is IIS able to handle LOTS of sites accross 
multiple servers? as we have lots of clients so in the future will possibly need a 
machine to load-balance etc and seperate database serving machines - databases 
primarily MsSQL/Access/MySQL.

Btw, thanks Stuart, thats kinda making me feel easier about keeping it IIS.

> -----Original Message-----
> From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
> Sent: 14 June 2002 10:52 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] SSL Support for PHP....
> 
> 
> On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote:
> > How does IIS fair against Apache with servring multiple 
> sites? each site will be like... http://customername.ourdomain.co.uk
> 
> Both are capable of serving multiple sites without any issues 
> that I am aware
> of.
> 
> > Also - more an IIS/Apache Q, how do you configure the above 
> to work in both IIS and Apache?
> 
> In IIS you set the host header for the site when you set the 
> IP for the site.
> In Apache you use the NameVirtualHost directive. See the 
> MSIIS and Apache docs
> for more detailed instructions.
> 
> > We arenot using ASP - yet, but might do at a later date... 
> can IIS and Apache live together? if so how would you 
> confirue a site who's PHP is served with Apache and ASP with IIS.
> 
> IIS and Apache can live together happily. You have to disable 
> connection
> pooling for IIS (can't remember how - there is a 
> knowledge-base article on the
> MS site that gives full details).
> 
> Why would you want to have Apache serve PHP and IIS serve ASP 
> for the same
> site? Why not just have IIS do both?
> 
> > SSL Certificates... how do they work on Apache? IIS is a 
> simple Wizard, I've not had to set SSL up before.
> 
> Dunno, never used SSL with Apache. Sorry.
> 
> I hope that helps.
> 
> -- 
> Stuart
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---
--- Begin Message ---
On Friday, June 14, 2002, 11:07:24 AM, Brian McGarvie wrote:
> Basically then there is no real reason for Apache over IIS on win2k server?

Not now Apache 2 is here. Apache 1.x has always been considered by the Apache
group as beta code and therefore not suitable for use in a production
environment. I have been using Apache 2 for development on Win2k since it was
first released to the public and I will upgrade my public server as soon as PHP
releases a production version of their module. I have IIS on the same server
and have never had a problem with them co-existing.

> With our leased line we aqquired 16 ips, so in the IIS config I would just use that 
>IP and keep it port 80?

In the site configuration, click on the "Advanced..." button next to the IP
address. Make sure that each entry has the IP address, port 80 and the host
header set to the site domain name.

> (I will read the manual, I will read the manual, I will read the manual!)

A very good idea ;o)

> SSL is a must for a few of the 'sites' that will be getting ran.

As I said, I have not experience with SSL on Apache, but on IIS it is as simple
as following a wizard.

> I'm kinda trying to verify that using IIS with PHP isapi module is as secure as 
>Apache?

A web server is only as secure as it's administrator is anal. I personally
believe that IIS on Win2k can be made as secure as Apache on any platform, but
not a lot of people agree with that. As for how secure PHP is, most of that
will depend on the scripts rather than the server/PHP interface you're using.

> Heres a strange one tho jist on the side: I installed Apache2/PHP on my own machine 
>(used for writing code etc) and copied the application to an apache location, and ran 
>it, but... there is
> supposedly files missing according to apache, all is as on the other machine - 
>files/code wise.

What files did it say were missing? Were they scripts, modules, what?

> One last item I need some advise with... is IIS able to handle LOTS of sites accross 
>multiple servers? as we have lots of clients so in the future will possibly need a 
>machine to load-balance etc
> and seperate database serving machines - databases primarily MsSQL/Access/MySQL.

Again, here is where my experience falls short. I have not yet had a chance to
be involved in a load-balanced project. However, I would expect that there
would be little difference whether you implement it using IIS or Apache.

> Btw, thanks Stuart, thats kinda making me feel easier about keeping it IIS.

No problem. Don't get me wrong, I think the ?AMP combination
(Linux/FreeBSD/etc, Apache, MySQL and PHP) is unbeatable as a server platform,
but I strongly believe that, done properly, IIS on Win2k is still a strong
platform. The problem is that MS have (purposefully) made IIS accessible to the
average PC user which I think is one of the main reasons that it has *that*
reputation.

-- 
Stuart

--- End Message ---
--- Begin Message ---
Also... IF Apache... what version?

> -----Original Message-----
> From: Brian McGarvie 
> Sent: 14 June 2002 9:14 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] SSL Support for PHP....
> 
> 
> Right...
> 
> Back to the old bombshell of which webserver...
> 
> I have'nt seen any reports which say what is better...
> 
> Here is my issue:
> 
> The webserver I am setting up will potentially host 4 or 5 sites...
> 
> How does IIS fair against Apache with servring multiple 
> sites? each site will be like... http://customername.ourdomain.co.uk
> 
> Also - more an IIS/Apache Q, how do you configure the above 
> to work in both IIS and Apache?
> 
> We arenot using ASP - yet, but might do at a later date... 
> can IIS and Apache live together? if so how would you 
> confirue a site who's PHP is served with Apache and ASP with IIS.
> 
> SSL Certificates... how do they work on Apache? IIS is a 
> simple Wizard, I've not had to set SSL up before.
> 
> The hardware config is that machine has 2 nics, one to router 
> for outside world to access it, another so the server can 
> access the LAN as components of the web-application are VB 
> Apps running on client machines to the LAN manipulating the 
> database that is ultimatley used by PHP.
> 
> It's Win2k Server, p3 1.7ghz 512mb ram, 120gb raid 5.
> 
> The Application is not *launched* as yet, So I'l looking at 
> whither to use Apache/IIS.
> 
> Thanks in advance....
> 
>    Brian M McGarvie...
> 
>    [ http://www.the-local-guide.com :: http://www.mcgarvie.net ]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---

Reply via email to