php-windows Digest 10 Mar 2001 11:53:51 -0000 Issue 483

Topics (messages 5913 through 5928):

Re: HELP ON IIS4 & PHP4.0.4pl1
        5913 by: Martin Kemp

Re: Echoed Status and Content-type Problem
        5914 by: Pablo Vera
        5917 by: Fernando Madruga

PHP 4.0.4p1 (ISAPI) crashing on IIS
        5915 by: Martin Kemp
        5921 by: Asendorf, John

Re: CGI error?
        5916 by: Fernando Madruga

Benchmark humor
        5918 by: Chris Adams

IIS Index Server COM
        5919 by: Matthew Podwysocki

Exec and System
        5920 by: Randall Barber

Re: Weekly Update
        5922 by: newbrightconceptz2321.juno.com

Re: Grabbing a Win2K username...
        5923 by: Michael Rudel

Resource for PHP and other technologies
        5924 by: narsu

Re: Strip text from HTML
        5925 by: Michael Rudel

Dynamic image, what size?
        5926 by: Martin Verstegen

CVS for win
        5927 by: Paul Meagher

GD lib
        5928 by: Alex

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]


----------------------------------------------------------------------


You're not alone in having had this problem - I upgraded a machine from
win98 to win2k and spent about a day banging my head against a wall trying
to get PHP to work (it wasn't even finding the executable), and then
realised at about 9pm that I was installing the .dll and .ini file to
c:\windows, not c:\winnt as I should have done! I was so fed up...

Martin Kemp

> -----Original Message-----
> From: Florian Poizac [mailto:[EMAIL PROTECTED]]
> Sent: 09 March 2001 2:55
> To: PHP Mailing list; Phil Driscoll
> Subject: Re: [PHP-WIN] HELP ON IIS4 & PHP4.0.4pl1
>
>
> Thanks for your reponse
>
> I add total control for the system,admin,all the world to php.ini
> but this is again the same probleme
> So my WinNt install directory is c:\winnt.sbs does it can be the prob
>
> Cheers
>
>
> ----- Original Message -----
> From: Phil Driscoll <[EMAIL PROTECTED]>
> To: Florian Poizac <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, March 09, 2001 11:13 AM
> Subject: Re: [PHP-WIN] HELP ON IIS4 & PHP4.0.4pl1
>
>
> > php.ini should be in c:\winnt, and nowhere else - otherwise
> it's anybody's
> > guess which one will get used! Get rid of any copies you have made
> > elsewhere, and then check that the php.ini in c:\winnt has read
> access for
> > IUSR_<machinename>.
> >
> > Cheers
> > --
> > Phil Driscoll
> > Dial Solutions
> > +44 (0)113 294 5112
> > http://www.dialsolutions.com
> > http://www.dtonline.org
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>





Charles:

I suggest that you run your script from the command line and see what
is going on.  If something wrong happened, like an error, this output
from PHP will corrupt the header and then, part of it will go to the
browser as output.  This is why you are seeing that information in
your browser.  The header ends with a double CRLF and anything after
this is echoed by the browser.

Pablo
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Friday, March 09, 2001, 8:11:02 AM, Charles wrote:

CWCA> Hey all,

CWCA> I have a weird problem here that maybe somebody out there can shed some
CWCA> light on.

CWCA> If you go to this URL:
CWCA> http://www.acns-online.com/chuck/stories/op/storiesView/sid/3/
CWCA> you will notice at the top of the page the following output:

CWCA> Status: 200 OK Content-type: text/html

CWCA> This should not be there.  There is a header() call in the redir.php3 script
CWCA> as follows:

CWCA> <snip>
CWCA> header("Status: 200 OK");
CWCA> </snip>

CWCA> Why is this echoing on the browser screen?  Also, the Content-type:
CWCA> text/html is nowhere in the scripts and still being echoed.

CWCA> Chuck


CWCA> ==============================================
CWCA> Charles Williams
CWCA> (Owner)
CWCA> Accent Computer & Network Services
CWCA> Markt 2
CWCA> D-95679 Waldershof
CWCA> Tel: +49 (0) 9231 972670
CWCA> Fax: +49 (0) 9231 972671
CWCA> http://www.acns-online.com
CWCA> GB/CS/O/U d-- -p+ c+++ l++ u- e+ m+ s++/ !n h---- f !g w++ t+ r x**
CWCA> ==============================================

CWCA> **************Email Confidentiality Footer**************

CWCA> The information contained in this email and any attachments is intended
CWCA> for the named recipients only. It may contain privileged and confidential
CWCA> information and if you are not the intended recipient, you must not copy,
CWCA> distribute or take any action in reliance on it. If you have received this
CWCA> email in error, please return it to the originator advising of the error
CWCA> and delete all copies from your system.







Does it happen ONLY on this page? Do you write or echo ANYTHING before the
header()? What is the value for error_reporting on your PHP.INI? Can you
make the source available if all else fails (copy it to .phps and give us
the url for that one)?

HTH,
  Fernando Madruga

-----Original Message-----
From: Charles Williams ( CEO ACNS ) [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 9 de Março de 2001 14:11
To: [EMAIL PROTECTED]; Linuxsa; Cobalt Users Group; Apache
Server mailing list
Subject: Echoed Status and Content-type Problem


Hey all,

I have a weird problem here that maybe somebody out there can shed some
light on.

If you go to this URL:
http://www.acns-online.com/chuck/stories/op/storiesView/sid/3/
you will notice at the top of the page the following output:

Status: 200 OK Content-type: text/html

This should not be there.  There is a header() call in the redir.php3 script
as follows:

<snip>
header("Status: 200 OK");
</snip>

Why is this echoing on the browser screen?  Also, the Content-type:
text/html is nowhere in the scripts and still being echoed.

Chuck


==============================================
Charles Williams
(Owner)
Accent Computer & Network Services
Markt 2
D-95679 Waldershof
Tel: +49 (0) 9231 972670
Fax: +49 (0) 9231 972671
http://www.acns-online.com
GB/CS/O/U d-- -p+ c+++ l++ u- e+ m+ s++/ !n h---- f !g w++ t+ r x**
==============================================

**************Email Confidentiality Footer**************

The information contained in this email and any attachments is intended
for the named recipients only. It may contain privileged and confidential
information and if you are not the intended recipient, you must not copy,
distribute or take any action in reliance on it. If you have received this
email in error, please return it to the originator advising of the error
and delete all copies from your system.






Hi folks,

Has anyone else had any trouble getting the ISAPI version of PHP4 to work
with IIS (the default one that comes with win2k pro - sorry, I can't
remember what version number) on a regular basis?
I've found that it works fine for the first couple of pages (in the same
session) and then consistently ends up with PHP having crashed and hence
getting an error message from IIS.

I'm sorry I can't be more specific with the messages - I'm at work, but I'll
check it out on the actual server when I get a chance.

The cgi version of PHP is (as has often been stressed on the home page) much
more reliable, but I wanted to use the ISAPI version since it saves having a
new version of the executable being loaded everytime a new page is
requested.

Do Apache users have similar problems, or am I sitting alone on this one?

regards,

Martin Kemp




Most of us have...  go with the CGI version for now...

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit


> -----Original Message-----
> From: Martin Kemp [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 09, 2001 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP 4.0.4p1 (ISAPI) crashing on IIS 
> 
> 
> Hi folks,
> 
> Has anyone else had any trouble getting the ISAPI version of 
> PHP4 to work
> with IIS (the default one that comes with win2k pro - sorry, I can't
> remember what version number) on a regular basis?
> I've found that it works fine for the first couple of pages 
> (in the same
> session) and then consistently ends up with PHP having 
> crashed and hence
> getting an error message from IIS.
> 
> I'm sorry I can't be more specific with the messages - I'm at 
> work, but I'll
> check it out on the actual server when I get a chance.
> 
> The cgi version of PHP is (as has often been stressed on the 
> home page) much
> more reliable, but I wanted to use the ISAPI version since it 
> saves having a
> new version of the executable being loaded everytime a new page is
> requested.
> 
> Do Apache users have similar problems, or am I sitting alone 
> on this one?
> 
> regards,
> 
> Martin Kemp
> 




Do you NEED to run PHP instead of using mod_php? I use mod_php and I get my
error handler executed if the .php file requested does not exists...
Besides, using mod_php is faster than running the external php.exe... :)

HTH,
  Fernando Madruga

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 9 de Março de 2001 5:00
To: [EMAIL PROTECTED]
Subject: CGI error?


Hello everyone, 
This may be a simple answer, but ive looked through php.net and apache.org.
I have both ISS5 and Apache on my windows 2000 machine.
IIS5 has a setting under the extention mappings that let the server check if

a file exists before sending it to the php executable...that way I get a 404

not found error instead of CGI Error: ect...
Is there a setting similar to this that I can set in apache or php.  I
simply 
want a 404 errordocument to be shown if a php file is not on my server 
instead of the current CGI Error (in apache).  Thanks for any help!

~Jeff




I was running some simple database performance tests this morning using PHP and
Cold Fusion using MS SQL on an NT box. On my first test, I did a number of
select statements. To my surprise, Cold Fusion (using OLEDB) came in at 4
seconds to PHP's 8. When I looked at the inner benchmark loops, I found the
difference - PHP was doing 5,000 queries and Cold Fusion was doing 500.

Chris




I'm reworking some parts of php index server page and I ran into an
access violation of "PHP has encountered an Access Violation at
01A63A11".  It happens when I try to execute this "$RankField =
$RS->Fields("rank");"  I can pass along more.  Can anyone help me?
Regards,
Matthew Podwysocki





I want my PHP script to execute an external program (which creates a file),
then php opens this file and fpassthru(..) the file to the browser.

The external exe needs a commandline arguement.  This is what I have tried:

exec("c:\\path\\to\\exe\\myProg.exe myValue=123456789");

This, along with system(...) ALWAYS returns false.

I am on Win2k, IIS, and permissions on the directory and exe are Everybody: WRX

Any ideas?

Thanks
RDB





-WEEKLY UPDATES-

BREAKING NEWS... RECORDS WERE BROKEN...
AND MILLIONAIRRES WILL BE MADE!!

THE ADVANTAGES OF BEING ON OUR TEAM ARE:

-YOU WILL GET PAYED NEXT WEEK!
-WE WILL BUILD ONE SIDE OF YOUR BUSINESS FOR YOU!
-WE WILL PROVIDE YOU WITH FREE NETWORKER LEADS SPECIFIC TO THIS OPPORTUNITY
-WE WILL TRAIN YOU, DO CALLS FOR YOU, AND PLUG YOU INTO OUR PROVEN SYSTEM
-YOU.... CANNOT FAIL



CHECK US OUT ON THE WEB AT

http://www.geocities.com/success352003/





***************************************************************
THIS EMAIL COMPLIES WITH ALL REGULATIONS AND IS NOT SPAM.  TO 
PERMANENTLY REMOVE YOURSELF FROM THE LIST SIMPLY EMAIL
[EMAIL PROTECTED] WITH "REMOVE" AS THE SUBJECT LINE.
***************************************************************




Hey Evan,

Since you R using W2K, you could use the NTLM-Authentification, but it
only works with M$-IE =8( If your company is only using M$-IE (yes, this
could happen =8), then you can write me for further details.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________


-----Original Message-----
From: Evan Roberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Grabbing a Win2K username...


Hey all,

Here's sort of a weird off-the-wall question:

Our network is primarily Win2K. Being in the purchasing department, I have
created a form that will allow employees to fill out what they want and
submit it, which then sends it as an email to their manager for approval.
This takes a lot of work out of my hands since I don't have to run around
anymore...

The only problem is that they have to pull their name down from a menu, and
this means that they could "spoof" names and give me a hassle... I have
already thought about creating a log in script, but that takes away from the
ease-of-use that I am striving for (lots of newbies here)...

So, I was wondering if there was a way to grab the username of the user
logged into that station, sort of along the lines of what "$REMOTE_ADDR"
does... I can backtrack with an nslookup since this is a Linux machine, but
it gives me the domain, not the username, and people tend to log into
different computers from time to time, so that wouldn't work in determining
who it is...

If anyone has any idea of what I am talking about, please give me a heads up
if this is possible or not... :-)

Thanks for your time!

Evan Roberts.




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





I developed this site http://www.hytes.com
for techical resource for developers.  Please take a look and let me know
your feedback.

Thanks
Narsu







Hi Mangiola,

yes you can.

If the html-document is local on your server, you can "fopen"
it an then parse line for line like this:

<?php

   if ( $fp = @fopen( "path/to/my/file/plus-the.file", "r" ) )
   {
      while( ! feof( $fp ) )
      {
         $line = fgets( $fp, 4096 );

         if ( ! strpos( $line, "<P>" ) === false )
         {
            echo $line;
                break;
         }
      }

      fclose( $fp );
   }
?>

... And if it's on a remote Host, then do the same but with "fsockopen"
(find help in the php-manual/Network Functions).

Hope t'll help.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



-----Original Message-----
From: Mangiola Nunzio Datavia [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 2:01 PM
To: PHP Windows List (E-mail)
Subject: [PHP-WIN] Strip text from HTML


Hi

I'd like to strip the first paragraph
of a html document and display it.

basically the introduction and no more.

Is this possible?

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





Hi,

I make a button with use of:
$im = ImageCreate(50,50);

At the end of this story I send it to the output stream:
ImagePNG($im);

Now I want to know how much memory I sended to the output stream. How do I
do that?
filesize (“image.png”); doesn’t work because it’s not a physical thing.

Regards,
Martin
www.2fit.nl







Does anyone have any recommendations for what windows-based CVS package is
the best?

I am wanting to contribute to a soureforge project so it would be nice if
the package played nice with whatever linux-based package they run.

Also, when doing development locally, is there a choice between just
running a CVS client or do you have to run a CVS server locally as well?

Any advice, pointers, etc... would be appreciated.

Regards,
Paul Meagher







Hi,
I'd like to get the GD lib for PHP but don't know where is it. I checked
php.net but there only link to the source code. Is there any dll or
something that doesn't require me to compile? I use NT 4.0.

Regards,
Alex.







Reply via email to