php-windows Digest 9 Jul 2003 04:39:26 -0000 Issue 1816

Topics (messages 20729 through 20739):

Re: how to make the Apache recognize the c:/php/sapi/php4apache.dll   -  
http://localhost/_MMServerScript/MMHTTPDB.php
        20729 by: Mark Clarkstone
        20731 by: Stephen

Re: Php Cgi & Module
        20730 by: Mark Clarkstone

Re: is_dir: runs bad under IIS/Win2K
        20732 by: Anthony

List files in a folder?
        20733 by: Anthony
        20735 by: malte

PHP saving the wrong values
        20734 by: Eric Kersten

Forms-PHP-and-errors
        20736 by: jh

SSL Certificates - where do I put them?
        20737 by: Stephen March

mysql question
        20738 by: H Marc Bower

Fast CGI and Active Perl: Conflict?
        20739 by: Adam

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

Have you tried adding this

LoadFile C:/php/php4ts.dll
           Loadmodule php4_module c:\php\sapi\php4apache.dll
           AddType application/x-httpd-php .php4
           AddType application/x-httpd-php-source .phps

instead of
LoadFile C:/www/php/php4ts.dll
           Loadmodule php4_module c:\www\php\sapi\php4apache.dll
           AddType application/x-httpd-php .php4
           AddType application/x-httpd-php-source .


"Ildiko Nyari" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Does anybody know how to make the Apache recognize the
c:/php/sapi/php4apache.dll   because Apache doesn't see it.
I have installed ImpAKT2, and now I am in a big mass, nothing works. I wish
I didn't do it.
I already had to reinstall Dreamweaver, to remove completely ImpAKT, because
it even didn't want to leave completely.

Anyway, my Apache doesn't work at all.
I reinstalled Apache too, but still it doesn't see the
c:/php/sapi/php4apache.dll  module.
In the httpd.conf  file the LoadModule php4_module
c:/php/sapi/php4apache.dll   is there.

PLEASE help me!

I am getting nuts with this.

THANKS,
ildiko


----- Original Message -----
From: Ildiko Nyari
To: Cristian MARIN
Sent: Wednesday, June 25, 2003 9:37 AM
Subject: Re: connecting to mySQL - testing server specified does not map to
the http://localhost/_MMServerScript/MMHTTPDB.php


Now the problem is that Apache can not find the nc:/php/sapi/php4apache.dll
module, but I checked and it is there.
I also checked the httpg.conf file and the module is there to be loaded. and
The # is not at the beginning of nthe line, so it should start, but it
doesn't!

Why Apache can't file a module that is in the directory, I see it.
thanks,
ildiko


  ----- Original Message -----
  From: Cristian MARIN
  To: Ildiko Nyari
  Sent: Wednesday, June 25, 2003 7:11 PM
  Subject: Re: connecting to mySQL - testing server specified does not map
to the http://localhost/_MMServerScript/MMHTTPDB.php


  Your testing path should be C:/Program Files/Apache Group/Apache2/htdocs
in place of C:/Program Files/Apache Group/Apache2/ and then indeed the
http://localhost/ should be OK


  -------------------------------------------------
  Cristian MARIN - Developer
  InterAKT Online (www.interakt.ro)
  Tel:         +4021 312.53.12
  Tel/Fax:  +4021 312.51.91
  [EMAIL PROTECTED]
    ----- Original Message -----
    From: Ildiko Nyari
    To: Cristian MARIN
    Sent: Wednesday, June 25, 2003 6:11 AM
    Subject: Re: connecting to mySQL - testing server specified does not map
to the http://localhost/_MMServerScript/MMHTTPDB.php


    Hello,
    yes, the testing server is C:/Program Files/Apache Group/Apache2

    and the testing server, was http://localhost/ before too.

    So, when I placed the test.php to C:/Program Files/Apache
Group/Apache2/htdocs
    and went to the explorer, I saw the test.php here:
http://localhost/test.php

    Sp it should be that right?
    Anyway, it still doesn't want to work, and I have no clue how to
reconfigure, it just makes me crazy, somehow it is extremely sensitive for
everything.
    thanks,
    ildiko


      ----- Original Message -----
      From: Cristian MARIN
      To: Ildiko Nyari
      Sent: Wednesday, June 25, 2003 4:20 PM
      Subject: Re: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


      Is your apache running and in the Dreamweaver you heve selected the
