php-windows Digest 20 Jul 2001 05:10:13 -0000 Issue 660

Topics (messages 8397 through 8407):

Re: phpinfo()
        8397 by: Stuart Hunter

ImageCreate
        8398 by: Stuart Hunter
        8399 by: Ivan Milanez Castellanos
        8401 by: Randall Barber
        8402 by: Alain Sayez

Help with index.php directory requests
        8400 by: Michael Kelley

Re: php_pdf.dll
        8403 by: Alain Samoun

IIS situation - php as an ISAPI
        8404 by: Thomas Madrid

Re: Password Protection
        8405 by: Robert J Sherman

...misbehaved by not returning a complete set of HTTP headers
        8406 by: Louis Romestant

PHP and Sockets
        8407 by: Greg Obleshchuk

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]


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


In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> My guess is that you probably have an outdated .dll in you winnt\system32
> folder. Try copying all the necessary .dll files from the 4.06 zip file
> again.
> 
> 
Spot on, thanks Robin.  I double checked and I had copied the dll to the 
c:\winnt directory. The old dll was in the c:\winnt\system32 directory.

Stuart




When I first installed 4.0.5 I downloaded a version that already had 
graphics capability built in, and I was able to create web pages with 
graphs based on MySQL data.

Now I have installed 4.0.6 I don't have the graphics capability any more 
and my scripts throw these types of error:

Fatal error: Call to undefined function: imagecreate() in c:\program 
files\apache\htdocs\drawchart.php on line 81

Can someone point me to what I should install to get my graphics 
capability back?

Thanks.

Stuart





Stuart: all you have to do is uncomment the php_gd.dll extension in your
php.ini, that'll fix your problem.

Iván

-----Mensaje original-----
De: Stuart Hunter [mailto:[EMAIL PROTECTED]] 
Enviado el: Jueves, 19 de Julio de 2001 10:36 a.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP-WIN] ImageCreate


When I first installed 4.0.5 I downloaded a version that already had 
graphics capability built in, and I was able to create web pages with 
graphs based on MySQL data.

Now I have installed 4.0.6 I don't have the graphics capability any more

and my scripts throw these types of error:

Fatal error: Call to undefined function: imagecreate() in c:\program 
files\apache\htdocs\drawchart.php on line 81

Can someone point me to what I should install to get my graphics 
capability back?

Thanks.

Stuart

-- 
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]





Stuarts problem is not that gd.dll isn't uncommented, its simply no longer working 
since the upgrade.  Thats how I understood his plight at any rate.

Replace the 4.0.6 version of gd.dll with 4.0.5 and cross your fingers.  Or you could 
compile your own.
Ciao
RDB




Hello,
At this time, Gif isn't supported due to UniSys Licence problem.

Alain.
"Stuart Hunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When I first installed 4.0.5 I downloaded a version that already had
> graphics capability built in, and I was able to create web pages with
> graphs based on MySQL data.
>
> Now I have installed 4.0.6 I don't have the graphics capability any more
> and my scripts throw these types of error:
>
> Fatal error: Call to undefined function: imagecreate() in c:\program
> files\apache\htdocs\drawchart.php on line 81
>
> Can someone point me to what I should install to get my graphics
> capability back?
>
> Thanks.
>
> Stuart






I know it's off topic but there are many Apache users out there.

I have a small problem with my apache set up and I don't know how to fix it.

When a user requests a directory (that has a index.php or index.html file)

if the request is http://host

Page not found

if request is http://host/

then index page is loaded

How do I set apache so that both will work?

Thanks in Advance and once again sorry for the Off Topic (Any one know
of a good apache mailing list??)

Mike







-- 

Michael Kelley                  
[EMAIL PROTECTED] 
        
Programmer/Systems Analyst I    
New Mexico State University
Information and Communication Technologies
Work # (505)-646-1374
P.O. Box 30001
MSC: 3AT
Las Cruces, NM 88003









Read the new license, you will have to pay to use the latest version of
pdflib, but you still can use older versions of the dll without the
watermark.
To build the extensions, see www.php4win.de
Alain

