php-windows Digest 9 Jul 2002 21:41:15 -0000 Issue 1232

Topics (messages 14623 through 14652):

Re: Request for ideas...
        14623 by: Matt Parlane

Browser Troubles...
        14624 by: Brian McGarvie
        14628 by: Piotr Pluciennik
        14630 by: Brian McGarvie
        14631 by: Piotr Pluciennik

PHP4 and Apache2
        14625 by: Reese
        14634 by: Chris Dion
        14648 by: Dash McElroy

Re: [PHP] Browser Troubles...
        14626 by: René Moonen
        14627 by: Brian McGarvie

Returning values from function
        14629 by: Thomas Weidner

Domain validiation in php??
        14632 by: Daniel Ryhle

Re: Closest store location by zip code
        14633 by: R.S. Herhuth

Re: Form, reading parameters
        14635 by: Jean Bresse

Script doesn't write to database...
        14636 by: R.S. Herhuth
        14637 by: Mathew Joseph
        14639 by: Mathew Joseph

problem with xslt-modul
        14638 by: Roman STeiner

Dual Server...
        14640 by: Brian McGarvie

Re: [PHP] Dual Server...
        14641 by: Collins, Robert
        14642 by: Brian McGarvie
        14652 by: Matt Parlane

Apache/PHP...
        14643 by: Brian McGarvie
        14644 by: Steve Parrish

Re: COM stalls the server..
        14645 by: Ross Fleming
        14646 by: Scott Carr

Re: Zip Problem
        14647 by: Dash McElroy

More bzip woes! No file written...
        14649 by: Mikey

Re: run as
        14650 by: Neil Smith
        14651 by: Scott Hurring

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 ---
Hi Mikey...

I'm not quite sure what you mean by doing it within one page...

do you mean apart from using <meta http-equiv="Refresh"
content="0;URL=http://www.something.com/something.zip";> ?