good path to the testing server? Because it seems you have not made this
configuration (the default one is http://localhost/) and this is the reason
you got the error below.

      Reply me if you don't succed
      -------------------------------------------------
      Cristian MARIN - Developer
      InterAKT Online (www.interakt.ro)
      Tel:         +4021 312.53.12
      Tel/Fax:  +4021 312.51.91
      [EMAIL PROTECTED]
        ----- Original Message -----
        From: Ildiko Nyari
        To: Cristian MARIN
        Cc: [EMAIL PROTECTED]
        Sent: Tuesday, June 24, 2003 6:03 PM
        Subject: Re: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


        It worked before, and than I installed ImpAKT2, and now it doesn't
work again, I have the same error than before!
        What happened?
        Why ImpAKT2 changed my settings?
        How can I move everything back again?
        I can't connect to mySQL at all.


        "testing server specified does not map to the
http://localhost/_MMServerScript/MMHTTPDB.php";

        thanks,
        ildiko

          ----- Original Message -----
          From: Cristian MARIN
          To: Ildiko Nyari
          Sent: Wednesday, June 18, 2003 3:23 AM
          Subject: Re: connecting to mySQL - testing server specified does
not map to the http://localhost/_MMServerScript/MMHTTPDB.php


          This it means that the Apache is serving the php files, not
interpreting them which make me think this is an apache configuration error.
          There are two posible reasons:
              - The apache is not using the httpd.conf configurated by you
and you can test this by adding a dummy line in the httpd.conf like
"kjasdhaskld;haskdjhaskljdhaslkjdaslhkdjahsd" and the server should crash
when it open with the message that is an invalid line in the https.conf.

              - In your httpd.conf you are not well configurated the php:

          LoadModule php4_module c:\Php\sapi\php4apache.dll
          ...
          ClearModuleList
          ...
          AddModule mod_php4.c
          ...
          AddType application/x-tar .tgz
          AddType application/x-httpd-php .php .php3 .php4 .phtml

          First of all verify these things.
          -------------------------------------------------
          Cristian MARIN - Developer
          InterAKT Online (www.interakt.ro)
          Tel:         +4021 312.53.12
          Tel/Fax:  +4021 312.51.91
          [EMAIL PROTECTED]
            ----- Original Message -----
            From: Ildiko Nyari
            To: [EMAIL PROTECTED]
            Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
[EMAIL PROTECTED] ; [EMAIL PROTECTED]
            Sent: Wednesday, June 18, 2003 2:55 AM
            Subject: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


            Hello,
            I have installed the PHP, mySQL and Apache on WIN XP, but:

            1. when I want to open in the explorer:
http://localhost/test.php  I always get a download window, and than my
Dreamweaver MX opens, and so I can't see the test.php file I created in the
explorer.

            2. When I created a php file in Dreamweaver MX, and I want to
connect it to mySQL, I have problems with the connection. It doesn't
connect, the error always something with the:
            The testing server specified for this site does not map to the
http://localhost/_MMServerScript/MMHTTPDB.php Verify that the URL prefix
maps to the root of the site.

            What is wrong? What and how can I do?
            I get crazy.
            THANKS,
            ildiko




--- End Message ---
--- Begin Message ---
It is also worth noting that php4ts.dll must be in the same directory as
php4apache.dll. You can find php4ts.dll in the php root directory (In your
case it looks like it should be in c:/php)

Stephen

----- Original Message ----- 
From: "Ildiko Nyari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 3:31 PM
Subject: [PHP-WIN] how to make the Apache recognize the
c:/php/sapi/php4apache.dll - http://localhost/_MMServerScript/MMHTTPDB.php


Does anybody know how to make the Apache recognize the
c:/php/sapi/php4apache.dll   because Apache doesn't see it.
I have installed ImpAKT2, and now I am in a big mass, nothing works. I wish
I didn't do it.
I already had to reinstall Dreamweaver, to remove completely ImpAKT, because
it even didn't want to leave completely.

Anyway, my Apache doesn't work at all.
I reinstalled Apache too, but still it doesn't see the
c:/php/sapi/php4apache.dll  module.
In the httpd.conf  file the LoadModule php4_module
c:/php/sapi/php4apache.dll   is there.

PLEASE help me!

I am getting nuts with this.

THANKS,
ildiko


----- Original Message ----- 
From: Ildiko Nyari
To: Cristian MARIN
Sent: Wednesday, June 25, 2003 9:37 AM
Subject: Re: connecting to mySQL - testing server specified does not map to
the http://localhost/_MMServerScript/MMHTTPDB.php


Now the problem is that Apache can not find the nc:/php/sapi/php4apache.dll
module, but I checked and it is there.
I also checked the httpg.conf file and the module is there to be loaded. and
The # is not at the beginning of nthe line, so it should start, but it
doesn't!

Why Apache can't file a module that is in the directory, I see it.
thanks,
ildiko


  ----- Original Message ----- 
  From: Cristian MARIN
  To: Ildiko Nyari
  Sent: Wednesday, June 25, 2003 7:11 PM
  Subject: Re: connecting to mySQL - testing server specified does not map
to the http://localhost/_MMServerScript/MMHTTPDB.php


  Your testing path should be C:/Program Files/Apache Group/Apache2/htdocs
in place of C:/Program Files/Apache Group/Apache2/ and then indeed the
http://localhost/ should be OK


  -------------------------------------------------
  Cristian MARIN - Developer
  InterAKT Online (www.interakt.ro)
  Tel:         +4021 312.53.12
  Tel/Fax:  +4021 312.51.91
  [EMAIL PROTECTED]
    ----- Original Message ----- 
    From: Ildiko Nyari
    To: Cristian MARIN
    Sent: Wednesday, June 25, 2003 6:11 AM
    Subject: Re: connecting to mySQL - testing server specified does not map
to the http://localhost/_MMServerScript/MMHTTPDB.php


    Hello,
    yes, the testing server is C:/Program Files/Apache Group/Apache2

    and the testing server, was http://localhost/ before too.

    So, when I placed the test.php to C:/Program Files/Apache
Group/Apache2/htdocs
    and went to the explorer, I saw the test.php here:
http://localhost/test.php

    Sp it should be that right?
    Anyway, it still doesn't want to work, and I have no clue how to
reconfigure, it just makes me crazy, somehow it is extremely sensitive for
everything.
    thanks,
    ildiko


      ----- Original Message ----- 
      From: Cristian MARIN
      To: Ildiko Nyari
      Sent: Wednesday, June 25, 2003 4:20 PM
      Subject: Re: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


      Is your apache running and in the Dreamweaver you heve selected the
good path to the testing server? Because it seems you have not made this
configuration (the default one is http://localhost/) and this is the reason
you got the error below.

      Reply me if you don't succed
      -------------------------------------------------
      Cristian MARIN - Developer
      InterAKT Online (www.interakt.ro)
      Tel:         +4021 312.53.12
      Tel/Fax:  +4021 312.51.91
      [EMAIL PROTECTED]
        ----- Original Message ----- 
        From: Ildiko Nyari
        To: Cristian MARIN
        Cc: [EMAIL PROTECTED]
        Sent: Tuesday, June 24, 2003 6:03 PM
        Subject: Re: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


        It worked before, and than I installed ImpAKT2, and now it doesn't
work again, I have the same error than before!
        What happened?
        Why ImpAKT2 changed my settings?
        How can I move everything back again?
        I can't connect to mySQL at all.


        "testing server specified does not map to the
http://localhost/_MMServerScript/MMHTTPDB.php";

        thanks,
        ildiko

          ----- Original Message ----- 
          From: Cristian MARIN
          To: Ildiko Nyari
          Sent: Wednesday, June 18, 2003 3:23 AM
          Subject: Re: connecting to mySQL - testing server specified does
not map to the http://localhost/_MMServerScript/MMHTTPDB.php


          This it means that the Apache is serving the php files, not
interpreting them which make me think this is an apache configuration error.
          There are two posible reasons:
              - The apache is not using the httpd.conf configurated by you
and you can test this by adding a dummy line in the httpd.conf like
"kjasdhaskld;haskdjhaskljdhaslkjdaslhkdjahsd" and the server should crash
when it open with the message that is an invalid line in the https.conf.

              - In your httpd.conf you are not well configurated the php:

          LoadModule php4_module c:\Php\sapi\php4apache.dll
          ...
          ClearModuleList
          ...
          AddModule mod_php4.c
          ...
          AddType application/x-tar .tgz
          AddType application/x-httpd-php .php .php3 .php4 .phtml

          First of all verify these things.
          -------------------------------------------------
          Cristian MARIN - Developer
          InterAKT Online (www.interakt.ro)
          Tel:         +4021 312.53.12
          Tel/Fax:  +4021 312.51.91
          [EMAIL PROTECTED]
            ----- Original Message ----- 
            From: Ildiko Nyari
            To: [EMAIL PROTECTED]
            Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
[EMAIL PROTECTED] ; [EMAIL PROTECTED]
            Sent: Wednesday, June 18, 2003 2:55 AM
            Subject: connecting to mySQL - testing server specified does not
map to the http://localhost/_MMServerScript/MMHTTPDB.php


            Hello,
            I have installed the PHP, mySQL and Apache on WIN XP, but:

            1. when I want to open in the explorer:
http://localhost/test.php  I always get a download window, and than my
Dreamweaver MX opens, and so I can't see the test.php file I created in the
explorer.

            2. When I created a php file in Dreamweaver MX, and I want to
connect it to mySQL, I have problems with the connection. It doesn't
connect, the error always something with the:
            The testing server specified for this site does not map to the
http://localhost/_MMServerScript/MMHTTPDB.php Verify that the URL prefix
maps to the root of the site.

            What is wrong? What and how can I do?
            I get crazy.
            THANKS,
            ildiko



--- End Message ---
--- Begin Message ---
Its the same but if you use it for a web hosting server then don't even
think about it! If you use it as a cgi module then hackers who use your site
will love it!




"Michael G. Tracey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Is there a danger if you install php as an Apache module and a CGI? Or
will you get the same functionality either way?
>
>
> Michael G. Tracey
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!



--- End Message ---
--- Begin Message ---
That's becasue on IIS the service runs under the IUSR_<machine name> user.
If you are running Apache, it defaults to run under a system account.  If
you want IIS to be able to see more folders on the system, give the
IUSR_<machine name> user more rights.  If you did something like
 if (is_dir('C:\Inetpub\wwwroot'))
 echo "It's a folder";

it should work.

- Anthony

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Just a few notes about my problem!
> It seems that PHP 4 on Windows 2000 with IIS 5.0 all directories of level
1
> (starting from the "root") aren't visible as "directories".
> In fact, I have tested some directory-paths with "is_dir" function, with
> different paths and PHP is able to recognize only / (root) and paths at
more
> deep levels. For example:
>
> /TMP/PHP_SESSIONS is_dir? 1
> /TMP is_dir?
> \TMP\PHP_SESSIONS is_dir? 1
> c:/TMP/PHP_SESSIONS is_dir? 1
> c:/TMP is_dir? [NOT RECOGNIZED]
> c:\TMP\PHP_SESSIONS is_dir? 1
> c:/ is_dir? 1
> c:/inetpub/ftproot is_dir? 1
> c:/inetpub is_dir? [NOT RECOGNIZED]
>
> As you can see, all directories are recognized (1) but not those at 1st
> level (like /TMP or C:/INETPUB). I don't know if this strange behaviour
> regards the specific PHP version used on Win2k or if it's a bug (on
> IIS/WinXP all runs well).
>
> My problem (checking if SESSION_SAVE_PATH directory exists) is now
resolved:
> simply, I use /TMP/PHP_SESSIONS as path and not only /TMP (as on every
other
> standard PHP installation).
>
> Hope this note can help!
>
> Bye
> Francesco
>
>



--- End Message ---
--- Begin Message ---
Is there a way I can get a list of files in a folder though PHP?  I'd like
to use PHP to access certian folders on my system through the browser, but I
need a way that I can load a list of files in a folder into an array.
anyone have any ideas?

PHP 4.3.1, Apache 2.0.45 on Win2K

- Anthony



--- End Message ---
--- Begin Message ---
$my_directory = "./stuff/morestuff")
$dir = dir($my_directory);
while($temp = $dir->read())
{
   $dirarray[] = $temp;
}