On Thu, Jul 19, 2001 at 04:13:22PM +0200, Steen Rabøl wrote:
> Hi
> 
> Would someone be so kind to rebuild the php_pdf.dll without the www.pdflib.com logo ?
> Even better a complete guide on how to rebuild php and all the extensions.
> 
> Thanks in advance.
> Steen
> 




I have question concerning using PHP as an ISAPI. My problem is this. I set 
up IIS4 (running on WINNT4.0 sp5) and it runs fine for a bit, then 
eventually I receive an error that effectively shuts down the W3C service. 
This is not good. The error I am getting is "NT could no load http filter 
%DRIVE%:\PHP\php4ts.dll. The error is the yada yada yada". This is 
irritating me as I have to get this server up and running and so far this is 
my only problem. I have moved the file from that directory to the 
\WINNT\SYSTEM32 dir as well as the \WINNT\SYSTEM dir. My ISAPI filter is in 
the \SYSTEM32\ dir. Please advise. Thanks.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





It would also be considered more correct to use curly "{ }" to open and
close conditionals.. rather than ":" and end if/end else, etc..



"Erin'S Fan Club" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It is more correct to use 'else' as a default error catch. It is
> far better to turn it aroud like;
>
> <?
> $result = mysql_query("SELECT password, author FROM newsauthors WHERE
> author='$name' AND password='$code'");
> // If no rows are returned the user is not valid
> // However if two rows are return there is also a problem!
> if(mysql_num_rows($result) != 0):
>    {
>    while($result):  // Loop through $result array
>       {
>       $stored_password=$result[0];
>       $stored_author=$result[1];
>       // Check author and pasword match
>       if(($stored_password == $code) && ($stored_author == $name)):
>           {
>           Print "Correct password"; // if correct
>           }
>       else:
>           {
>           Print "Authetication failed";  // if failed
>           }
>       end if;
>       }
>    end  while;
>    }
> // If no rows found in DB to match author and password
> else:
>    {
>     Print "Authentication failed";
>    }
> end if;
>
> Have fun & hope this helps
>
> Regards EF
>
> >===== Original Message From "elias" <[EMAIL PROTECTED]> =====
> >try like that:
> ><?
> >$result = mysql_query("SELECT password FROM newsauthors WHERE
author='$name'
> >AND password='$code'");
> >if (mysql_num_rows($result) == 0)
> >{
> >// sorry wrong password
> >} else { // correct pwd }
> >
> >
> >"Nintendoodle" <[EMAIL PROTECTED]> wrote in message
> >002701c10ff5$bb273e80$[EMAIL PROTECTED]">news:002701c10ff5$bb273e80$[EMAIL PROTECTED]...
> >I am trying to get a content management system up and running on my site.
I
> >want to have the thing password protected, and this was how I was going
> >about it, passing on name and password variables in the urls of the
> >management system. However, this doesnt work, it just says your password
in
> >correct, even when it is not.
> >
> >Any help ?
> >
> ><?php
> >$code = mysql_query("SELECT password FROM newsauthors WHERE $name =
> >author");
> >?>
> ><?php
> >if ($code = $password) {
> >?>
> >//Content manager stuff goes here
> ><?
> >} else {
> >echo( "You have entered an incorrect password, or you do not have access
to
> >this part of the Staff area. Please press back on your browser and
re-enter
> >details." );
> >}
> >?>
> >
> >Thanks in advance
> >
> >
> >
> >
> >--
> >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've been using PHP 4.06 on a Win2k machine running IIS and it works fine.
I installed it on another Win2k machine and I get:

CGI Error

The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The
headers it did return are:

I checked permissions, app mappings, php -i, etc.  All seems ok.  The
machine that doesn't work differs from the one that does in that its server
v. professional and its had SP2 applied.

What else should I be looking for?

Louis






Hello,
    Does any one have a php.exe for win32 that has the following

The socket functions described here are part of an extension to PHP which
must be enabled at compile time by giving the --enable-sockets option to
configure.

I would like to us the socket features of php but I am not in a position to
re-compile php.exe

regards
Greg O




Reply via email to