You could probably try a header('Location:
http://www.something.com/something.zip);

Or, if you want to appear as though the file is coming from your site, you
can read the entire file using:
echo implode(file('', 'http://www.something.com/something.zip'));
after setting the appropriate headers.  Bear in mind though, that all
downloaded traffic will be routed through your site, and you will pay
bandwidth costs, and it will probably slow your site down big time.

Hope that helps...

Matt

"Mikey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone on this list know how to send a file automatically to a site
> user after viewing an HTML page, such as is done at download.com?
>
> I can re-direct to the file using an HTTP directive in the page but was
> wondering if there was anyway to do this within one page?
>
> regards,
>
> Mikey
>


--- End Message ---
--- Begin Message ---
OK...

I have developed a web-application... on Windows 2k Server, IIS5, PHP, MsSQL/MySQL.

Now... on certain browser platforms the browser spuriously dies for no reason. 
(Primarily Oldish IE 5.0(but not all releases) and 5.5).

I have tried MS's mailing lists/support but not had any usefull feedback.

Has anyone came accross this kind of thing before?

Thanks In Advance...

[ http://www.the-local-guide.com :: http://www.mcgarvie.net ]

--- End Message ---
--- Begin Message ---
Hmm...

the first thing you should to do is to validate HTML
output generated from your script. Second - to check
if JS embeded in your page works correctly in
problematic browsers. You must recognize the source of
problems.

I've met such problem once - with old IE4 and it was
an IE bug with dynamicly generated pages, I don't
remember exactly the error name... hmm.. transfer
chunk encoding or similiar. But I'm afraid it's not
your case.

HTH
Piotr

--- Brian McGarvie <[EMAIL PROTECTED]>
wrote:
> OK...
> 
> I have developed a web-application... on Windows 2k
> Server, IIS5, PHP, MsSQL/MySQL.
> 
> Now... on certain browser platforms the browser
> spuriously dies for no reason. (Primarily Oldish IE
> 5.0(but not all releases) and 5.5).
> 
> I have tried MS's mailing lists/support but not had
> any usefull feedback.
> 
> Has anyone came accross this kind of thing before?
> 
> Thanks In Advance...
> 
> [ http://www.the-local-guide.com ::
> http://www.mcgarvie.net ]
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--- End Message ---
--- Begin Message ---
I have validated the html...

there is only one piece of JS in it...

Would frames cause probs?

> -----Original Message-----
> From: Piotr Pluciennik [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2002 11:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Browser Troubles...
> 
> 
> Hmm...
> 
> the first thing you should to do is to validate HTML
> output generated from your script. Second - to check
> if JS embeded in your page works correctly in
> problematic browsers. You must recognize the source of
> problems.
> 
> I've met such problem once - with old IE4 and it was
> an IE bug with dynamicly generated pages, I don't
> remember exactly the error name... hmm.. transfer
> chunk encoding or similiar. But I'm afraid it's not
> your case.
> 
> HTH
> Piotr
> 
> --- Brian McGarvie <[EMAIL PROTECTED]>
> wrote:
> > OK...
> > 
> > I have developed a web-application... on Windows 2k
> > Server, IIS5, PHP, MsSQL/MySQL.
> > 
> > Now... on certain browser platforms the browser
> > spuriously dies for no reason. (Primarily Oldish IE
> > 5.0(but not all releases) and 5.5).
> > 
> > I have tried MS's mailing lists/support but not had
> > any usefull feedback.
> > 
> > Has anyone came accross this kind of thing before?
> > 
> > Thanks In Advance...
> > 
> > [ http://www.the-local-guide.com ::
> > http://www.mcgarvie.net ]
> > 
> > 
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---
--- Begin Message ---
It doesnt't matter how many JS pieces you've got in
your file. One buggy js is quite enough :-). So check
it carrefuly.

If you've validated your entire html and it's correct
- so, the frames should not be a problem...

HTH

Piotr

--- Brian McGarvie <[EMAIL PROTECTED]>
wrote:
> I have validated the html...
> 
> there is only one piece of JS in it...
> 
> Would frames cause probs?
> 
> > -----Original Message-----
> > From: Piotr Pluciennik
> [mailto:[EMAIL PROTECTED]]
> > Sent: 09 July 2002 11:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Browser Troubles...
> > 
> > 
> > Hmm...
> > 
> > the first thing you should to do is to validate
> HTML
> > output generated from your script. Second - to
> check
> > if JS embeded in your page works correctly in
> > problematic browsers. You must recognize the
> source of
> > problems.
> > 
> > I've met such problem once - with old IE4 and it
> was
> > an IE bug with dynamicly generated pages, I don't
> > remember exactly the error name... hmm.. transfer
> > chunk encoding or similiar. But I'm afraid it's
> not
> > your case.
> > 
> > HTH
> > Piotr
> > 
> > --- Brian McGarvie
> <[EMAIL PROTECTED]>
> > wrote:
> > > OK...
> > > 
> > > I have developed a web-application... on Windows
> 2k
> > > Server, IIS5, PHP, MsSQL/MySQL.
> > > 
> > > Now... on certain browser platforms the browser
> > > spuriously dies for no reason. (Primarily Oldish
> IE
> > > 5.0(but not all releases) and 5.5).
> > > 
> > > I have tried MS's mailing lists/support but not
> had
> > > any usefull feedback.
> > > 
> > > Has anyone came accross this kind of thing
> before?
> > > 
> > > Thanks In Advance...
> > > 
> > > [ http://www.the-local-guide.com ::
> > > http://www.mcgarvie.net ]
> > > 
> > > 
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> > 
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> > 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--- End Message ---
--- Begin Message ---
Hello everyone.

I'm running win2k pro, apache v2.0.x and PHP v4.2.1 on an offline testing
platform.  This offline testing platform doubles as my personal computer
for email and browsing, but the test platform website is not available
for public browsing (within the limits of my software firewall).

I've experienced some difficulties with Apache v2.0.39 and PHP, I've noted
the blurb on the official PHP bug-reporting page and the admonishment to
not report bugs with Apache v2.0.39 and PHP, to get the fix from CVS - but 
I've downloaded the latest PHP binary from CVS (a couple times, it changes 
daily) and it didn't make PHP work under Apache v2.0.39, and now I'm finding 
references to Apache v2.0.40.

Is there really a v2.0.39 X v4.2.1 fix at CVS?  Where is it and what
is it exactly (what am I missing)?

Does Apache v2.0.40 fix this issue?  When will it be released?

My offline testing platform is functional with Apache v2.0.35 but I would 
like to upgrade it ASAP anyway, I don't want my personal computer to have
software with known, fixable but unfixed flaws on it for one second longer
than necessary.

Reese

--- End Message ---
--- Begin Message ---
Reese,
    They do work together.  I am using PhP 4.3.0-dev because it solves
cookie problems and apache2 support is no longer experimental.....at least
not in the experimental folder.  You should upgrade to apache 2.0.39.  
In the httpd.conf file I have:

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

You will need to set the path to the module to what ever it was in 4.2.1.
 I think it's in the experimental folder.

Hope this helps

Chris



--- End Message ---
--- Begin Message ---
http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip

Replace the php4apache2.dll file with the one in this zip file. It's worked
for several people on this board.

-Dash

-----Original Message-----
From: Reese [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 2:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP4 and Apache2


Hello everyone.

I'm running win2k pro, apache v2.0.x and PHP v4.2.1 on an offline testing
platform.  This offline testing platform doubles as my personal computer
for email and browsing, but the test platform website is not available
for public browsing (within the limits of my software firewall).

I've experienced some difficulties with Apache v2.0.39 and PHP, I've noted
the blurb on the official PHP bug-reporting page and the admonishment to
not report bugs with Apache v2.0.39 and PHP, to get the fix from CVS - but 
I've downloaded the latest PHP binary from CVS (a couple times, it changes 
daily) and it didn't make PHP work under Apache v2.0.39, and now I'm finding

references to Apache v2.0.40.

Is there really a v2.0.39 X v4.2.1 fix at CVS?  Where is it and what
is it exactly (what am I missing)?

Does Apache v2.0.40 fix this issue?  When will it be released?

My offline testing platform is functional with Apache v2.0.35 but I would 
like to upgrade it ASAP anyway, I don't want my personal computer to have
software with known, fixable but unfixed flaws on it for one second longer
than necessary.

Reese


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
<snip>

>Now... on certain browser platforms the browser spuriously dies for no reason. 
>(Primarily Oldish IE 5.0(but not all releases) and 5.5).
>
>Has anyone came accross this kind of thing before?
>
></snip>
>  
>
What? M$ software crashing? Na... never seen that ;-)

sorry... coudn't help that!

What output do you produce with your PHP script? Is it plain HTML, does 
it include Javascripts or some our scripts? Did you check the HTML code 
of the output? Does it contain invalid tags or missing end tags?


René






--- End Message ---
--- Begin Message ---
There is rather a lot to check... i have checked *most* of it... the only JS is to 
open a pop-up window, but that functions correctly...

In one particular version of IE it fails even to submit the login form ;\

Works perfectly in Mozzilla/NN(4->6)... also fine in IE 6, and as I mentiond most 
IE5.0 except a handfull... but I obviously cant let the client view it as I am unsure 
what browser they will use...


> -----Original Message-----
> From: René Moonen [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2002 11:05 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Browser Troubles...
> 
> 
> <snip>
> 
> >Now... on certain browser platforms the browser spuriously 
> dies for no reason. (Primarily Oldish IE 5.0(but not all 
> releases) and 5.5).
> >
> >Has anyone came accross this kind of thing before?
> >
> ></snip>
> >  
> >
> What? M$ software crashing? Na... never seen that ;-)
> 
> sorry... coudn't help that!
> 
> What output do you produce with your PHP script? Is it plain 
> HTML, does 
> it include Javascripts or some our scripts? Did you check the 
> HTML code 
> of the output? Does it contain invalid tags or missing end tags?
> 
> 
> René
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---
--- Begin Message ---
Hy...

How can I get back an reference value from an function.
I call an COM-function witch is described as followed :

int GetCount(Value 1, Value 2, return Value 3)

Well... 'till now it look like this

$obj = new COM("comobject");
$count = -1;
$error = -1;
$error = $obj -> GetCount(1,1,&$count);

I get back the int value ob GetCount, thats OK.
But how can I get back Value 3 ???

Help would be appreciated...

Thanks
Thomas Weidner


--- End Message ---
--- Begin Message ---
Hi folks!

Is there anyone that can tell me if it is possible to validate users in php
on a windows machine against domain accounts??

Really need to know if its possible and if it is, the how.

Thanks in advance!


--- End Message ---
--- Begin Message ---

I actually found a free PERL script that uses a zip code database and
the math to calculate the closest store (by zip code) to a user entered
address.  I have converted it to work under php.  So thanks to all the
idiots who felt it necessary to poke fun at me instead of trying to help.

Ron

Scott Hurring wrote:
> 
> Actually, a fine gentleman from Nigera the other day
> emailed me the encrypted source code to just such
> a script.... all i had to do was give him my bank
> account information and let him transfer over
> $25 million to me so i could afford some machines
> to crack the encryption.  :-)
> 
> --
> Scott Hurring
> Systems Programmer
> EAC Corporation
> scott (*) eac.com
> --
> "Paul Roberts" <[EMAIL PROTECTED]> wrote in message
> 007301c226bc$fda2d790$96eb86d9@laptop1">news:007301c226bc$fda2d790$96eb86d9@laptop1...
> No but when you find it please post it here.
> 
> ----- Original Message -----
> From: "George Nicolae" <[EMAIL PROTECTED]>
> To: <>
> Sent: Monday, July 08, 2002 9:16 PM
> Subject: [PHP-WIN] Re: Closest store location by zip code
> 
> Does any one know a php script that send to my account unlimited money?
> 
> --
> 
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> PaginiWeb.com  - Professional Web Design
> www.PaginiWeb.com
> 
> "R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > Does any one know of a php script to calculate the closest store to a
> > user entered zip code?
> >
> > Thanks,
> > Ron
> 
> --
> 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 ---
Thank you Colin, it solved it.

Jean

"Colin McDonald" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try $_POST[''] instead of $HTTP_POST_VARS['']  this changed recently.
>
> also, $username probably doesn't work because you have register_globals
> turned off in your php.ini
>
> colin
>
> Jean Bresse wrote:
> > Hello:
> >
> > Took my first dip into the world on php over the weekend and got stumped
on
> > this:
> >
> > I cannot read the value of a form parameter.  Here is the code:
> >
> > FORM:
> >
> > <html>
> >  <head>
> >   <title>COP Server</title>
> >  </head>
> >  <body>
> >   <form action="post1.php" method="post">
> >    UserName: <input type="text" name="Username"><br>
> >    <input type="submit" name="Submit" value="Submit">
> >   </form>
> >  </body>
> > </html>
> >
> >
> > POST1.PHP
> >
> > <html>
> >  <head>
> >   <title>Listing 1</title>
> >  </head>
> >  <body>
> >   <?php
> >    print(" The user name is: {$Username}<br>" );
> >    print(" The user name is: {$HTTP_POST_VARS['Username']}<br>" );
> >   ?>
> >  </body>
> > </html>
> >
> > $HTTP_POST_VARS['Username'] does work but $Username does not.  Could it
be
> > configuration related? (Installed Apache 1.3.21 with PHP 4.2.1 on
Windows
> > 2000 Server).
> >
> > Your help is most appreciated!
> >
> > Jean
> >
> >
>
>


--- End Message ---
--- Begin Message ---

I have put together this script to read a row of data from SQL Server,
perform a calculation and write back the results.  the read and
calculation are working but it doesn't write the data to SQL
Server...what am I doing wrong here?

<? 

$host="---.---.---.---"; 
$DB="database"; 
$user="sa"; 
$pass=""; 

$connect = mssql_connect($host,$user,$pass) or die ($host." not
accessible."); 
if ($DB) mssql_select_db($DB)or die('USE '.$DB.' failed!'); 


$query = "SELECT * FROM zipcodes where city = 'ADAMSVILLE'"; 
$result = mssql_query($query); 

$numRows = mssql_num_rows($result); 

echo "<table
border=1><tr><td>City</td><td>State</td><td>Zip</td><td>Longitude</td><td>Latitude</td><td>Longitude
 Radians</td><td>Latitude
Radians</td></tr>";

for($i=0; $i<$numRows; $i++){   
echo "<tr>"; 
$row = mssql_fetch_array($result); 
$latitude = $row['latitude']; 
$longitude = $row['longitude']; 
$longitude = $longitude * -1; 

echo
"<td>$row[city]</td><td>$row[state]</td><td>$row[zipcode]</td><td>$longitude</td><td>$latitude</td>";
 

$pi = 3.1415926; 
$latitude_radians = ($pi/180.0) * $latitude; 
$longitude_radians = ($pi/180.0) * $longitude; 

echo "<td>$longitude_radians</td><td>$latitude_radians</td>"; 

$writeQuery = "INSERT INTO
zipcodes(longitude,latitude_radians,longitude_radians) 
VALUES('$longitude','$latitude_radians','$longitude_radians')";

$writeResult = mssql_query($writeQuery); 

echo "</tr>"; 
} 



?>
--- End Message ---
--- Begin Message ---
i have a feeling that your database doesnt commit by default. you may have 
to explicitly call commit from ur PHP scripts or set auto_commit in ur sql 
server.  Ofcourse if other update statements of yours are working without 
an explicit commit then i cant find anything wrong with ur code.
Mathew

At 08:55 AM 7/9/2002 -0500, you wrote:

>I have put together this script to read a row of data from SQL Server,
>perform a calculation and write back the results.  the read and
>calculation are working but it doesn't write the data to SQL
>Server...what am I doing wrong here?
>
><?
>
>$host="---.---.---.---";
>$DB="database";
>$user="sa";
>$pass="";
>
>$connect = mssql_connect($host,$user,$pass) or die ($host." not
>accessible.");
>if ($DB) mssql_select_db($DB)or die('USE '.$DB.' failed!');
>
>
>$query = "SELECT * FROM zipcodes where city = 'ADAMSVILLE'";
>$result = mssql_query($query);
>
>$numRows = mssql_num_rows($result);
>
>echo "<table
>border=1><tr><td>City</td><td>State</td><td>Zip</td><td>Longitude</td><td>Latitude</td><td>Longitude
> 
>Radians</td><td>Latitude
>Radians</td></tr>";
>
>for($i=0; $i<$numRows; $i++){
>echo "<tr>";
>$row = mssql_fetch_array($result);
>$latitude = $row['latitude'];
>$longitude = $row['longitude'];
>$longitude = $longitude * -1;
>
>echo
>"<td>$row[city]</td><td>$row[state]</td><td>$row[zipcode]</td><td>$longitude</td><td>$latitude</td>";
> 
>
>
>$pi = 3.1415926;
>$latitude_radians = ($pi/180.0) * $latitude;
>$longitude_radians = ($pi/180.0) * $longitude;
>
>echo "<td>$longitude_radians</td><td>$latitude_radians</td>";
>
>$writeQuery = "INSERT INTO
>zipcodes(longitude,latitude_radians,longitude_radians) 
>VALUES('$longitude','$latitude_radians','$longitude_radians')";
>
>$writeResult = mssql_query($writeQuery);
>
>echo "</tr>";
>}
>
>
>
>?>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
does it show an error or warning ? use mssql_rows_affected() and find if 
any row was affected. try using mssql_get_last_message() and find if any 
message was sent by the server.

Mathew


At 09:17 AM 7/9/2002 -0500, you wrote:
>Mathew,
>
>Thanks for your reply.
>
>I have another table in the same database that I'm writing to
>successfully, it just doesn't seem to want to write to this one table.
>I am totally frustrated with this script but I need to get it done.
>Thanks for any ideas you might have.
>
>Ron
>
>
>
>Mathew Joseph wrote:
> >
> > i have a feeling that your database doesnt commit by default. you may have
> > to explicitly call commit from ur PHP scripts or set auto_commit in ur sql
> > server.  Ofcourse if other update statements of yours are working without
> > an explicit commit then i cant find anything wrong with ur code.
> > Mathew
> >
> > At 08:55 AM 7/9/2002 -0500, you wrote:
> >
> > >I have put together this script to read a row of data from SQL Server,
> > >perform a calculation and write back the results.  the read and
> > >calculation are working but it doesn't write the data to SQL
> > >Server...what am I doing wrong here?
> > >
> > ><?
> > >
> > >$host="---.---.---.---";
> > >$DB="database";
> > >$user="sa";
> > >$pass="";
> > >
> > >$connect = mssql_connect($host,$user,$pass) or die ($host." not
> > >accessible.");
> > >if ($DB) mssql_select_db($DB)or die('USE '.$DB.' failed!');
> > >
> > >
> > >$query = "SELECT * FROM zipcodes where city = 'ADAMSVILLE'";
> > >$result = mssql_query($query);
> > >
> > >$numRows = mssql_num_rows($result);
> > >
> > >echo "<table
> > >border=1><tr><td>City</td><td>State</td><td>Zip</td><td>Longitude</td>< 
> td>Latitude</td><td>Longitude
> > >Radians</td><td>Latitude
> > >Radians</td></tr>";
> > >
> > >for($i=0; $i<$numRows; $i++){
> > >echo "<tr>";
> > >$row = mssql_fetch_array($result);
> > >$latitude = $row['latitude'];
> > >$longitude = $row['longitude'];
> > >$longitude = $longitude * -1;
> > >
> > >echo
> > >"<td>$row[city]</td><td>$row[state]</td><td>$row[zipcode]</td><td>$long 
> itude</td><td>$latitude</td>";
> > >
> > >
> > >$pi = 3.1415926;
> > >$latitude_radians = ($pi/180.0) * $latitude;
> > >$longitude_radians = ($pi/180.0) * $longitude;
> > >
> > >echo "<td>$longitude_radians</td><td>$latitude_radians</td>";
> > >
> > >$writeQuery = "INSERT INTO
> > >zipcodes(longitude,latitude_radians,longitude_radians)
> > >VALUES('$longitude','$latitude_radians','$longitude_radians')";
> > >
> > >$writeResult = mssql_query($writeQuery);
> > >
> > >echo "</tr>";
> > >}
> > >
> > >
> > >
> > >?>
> > >
> > >--
> > >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 ---
hi,

i'm using php 4.2.1 on win2k. but i have problems using the xslt-modul within my 
website. 
as soon as i actvate the extension (php_xslt.dll) in the php.ini i get an error-message
"Unable to load dynamic library 'c:\...\php_xslt.php' - unable to find the function"

i tried to install a other version of the module from shanx.com 
(http://shanx.com/php/xsl/getXsl.htm), but i didn't solve the problems?

any ideas?
roman


--- End Message ---
--- Begin Message ---
OK following from my thread 'Browser Issues' I have found that when serving the site 
from apache, that the aforementioned errors go away... mostly...

OK so... What is the best way to setup so that IIS/Apache co-exist...

I'd like to keep the 'entry' to the site on IIS as we have other sites too... and use 
apache to serve the content of it.

Any help mucho appreciated... also working to a deadline!
--- End Message ---
--- Begin Message ---
I have Apache and  IIS coexisting on my intranet server and the way I set
them up was to put each on a different port. (Apache serves http://intranet
and IIS serves http://intranet:8080) this appears to work fine. Hope this
helps

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



-----Original Message-----
From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 10:39 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Dual Server...


OK following from my thread 'Browser Issues' I have found that when serving
the site from apache, that the aforementioned errors go away... mostly...

OK so... What is the best way to setup so that IIS/Apache co-exist...

I'd like to keep the 'entry' to the site on IIS as we have other sites
too... and use apache to serve the content of it.

Any help mucho appreciated... also working to a deadline!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I will probably do this the other way round as we have a few sites...

so if i have a single file with a frame and point contents of frame to apache this 
should work?

> -----Original Message-----
> From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2002 4:41 PM
> To: Brian McGarvie; [EMAIL PROTECTED]; 
> [EMAIL PROTECTED]
> Subject: RE: [PHP] Dual Server...
> 
> 
> I have Apache and  IIS coexisting on my intranet server and 
> the way I set
> them up was to put each on a different port. (Apache serves 
> http://intranet
> and IIS serves http://intranet:8080) this appears to work 
> fine. Hope this
> helps
> 
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Fax: (504) 248-3866
> Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> 
> 
> 
> -----Original Message-----
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:39 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Dual Server...
> 
> 
> OK following from my thread 'Browser Issues' I have found 
> that when serving
> the site from apache, that the aforementioned errors go 
> away... mostly...
> 
> OK so... What is the best way to setup so that IIS/Apache co-exist...
> 
> I'd like to keep the 'entry' to the site on IIS as we have other sites
> too... and use apache to serve the content of it.
> 
> Any help mucho appreciated... also working to a deadline!
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---
--- Begin Message ---
Hi Brian...

I have it set up just like Robert, and I really think it's the way to go -
having Apache as the web-accessible server gives me much more peace of mind
than having IIS sitting out there just waiting to be attacked.

Do you realize you can have content served by IIS accessed without using the
:8080 (or whatever) port number?
I'm not sure if you're aware of this but here's the relevant parts of my
httpd.conf:

NameVirtualHost *
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *>
 ServerName zevi.net
 ServerAlias zevi.net www.zevi.net
 ProxyRequests Off
 ProxyPass / http://zevi.net:4040/
 ProxyPassReverse / http://zevi.net:4040/
</VirtualHost>

<VirtualHost *>
 ServerName newworkstudio.com
 ServerAlias newworkstudio.com www.newworkstudio.com
 DocumentRoot "C:/htdocs/newworkstudio.com"
 DirectoryIndex index.html
</VirtualHost>

So, for each ASP site (or for each site served by IIS), just add a
VirtualHost entry using the ProxyPass directive to send it to the IIS
server.  The IIS server doesn't have to be on the same computer by the way -
or even the same network...

Hope that helps.

Matt Parlane
Zevi Interactive
[EMAIL PROTECTED]

"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I will probably do this the other way round as we have a few sites...

so if i have a single file with a frame and point contents of frame to
apache this should work?

> -----Original Message-----
> From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2002 4:41 PM
> To: Brian McGarvie; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RE: [PHP] Dual Server...
>
>
> I have Apache and  IIS coexisting on my intranet server and
> the way I set
> them up was to put each on a different port. (Apache serves
> http://intranet
> and IIS serves http://intranet:8080) this appears to work
> fine. Hope this
> helps
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Fax: (504) 248-3866
> Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
> -----Original Message-----
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:39 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Dual Server...
>
>
> OK following from my thread 'Browser Issues' I have found
> that when serving
> the site from apache, that the aforementioned errors go
> away... mostly...
>
> OK so... What is the best way to setup so that IIS/Apache co-exist...
>
> I'd like to keep the 'entry' to the site on IIS as we have other sites
> too... and use apache to serve the content of it.
>
> Any help mucho appreciated... also working to a deadline!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
C:\APACHE2\BIN>apache -t
APACHE: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not comp
atible with this version of Apache.
Please contact the vendor for the correct version.

anyone seen this when trying to run apache?
--- End Message ---
--- Begin Message ---
At 5:25 PM +0100 7/9/02, Brian McGarvie wrote:
>C:\APACHE2\BIN>apache -t
>APACHE: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" 
>is not comp
>atible with this version of Apache.
>Please contact the vendor for the correct version.
>
>anyone seen this when trying to run apache?
>

I think you (and others) need an updated PHP. There are numerous 
recent messages on this list referring to the issue and the fix. 
Checking the message archives would yield the answer. I'll save you 
the trouble...

Visit:
<http://snaps.php.net/win32/>
<http://ftp.proventum.net/pub/php/win32-snapshots/>

for the latest Win32 PHP binaries.

...or get a quick fix here:
<http://ftp.proventum.net/pub/php/win32/php4.2.x-apache2.zip>

HIH,

Steve Parrish
-- 
<mailto:[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Hi, thanks for your reply.  The COM app doesn't even start.  Viewing the
webpage that only attempts to open and close a COM instance (to winamp
incidently) simply says "Web page found, waiting for reply" and nothing ever
happens.  Simply trying it against the command line works fine however which
baffles me.  It also puts me in the direction of permissions I'd guess?  But
I've never really used XP/NT/2K before so I'm not sure where to look in that
case.

I read your answer to Olivier (whose problem appears to be the same as mine)
and as for the user not being able to use COM, for the benefits of testing,
I was logged in as administrator which makes me doubtful that the cause lies
there?...

Would appreciate any other advice you might have.

Cheers

Ross

-----Original Message-----
From: Scott Hurring [mailto:[EMAIL PROTECTED]]
Sent: 08 July 2002 22:33
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: COM stalls the server..


Have you been making sure that the COM app. actually
finishes and cleans up properly on the server
(i.e. CTL+ALT+DEL process list doesn't show it)?

I was playing with Excel+COM with PHP 4.2.0 and
there was a bug with the COM implementation and the
Excel instance would never terminate.... so after a few
minutes, there'd be so many open Excel instances that
the computer would really slow down.

I'd imagine that on a server, the problem would be
magnified.

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi again
>
> I'm trying a bit of COM programming in PHP but can't for the life of me
> figure out what's wrong.  I've tried both Winamp (have winampCOM
installed)
> and MS Word and it just seems to stall the server whenever I view a page
> with it.  Can anyone explain why or is there a setting in php.ini I have
to
> play with? (I've looked but can't find anything)
>
> It seems to work from the command line, but not through a browser.
>
> Config:
> Win XP Pro (administator)
> Apache 1.3.26
> PHP 4.2.1
>
> Ross
>



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I have run into this as well.  Of course, the project I am working on is kind of
critical so I couldn't spend time on resolving the issue.

I found that running the COM object through the php-cli prog, I could accomplish
what I needed.  Trying to insert the COM object in the Apache space caused all
kinds of issues.  

As stated, I am not sure why.  

I just call php-cli through exec and created a php file that returns everything
through std-out, and things are going good so far.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/


Quoting Ross Fleming <[EMAIL PROTECTED]>:

> Hi, thanks for your reply.  The COM app doesn't even start.  Viewing the
> webpage that only attempts to open and close a COM instance (to winamp
> incidently) simply says "Web page found, waiting for reply" and nothing
> ever
> happens.  Simply trying it against the command line works fine however
> which
> baffles me.  It also puts me in the direction of permissions I'd guess? 
> But
> I've never really used XP/NT/2K before so I'm not sure where to look in
> that
> case.
> 
> I read your answer to Olivier (whose problem appears to be the same as
> mine)
> and as for the user not being able to use COM, for the benefits of testing,
> I was logged in as administrator which makes me doubtful that the cause
> lies
> there?...
> 
> Would appreciate any other advice you might have.
> 
> Cheers
> 
> Ross
> 
> -----Original Message-----
> From: Scott Hurring [mailto:[EMAIL PROTECTED]]
> Sent: 08 July 2002 22:33
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: COM stalls the server..
> 
> 
> Have you been making sure that the COM app. actually
> finishes and cleans up properly on the server
> (i.e. CTL+ALT+DEL process list doesn't show it)?
> 
> I was playing with Excel+COM with PHP 4.2.0 and
> there was a bug with the COM implementation and the
> Excel instance would never terminate.... so after a few
> minutes, there'd be so many open Excel instances that
> the computer would really slow down.
> 
> I'd imagine that on a server, the problem would be
> magnified.
> 
> --
> Scott Hurring
> Systems Programmer
> EAC Corporation
> scott (*) eac.com
> --
> "Ross Fleming" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi again
> >
> > I'm trying a bit of COM programming in PHP but can't for the life of me
> > figure out what's wrong.  I've tried both Winamp (have winampCOM
> installed)
> > and MS Word and it just seems to stall the server whenever I view a page
> > with it.  Can anyone explain why or is there a setting in php.ini I have
> to
> > play with? (I've looked but can't find anything)
> >
> > It seems to work from the command line, but not through a browser.
> >
> > Config:
> > Win XP Pro (administator)
> > Apache 1.3.26
> > PHP 4.2.1
> >
> > Ross
> >
> 
> 
> 
> --
> 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
> 
> 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

----- End forwarded message -----


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
You might be able to get away with a command line version of PKZIP or Winzip
(they do have a command line tool).

-Dash

-----Original Message-----
From: Mathew Joseph [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 10:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Zip Problem


Hi There,
I am trying to incorporate zipping and unzipping files on a windows 
platform via PHP. I came across ZZiplib but wasnt able to find any 
information with regard to windows installation. Is there anyone who has 
tried something similar ?
If yes, could you give me installation details and if possible a DLL which 
works on the windows platform.
thanks in advance,
Mathew


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi ng!

Well, I have finally managed to make my archive (thanks to being set on the
right track by this ng), yet I am having a problem using the bz2
functions...

The code I am using to make the compressed file is as follows:

                $data = file ("$filename.tar");
                $bz = bzopen ("$filename.bz2", "w");
                bzwrite ($bz, $data);
                bzclose ($bz);

(The tar file has been created previously in the script.)
I have checked permissions on the directory in question (I have even opened
them wide up for dev purposes) and yet the script fails withthe following
error:

Warning: bzopen(): Unable to open file in
e:\apache\splatted.net\download_basket.php on line 53

Has anyone here got any ideas?

regards,

Mikey

--- End Message ---
--- Begin Message ---
At 09:15 09/07/2002 +0000, you wrote:
>Message-ID: <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>From: "Scott Hurring" <[EMAIL PROTECTED]>
>Date: Mon, 8 Jul 2002 17:36:52 -0400
>Subject: Re: WinampCOM problem
>
>What user is your Server running as?

Whoa ! This is a really, really *bad* idea - you have given the web server 
access to all the files which are owned by you as far as I can tell, and 
have introduced a major security hole. A web server should *always* run as 
its own (low-privilege) user, and be given limited access to specific files 
by adjusting the permissions on the file & directory on a case by case 
basis, not the other way around.

Please tell me the address of your webserver, I wanna hack it ;-)
(Actually you dont need to - somebody will probably beat me to it!)

Cheers,
Neil Smith.

>For me, when i setup apache on my Win2k machine, i
>had to "RunAs" my personal "scott" account, rather than
>the system account, or else apache wouldn't be able to
>read certain "scott-only" files.... perhaps the user that
>apache is running as doesn't have permission to do
>COM stuff.... but i really don't know for sure.
>
>--
>Scott Hurring
>Systems Programmer
>EAC Corporation
>scott (*) eac.com
>--
>"Olivier Hubert" <[EMAIL PROTECTED]> wrote in message

--- End Message ---
--- Begin Message ---
You're entirely correct -- IF it was an internet
accessable webserver.

It's installed locally on my workstation solely for
local development.  It's got a pretty nice corporate
firewall and "httpd.conf" restrictions setup to deny
access to everyone 'cept me.  Of course, firewalls
and corporate LAN's can be hacked, but i figure that
if someone's good/determined enough to hack into this
particular LAN, apache security flaws are the least
of my worries.  :-)

But basically, i did that beucase i'm not too fluent
with the bizarre system of Win2k permissions and
system accounts...

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Neil Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 7:56 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: run as
> 
> 
> At 09:15 09/07/2002 +0000, you wrote:
> >Message-ID: <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >From: "Scott Hurring" <[EMAIL PROTECTED]>
> >Date: Mon, 8 Jul 2002 17:36:52 -0400
> >Subject: Re: WinampCOM problem
> >
> >What user is your Server running as?
> 
> Whoa ! This is a really, really *bad* idea - you have given 
> the web server 
> access to all the files which are owned by you as far as I 
> can tell, and 
> have introduced a major security hole. A web server should 
> *always* run as 
> its own (low-privilege) user, and be given limited access to 
> specific files 
> by adjusting the permissions on the file & directory on a 
> case by case 
> basis, not the other way around.
> 
> Please tell me the address of your webserver, I wanna hack it ;-)
> (Actually you dont need to - somebody will probably beat me to it!)
> 
> Cheers,
> Neil Smith.
> 
> >For me, when i setup apache on my Win2k machine, i
> >had to "RunAs" my personal "scott" account, rather than
> >the system account, or else apache wouldn't be able to
> >read certain "scott-only" files.... perhaps the user that
> >apache is running as doesn't have permission to do
> >COM stuff.... but i really don't know for sure.
> >
> >--
> >Scott Hurring
> >Systems Programmer
> >EAC Corporation
> >scott (*) eac.com
> >--
> >"Olivier Hubert" <[EMAIL PROTECTED]> wrote in message
> 
--- End Message ---

Reply via email to