----- Original Message -----
From: "Anthony" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 4:27 PM
Subject: [PHP-WIN] List files in a folder?


> Is there a way I can get a list of files in a folder though PHP?  I'd like
> to use PHP to access certian folders on my system through the browser, but
I
> need a way that I can load a list of files in a folder into an array.
> anyone have any ideas?
>
> PHP 4.3.1, Apache 2.0.45 on Win2K
>
> - Anthony
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
I´m sending number to a mysql database via a php script and they are all
rounded although the field type in the database is set to double, and i
can´t seem to get where i am making the mistake.

anybody has any idea about this? I´m really a newbie in programming matters
so i would really apreciate your help.

thanks in advanced.

Eric Kersten



--- End Message ---
--- Begin Message ---
Hi,
        I am new to PHP and I am somewhat frustrated at times, because I am having a 
similar problem to Sebastian Baran,  with Webserver4Everyone and PHP 4.2.3. under Win95
         I would be grateful if anyone can throw some light on the problem, before I 
give up on php.
         Find below the code for the form and script and the errors which it outputs.
Thanks
jh

---------------------------------This is the form-------------------------------------
<HTML>
<HEAD>
<TITLE>Project 6-2</TITLE>
</HEAD>
<BODY bgcolor="#00ddff">
<!-- File p-6-2.html -->
<FORM METHOD="POST" ACTION="p-6-2.php">
<H1>Contact Information</H1>
<TABLE>
<TR>
  <TD>Title:</TD>
  <TD><INPUT TYPE="TEXT" NAME="title"></TD>
</TR>

<TR>
  <TD><B>First Name:</B></TD>
  <TD><INPUT TYPE="TEXT" NAME="firstname"></TD>
</TR>

<TR>
  <TD>Middle Name:</TD>
  <TD><INPUT TYPE="TEXT" NAME="middlename"></TD>
</TR>

<TR>
  <TD><B>Last Name:</B></TD>
  <TD><INPUT TYPE="TEXT" NAME="lastname"></TD>
</TR>
</TR>
</TABLE>
<BR>
<BR>
<BR>
<INPUT TYPE="SUBMIT" VALUE="Submit">
<BR>
<BR>
<INPUT TYPE="RESET"  VALUE="Clear the Form">
</FORM>
</BODY>
</HTML>


-----------------------This the PHP script------------------------------
<HTML>
<HEAD>
<TITLE>Project 6-2</TITLE>
</HEAD>
<BODY bgcolor="#ffbbf0>
<!-- File p-6-2.php -->

<?php

  $errors=0;
  if (!trim($title))
  {
      echo "<BR><B>Title</B> is required.";
     $errors++;
  }

  if (!trim($firstname))
  {
      echo "<BR><B>First name</B> is required.";
     $errors++;
  }

  if (!trim($lastname))
  {
      echo "<BR><B>Last name</B> is required.";
      $errors++;
  }

  if ($errors > 0)
      echo "<BR><BR><BR>Please use your browser's back button " .
        "to return to the form, correct ";
  if ($errors == 1)
      echo "the error, ";
  if ($errors > 1)
      echo "the errors, ";
  if ($errors > 0)
      echo "and re-submit the form.";

?>

</BODY>
</HTML>

------------------------These are the error messages it 
outputs-------------------------------

Notice: Undefined variable: title in D:\web\myforms\p-6-2.php on line 11

Title is required.
Notice: Undefined variable: firstname in D:\web\myforms\p-6-2.php on line 17

First name is required.
Notice: Undefined variable: lastname in D:\web\myforms\p-6-2.php on line 23

Last name is required.


Please use your browser's back button to return to the form, correct the errors, and 
re-submit the form.


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



--- End Message ---
--- Begin Message ---
Let's say I have a Web Server, which has a script that is accessing a
resource on another server, with a proper SSL certificate.
Where would I place these, or how would I specify a path through PHP code?

I think I require this to do an LDAP bind, it's via SSL.   I can get this
to work with an LDAP browser, or through other browsers - using the public
key.
Cheers,
~Steve



--- End Message ---
--- Begin Message ---
I know this isn't the mysql area... but many of you seem very knowledgeable in this 
area and I would appreciate your input...

What kind of field setup should I create if I want a field which will, essentially 
hold several distinct items, but never a set number of them?  I am going to be 
selecting these items (or the relational pointers to them) from a multi-select list 
(ie. this image belongs in the following categories). After that, I will need to 
output the contents of this field to an array.  That part I know how to do using php 
as long as it's a big string, but I am guessing there is a better way to do this.  
From the manual, it seems that a SET field would work, but I'd need the SET to be the 
contents of a field from another table.

For example, I have an image with an accession number of 1031-LH0152.  It will fit in 
the categories of "Military Posters", "McLaughlin - Colonel Robert Samuel", and 
"Ontario Regiment".  How do I get one field to hold all of the categories, and then 
what is the most efficient way to then transport that into an array with php?

Thank you for the more-elaborate-than-just-php assistance. 

Marc

--- End Message ---
--- Begin Message ---
If I install Fast CGI on my Windows server to speed up PHP, will it have any
conflict with Active Perl? I've been using UBB, but I'm going to be dropping
it soon for a PHP-based bulletin board.

Adam



--- End Message ---

Reply via email to