php-windows Digest 23 May 2001 20:26:39 -0000 Issue 614

Topics (messages 7866 through 7898):

Re: LDAP and M$ Exchange 5.5 :: It's Not Happening.
        7866 by: Michael Rudel

Re: Problems coding in PHP
        7867 by: andrew morton

CRYPT SOUS WINDOWS
        7868 by: Dalyyla
        7896 by: Alain Samoun

Re: SQL Server stored procedures and functions
        7869 by: Paco Ortiz
        7870 by: Peter
        7872 by: Scott
        7873 by: Paco Ortiz

Re: Need Help!!
        7871 by: Michael Rudel

Re: Speed
        7874 by: Gary Pullis

Re: Multiple value selection box (mix php/html problem) **SOLUTION**
        7875 by: Michael Kelley

Re: RE:escape loop on timeout
        7876 by: Piotr Plusa
        7877 by: Svensson, B.A.T.

Error using PHP installer
        7878 by: Andrew Scott
        7879 by: Phil Driscoll

Re: mcrypt
        7880 by: JayAchTee
        7895 by: Daniel Beulshausen

Re: anti-advocacy: Larry Seltzer, pcmag May'01 pub.
        7881 by: JayAchTee
        7882 by: JayAchTee
        7883 by: JayAchTee
        7884 by: Boget, Chris
        7885 by: JayAchTee
        7886 by: JayAchTee
        7887 by: JayAchTee
        7888 by: JayAchTee

Re: Win2K IIS 5 CGI Behavior Error on simple page.
        7889 by: JayAchTee

Does OCILogon need ISAPI to stay persistent?
        7890 by: Asendorf, John
        7892 by: Thies C. Arntzen
        7893 by: Asendorf, John
        7894 by: Paco Ortiz

Password Encryption Error in PHPNUKE
        7891 by: SLundwall

THE SOLUTION
        7897 by: Asendorf, John

Managing Sessions
        7898 by: Scott Ellis

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]


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


Sorry 4 my late answer, but I hadn't the time to view the
list 4 the few last days =8(

I have written some small applications with M$-Xchange and LDAP.

You'll find a lot of examples and ready code (only ASP and VB)
in the MSDN-CD's.

You'll also need an Exchange-Account with the right privileges
if you want more than only read from the LDAP-Server.

I hope this helps. If you have more questions about Xchng && LDAP,
ask me. I have also written a web-based ADSI-Browser in ASP (sorry,
I was young and in need of the money =8) if you perhaps need it.
But you can also use the Xchng-Server-Console (in admin-mode) to
browse through the Xchng-Server, so that you will know where you
will find the info needed.

Greetinx,
  Mike

Here is a small example I wrote (and the class):

---------snip------------
<?php
//////////////////////////////////////////////////////////////////////////////////////////////
// <File-Header-Description>                                                           
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                     
     //
// Filename: LDAP_class_example.php                                                    
     //
//                                                                                     
     //
// Author:   Michael Rudel [mru] - mailto:[EMAIL PROTECTED]                         
     //
//                                                                                     
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                     
     //
// Description:                                                                        
     //
//                                                                                     
     //
// Usage:                                                                              
     //
//                                                                                     
     //
// Notes:                                                                              
     //
//                                                                                     
     //
// Bugs:                                                                               
     //
//                                                                                     
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//
// History: 2000-10-23: mru: Created
//
//////////////////////////////////////////////////////////////////////////////////////////////
// </File-Header-Description>                                                          
     //
//////////////////////////////////////////////////////////////////////////////////////////////

//Includes

  include( "LDAP_Functions.class" );


//Constants

   define( "BR", "<BR>\n" );
   define( "NL", "\n"     );


//Variables

   // $logon_user works only with NTML (MSIE, IIS)
   $logon_user       = substr( str_replace( "\\", "/", $LOGON_USER ), ( strrpos( 
str_replace( "\\", "/", $LOGON_USER ), "//" ) +
1 ) );

   $exchangeHost     = "pcin39"
   $exchangePort     = ""
   $exchangeUser     = ""
   $exchangePasswort = ""
   $ldapBaseDN       = "cn=Recipients, ou=PCIN-NET, o=in GmbH, c=de"


//Objects

   $ldap             = new ldap_handling;


//Initialisation

   $ldap->developer  = [EMAIL PROTECTED];
   $ldap->headers    = $mailFrom."\nReply-To: ".$this->logon_user
                     . "\nX-Mailer: PHP/".phpversion();

//Main


   // Connect to Exchange-Server
   $ldap->connect( $exchangeHost, $exchangePort, __FILE__, __LINE__ );

   // Bind to open ldap_connect
   $ldap->bind( $exchangeUser, $exchangePasswort, __FILE__, __LINE__ );

   // Searches through the recipients in the LDAP-Tree
   $ldap->search( $ldapBaseDN
                , "(&(objectClass=organizationalPerson)(!(department=Keine)))"
                , array( "uid", "cn", "mail", "telephonenumber", "dn" )
                , __FILE__
                , __LINE__
                );

   // Print out the result-array from the LDAP-Search
   print_array( $ldap->result_array );

   // Close the LDAP-Connection to the Exchange-Server
   $ldap->close( __FILE__, __LINE__ );


//Functions

   // Prints out an array recursiv
   function print_array( $array, $seperator = "" )
   {
      while ( list( $key, $val ) = each($array) )
      {
         if ( is_array( $val ) )
         {
            print_array( $val, $seperator." => ".$key );
         }
         else
         {
            echo "$seperator => $key => $val".BR;
         }
      }
      echo BR;
   }


////////////////
// local Vars: |
// Tab-Width:3 |
//-------------+

///////////////////////////
// End of File            |
// LDAP_class_example.php |
//------------------------+
?>
---------snip------------

And here my class the code uses:

---------snip------------
<?php
//////////////////////////////////////////////////////////////////////////////////////////////
// <File-Header-Description>                                                           
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                     
     //
// Filename: LDAP_Functions.class                                                      
     //
//                                                                                     
     //
// Author:   Michael Rudel [mru] - mailto: [EMAIL PROTECTED]                        
     //
//                                                                                     
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                     
     //
// Description:                                                                        
     //
//                                                                                     
     //
// Usage:                                                                              
     //
//                                                                                     
     //
// Notes:                                                                              
     //
//                                                                                     
     //
// Bugs:                                                                               
     //
//                                                                                     
     //
//////////////////////////////////////////////////////////////////////////////////////////////
//
// History: 2000-09-23: mru: Created
//          2000-10-26: mru: Added:    ldap_search() function
//                                     ldap_close()  function
//                                     (Host/User) in error() function (only with NTLM)
//
//////////////////////////////////////////////////////////////////////////////////////////////
// </File-Header-Description>                                                          
     //
//////////////////////////////////////////////////////////////////////////////////////////////


// redeclaration protection
if ( !defined( "__LDAP_HANDLING__" ) )
{
   define( "__LDAP_HANDLING__", 1 );

   // $logon_user works only with NTML (MSIE, IIS)
   $logon_user  = substr( str_replace( "\\", "/", $LOGON_USER ), ( strrpos( 
str_replace( "\\", "/", $LOGON_USER ), "//" ) + 1 ) );

   $WWW_PATH    = str_replace( strrchr( "http://".$SERVER_NAME.$SCRIPT_NAME, "/" ), 
"/", "http://".$SERVER_NAME.$SCRIPT_NAME );


   class ldap_handling
   {

      var $ldap_connection;   // Datenbase-Connection
      var $ldap_result;       // Searchresult-Ressource
      var $ldap_host;         // Host from LDAP-Servers
      var $ldap_port;         // Port to LDAP-Servers
      var $developer;         // Mailaddress of the responsible developer (for error 
mails)
      var $headers;           // Additional Mail-Headers (From, Reply-To, X-Mailer, 
...)
      var $redirection;       // Bool-Flag whether to redirect in error-case or not 
(true/false)
      var $redirect;          // Target-URL to redirect to in case of error

      var $result_array;      // Searchresult-array


      // Constructor
      function ldap_handling()
      {
         // Initialize default-values
         $this->ldap_connection = 0;
         $this->ldap_binding    = 0;
         $this->ldap_result     = 0;
         $this->developer       = "[EMAIL PROTECTED]";
         $this->headers         = "From: ERROR! Unknown-LDAP-Connection\nReply-To: 
".$logon_user."\nX-Mailer: PHP/".phpversion();
         $this->redirection     = false;
         $this->redirect        = "http://intra";;

         $this->result_array    = "";
      }


      // Connect to LDAP-Server
      function connect( $host="", $port="", $file="", $line="" ) // empty port 
defaults to port 389
      {
         $this->ldap_host = $host;
         $this->ldap_port = $port;

         if ( !$this->ldap_connection = ldap_connect( $host, $port ) )
         {
            $this->error( "ERROR: Connect to LDAP-Server [".$host."] on Port 
[".$port."] failed!", $file, $line );
         }
      }


      // Binding to LDAP-Server
      function bind( $user="", $password="", $file="", $line="" ) // empty user and 
password try's to connect as anonymous to the
LDAP-Server
      {
         if ( !$this->ldap_binding = ldap_bind( $this->ldap_connection, $user, 
$password ) )
         {
            $this->error( "ERROR: Bind to LDAP-Server as User[".$user."] with Password 
[".$password."] failed!", $file, $line );
         }
      }


      // Searches the LDAP-Tree
      function search( $base_dn = "", $filter = "", $arrayAttributes = array(), $file 
= "", $line = "" ) // whole LDAP-Directory if
empty !!
      {
         // Filter-Syntax:  string Filter [, array attributes [, int attrsonly [, int 
sizelimit [, int timelimit [, int deref]]]]]
         if ( !$this->ldap_result = ldap_search ( $this->ldap_connection, $base_dn, 
$filter, $arrayAttributes ) )
         {
            $this->error( "ERROR: Searching LDAP-Server with base_dn[".$base_dn."] and 
filter[".$filter."] !", $file, $line );
         }

         if ( !$this->result_array = ldap_get_entries( $this->ldap_connection, 
$this->ldap_result ) )
         {
            $this->error( "ERROR: Getting the search-result entries from LDAP-Server 
with Search-Result-ID[".$this->ldap_result."]
!", $file, $line );
         }
      }



      // Closes the connection to LDAP-Server
      function close( $file="", $line="" )
      {
         if ( !ldap_close( $this->ldap_connection ) )
         {
            $this->error( "ERROR: Closing LDAP-Server [".$this->host."] on Port 
[".$this->port."] failed!", $file, $line );
         }
      }


      // Returns LDAP-Errornumber
      function errno()
      {
         return ( ldap_errno( $this->ldap_connection ) );
      }


      // returns LDAP-Errormessage
      function errmsg()
      {
         return ( ldap_error( $this->ldap_connection ) );
      }


      // Errormessages are mailed to the responsible developer
      function error( $err_msg, $file, $line )
      {
         global $logon_user;
         global $SERVER_NAME;

         // Constuct the errormessage
         $message  = "PHP-ErrorMessage: ".$php_errormsg."\n";
         $message .= "(".$SERVER_NAME."/".$logon_user.") LDAP-ERROR 
(".$this->errno()."): \"".$this->errmsg()."\"\n";
         $message .= $err_msg."\nError located in file \"".$file."\"\non line 
(".$line.")";

         // Send the errormessage to the developer
         error_log( $message, 1, $this->developer, $this->headers );

         // Closes the LDAP-Connection if still open
         if ( $this->connection != Null )
         {
            $this->close();
         }

         // Redirects the user if $redirection isset to $redirect
         if ( $this->redirection )
         {
            header( "Location: ".$this->redirect );
            exit;
         }
      }


   } // END Class: ldap_handling


} // END: Redeclare-Protection


////////////////
// local Vars: |
// Tab-Width:3 |
//-------------+

/////////////////////////
// End of File          |
// LDAP_Functions.class |
//----------------------+
?>---------snip------------

> -----Original Message-----
> From: Dickerson, Monty [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 21, 2001 9:21 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] LDAP and M$ Exchange 5.5 :: It's Not Happening.
>
>
> John, et.al.,
>
> It appears that to do management of recipients on Exchange Server
> will require using Microsoft COM and Microsoft ADSI; not just LDAP.
>
> Micro$oft embraced and extended LDAP, so that LDAP is a 2nd class
> protocol that can't do everything.  You have to do things the M$
> way on M$ products using M$ protocols.
>
> Freedom to "innovate."
>
> :(
>
> That's real interoperable, eh!
>
>
> -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
>
> FROM: http://msdn.microsoft.com/library/psdk/adsi/ds2exchgd_9h84.htm
>
> Creating a Custom Recipient
>
>       Dim strDisplayname As String
>       Dim strAlias As String
>       Dim strTelephone As String
>       Dim objCont As IADsContainer
>       Dim objNewCR As IADs
>
>       strDisplayname = "James Smith"
>       strAlias = "jsmith"
>       strTelephone = "867-5309"
>
>       Set objCont =
> GetObject("LDAP://Server/cn=Recipients,ou=Site,o=Org";)
>       Set objNewCR = objCont.Create("Remote-Address", CStr("cn=" &
> stralias))
>       objNewCR.Put "cn", CStr(strdisplayname)
>       objNewCR.Put "uid", CStr(stralias)
>       objNewCR.Put "telephoneNumber", CStr(strtelephone)
>       objNewCR.Put "Target-Address", "SMTP:[EMAIL PROTECTED]"
>       objNewCR.SetInfo
>
>  Note: This example is specific to Exchange Server version 5.5 and
> earlier, and is not upwardly compatible with Exchange 6.0. Management
> and access of Exchange 6.0 Servers should be made through the
> CDOEXM interfaces instead.
>
> -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
>
>
> -----Original Message-----
> Sent: Monday, May 21, 2001 12:26 PM
> To: [EMAIL PROTECTED]
> Cc: 'JayAchTee'; '[EMAIL PROTECTED]'
> Subject: LDAP and M$ Exchange 5.5
>
> Thanks for this tip!  I ran some queries on
> the Microsoft Support Knowledge Base for
> Exchange 5.5, but found NO information or
> examples of how to use LDAP with Exchange to
> do what you say.
>
> Would you point me to a URL, or what keywords
> to search on, or towards some resources which
> provide more information - regarding this?
> i.e. how to use LDAP to manage recipients on
> the Exchange server..
>
> sinc,
> md
>
> > -----Original Message-----
> > From: JayAchTee [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 21, 2001 7:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Exchange
> >
> >
> > If you are running Exchange Server 5.5 SP 3+, then you can
> use LDAP to
> > manage recipients on the Exchange server.  The Microsoft
> > knowledge base has
> > several examples of how to use LDAP with Exchange.
> >
> > Regards.
> >
> > ""oifik"" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I would like to know if with php we can manage exchange
> > server (create
> > > account...) by using the imap librairies and if yes
> > > how we can doing it ?
> > > I can connect to my server (pop or imap), i can check mail
> > but it's all.
> > > Tahnks and sor for my english.
>
>
> --
> 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]
>





Not that this message is helpful but one of the few things I miss from
ASP is the session object. PHP's session handling leaves quite a bit to
be desired. 

Get in the docs and look up session functions. The examples are good but
just remember one thing. session_start(); needs to go before any code
other session code on every page you want to reference session
variables.

andrew

-----Original Message-----
From: Khai Mun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 21:41
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Problems coding in PHP


Hello,

  I am a ASP, VB developer, and new to PHP world,  in ASP they is an
object
name Application  and Session use to store variable.  i wondering in PHP
is
they any object like that.  How do i store variable, that can access
multiple pages





--------------------------------------------------------------
Any suggestions would be appreciated.
Thank You

Khai Mun, Ng



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

Where can I download crypt for windows. I didn't find it anywhere.

Thanks

Dalyyla





There are problems with the crypt extension, I do not think that it is
available for the current version PHP4.05
Alain

On Wed, May 23, 2001 at 01:29:43PM +0200, Dalyyla wrote:
> Hi,
> 
> Where can I download crypt for windows. I didn't find it anywhere.
> 
> Thanks
> 
> Dalyyla
> 
> 
> -- 
> 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,

>Two problems with stored procedures, no return value and no output
>parameters. You'll need to reformat all your procedures to have a SELECT
>statement return those values.
>
>I've been told that the 4.0.6 (as of yet unreleased) version has better
>support for stored procedures. You might want to grab it from CVS and
>compile before you go and modify a bunch of stuff on the SQL server.

I submitted some time ago a patch to enable OUTPUT parameters and return
values under MSSQL, using three new API calls à-la OCI8 (init statement, bind 
parameters, execute) .
It doesn't seem to be included in the latest CVS yet. 

It has been working fine for us for the last 4 months, so if someone out there needs 
it badly...

Greetings

Paco






Hi Paco

You should submit them again for inclusion - these would be really useful
for lot's of people.  Myabe they just got missed.  The maintainer for MSSQL
is Frank Kromann.

Cheers
Peter




"Paco Ortiz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> >Two problems with stored procedures, no return value and no output
> >parameters. You'll need to reformat all your procedures to have a SELECT
> >statement return those values.
> >
> >I've been told that the 4.0.6 (as of yet unreleased) version has better
> >support for stored procedures. You might want to grab it from CVS and
> >compile before you go and modify a bunch of stuff on the SQL server.
>
> I submitted some time ago a patch to enable OUTPUT parameters and return
> values under MSSQL, using three new API calls à-la OCI8 (init statement,
bind parameters, execute) .
> It doesn't seem to be included in the latest CVS yet.
>
> It has been working fine for us for the last 4 months, so if someone out
there needs it badly...
>
> Greetings
>
> Paco
>
>
>
> --
> 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 Paco-

I would be very interested in using these patches.  Do you have them on the net
somewhere?

-sap


At 02:04 PM 5/23/2001 +0200, Paco Ortiz wrote:
>I submitted some time ago a patch to enable OUTPUT parameters and return
>values under MSSQL, using three new API calls à-la OCI8 (init statement, 
>bind parameters, execute) .
>It doesn't seem to be included in the latest CVS yet.
>
>It has been working fine for us for the last 4 months, so if someone out 
>there needs it badly...
>
>Greetings
>
>Paco
>
>
>
>--
>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,

>You should submit them again for inclusion - these would be really useful
>for lot's of people.  Myabe they just got missed.  The maintainer for MSSQL
>is Frank Kromann.

I used to be in touch with Frank Kromann, and he told me this would be included
in 4.0.5. Anyway, he also said he would be quite busy these days, so perhaps he
had no time to include it.

All I have now is:

- two diff files patching php_mssql.c (v1.37) and php_mssql.h (v1.9). Sorry, I have no 
time right
now to prepare them with the last CVS files. I just add 3 new prototypes, some PHP 
constants
(SQLINT4, SQLVARCHAR and so...).
- A compiled php_mssql.dll FOR PHP 4.0.3pl1. If you want something newer, apply the 
patches and
compile...

I will wait a little longer to get a reply from Frank Kromman. Meanwhile, I'll send 
the patches to those
who want them via e-mail.

Greetings,

Paco


>Cheers
>Peter
>
>
>
>
>"Paco Ortiz" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi,
>>
>> >Two problems with stored procedures, no return value and no output
>> >parameters. You'll need to reformat all your procedures to have a SELECT
>> >statement return those values.
>> >
>> >I've been told that the 4.0.6 (as of yet unreleased) version has better
>> >support for stored procedures. You might want to grab it from CVS and
>> >compile before you go and modify a bunch of stuff on the SQL server.
>>
>> I submitted some time ago a patch to enable OUTPUT parameters and return
>> values under MSSQL, using three new API calls à-la OCI8 (init statement,
>bind parameters, execute) .
>> It doesn't seem to be included in the latest CVS yet.
>>
>> It has been working fine for us for the last 4 months, so if someone out
>there needs it badly...
>>
>> Greetings
>>
>> Paco
>>
>>
>>
>> --
>> 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]
>>
>
>
>
>-- 
>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]
>
>

___________________________________
Francisco Javier Ortiz Torre
ComuNET,S.A.
mailto:[EMAIL PROTECTED]

ComuNET, S.A
Gral. Concha 39,6º
48012 Bilbao España
Tel: +34 944 700 101 
Fax: +34 944 700 185 
http://www.comunet.es
___________________________________






Hi Brian,

... why don't you change the fieldtype in the mssql-db ???

I think that would be the easiest way.

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: Brian Little [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 9:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Need Help!!
>
>
> I want to try to fix the character truncation problem when
> using an mssql
> database, but I can't seem to figure out how to compile PHP
> under VC 6.  I
> have searched all over the site for some insight into what to
> do, but I am
> still having problems creating/finding TSRM.mak.  Any and all
> help would be
> apreciated.
>
> Brian
>
> P.S.  The problem I refer to is that in the php_mssql.dll
> extension char and
> varchar are treated as chars, this limits the length of the
> string to 256
> characters.  But, the problem is that and nvarchar in MS SQL
> can be up to
> 4000 characters!  So, I want to try to fix the problem in the
> dll, but it
> requires the php dll and so on.
>
>
>
> --
> 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]
>





Stopping and starting is supposed to be faster.
You may want to read:
http://phpbeginner.com/columns/jason/echo

However, I tend to echo anyway because the code is much easier on the eyes.
;)

As far as print vs echo, I have no idea.  My guess would be that echo is
faster, but I have nothing to back that up. :)

> -----Original Message-----
> From: Jerry Nelson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Speed
> 
> 
> I am fairly new to PHP and am right now writing my first complicated 
> script.   There is a lot of HTML in the page and I was 
> wondering which 
> method is faster.  To always be inside the <?php ?> tags or 
> to stop and 
> start.
> Here is a quick example (not necessarily a good one)
> <?php
>      $sql2 = "select ABBREV from STATES";
>      $result2 = OCIParse($conn,$sql2);
>      OCIExecute($result2) or die("It's not possible to query");
> ?>
>      <select name=STATE >
> <?php
>      while (OCIfetch($result2,1)) {
> ?>
>          <option><?php echo OCIresult($result2,1)?>
> <?php } ?>
> </SELECT>
> 
> OR
> 
> <?php
>      $sql2 = "select ABBREV from STATES";
>      $result2 = OCIParse($conn,$sql2);
>      OCIExecute($result2) or die("It's not possible to query");
>      echo "<select name=STATE >";
>      while (OCIfetch($result2,1)) {
>          echo "<option>";
>          echo OCIresult($result2,1)
>      }
>      echo "</SELECT>";
> ?>
> 
> Also which is faster print or echo.
> Thanks
> 
> *---------*-----------*----------*---------*---------*--------
> -*--------*
> Jerry Nelson
> Systems Analyst
> Datanamics, Inc.
> 973-C Russell Ave
> Gaithersburg, MD 20879
> TEL: 301-948-3515
> 
> 
> -- 
> 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]
> 




SUCCESS!!!!
(man do I feel STOOPID!!)
A duh .... my cursor was at the end of the array (THIS WHOLE TIME!!)
The reset was needed trick
Thanks M@

Matt Williams wrote:

> Hi Michael
> 
> Just tried this
> ---------------------------------
> <form name="form1" method="get" action="<?= $PHP_SELF; ?>">
>   <select name="list[]" size="3" multiple>
>     <option>1</option>
>     <option>2</option>
>     <option>3</option>
>   </select>
>   <input type="submit" name="Submit" value="Submit">
> </form>
> <?
> reset ($list);
> while (list ($key, $val) = each ($list)) {
>     echo "$key => $val<br>";
> }     
> ?>
> ------------------------------------
> And it prints
> 
> 0 => 1
> 1 => 2
> 2 => 3
> 
> OK on to the few HTML probs I've found
> 
> They are tabnle related really.
> no opening table tag
> closing table tag comes before closing row tag and closing select
> no <td> or </td>
> 
> maybe it would be easier to break out of php into html to set up your table
> and maybe use <td align="center"> instead of all the <center> tags
> 
> HTH
> 
> M@ 


-- 

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









Have you got any idea what to do when you want to measure the time but not
in the loop?

Case: you want to limit the time of reading from an open socket (fread), the
other side doesn't answer, you wait and wait...

Piotr Plusa

----- Wiadomosc oryginalna -----
Od: "Brendan" <[EMAIL PROTECTED]>
Do: <[EMAIL PROTECTED]>
Wyslano: 23 maja 2001 01:54
Temat: [PHP-WIN] RE:escape loop on timeout


>
>
> Zak Greant wrote:
>
> > Johan Lundqvist wrote:
> > > This is a way of doing it:
> > >
> > > $s = time() + 10;
> > > for ($i = time(); $i <= $s; $i++) {
> > >     print $i;
> > > }
> > >
> > > Will run for about ten seconds...
> >
> >     Did you leave a bit of code out?
> >     In most cases, this will run for only a few milliseconds. :)
> >
> >     Try something like this instead:
> >
> >     $timeout = 1;            // Timeout in seconds
> >     $start_time = time();    // Get the current time
> >
> >     for ($x=0; $x < 1000000000; ++$x) {
> >
> >         /*
> >         // Check if we have gone over the time limit
> >         // Only check every 1000 loops - this keeps
> >         // us from chewing run time by checking the time
> >         // all the time :)
> >         */
> >         if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout)
> >             break;
> >
> >         echo ($x, '<br>');
> >     }
> >
> >     --zak
> >
>
> ----------------
>
> Thanks guys
>
> sorry about the delay .. I am in Australia..
> checking the time each loop would only work if the loops complete
correctly
> .. if the process locks mid loop php wont reach the criterion break
because
> it deals with each command linearly. ie
>
> for (x=0;x!="array full";x++)
>  dothisfunction(x);
>     if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout)
>             break;
> etc
>
> if dothisfunction() locks up wont the entire script freeze?
>
> maybe I am wrong..
>
> what I am after is something like alert() in Perl or the 'on error resume
> next' in ASP which runs externally to the loop and breaks to the next
> instance if it is taking too long...
> any ideas?
> cheers!
>
>
>
>
>
>
>
>
> --
> 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]
>
>





>Have you got any idea what to do when you want to measure the 
>time but not in the loop?
>
>Case: you want to limit the time of reading from an open 
>socket (fread), the other side doesn't answer, you wait and wait...

In C/C++ one can set a network timeout counter before one does
a network call (at least under unix:). If there is no answer
within the count down time a function assigned to the time out
signal will be invoked.

Maybe there are support for this in php, or if not, maybe its
an idea to implement something like that?




Hi.

I am pretty new to running web servers but I have figured it out so far. I was able to 
get the Apache server up and running. But, I keep getting this error:

Syntax error on line 980 of c:/program files/apache group/apache/conf/httpd.conf
:
Cannot load c:/php/sapi/php4apache.dll into server: (1157) One of the library files 
needed to run this application cannot be found:



I really dont know whats wrong. It was working fine until i tried to install the PHP4 
files. I did exactly what the installation guide said and added this to the 
httpd.conf:

# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

Now with the PHP installer do I still need to do step 2? 

2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) 
directory, overwritte any older file!

I hope you guys can help me. I really like PHP and I was planning on using it on my 
server! Thanks a bunch


==
_________________
Andrew "Sp3aK" Scott
Contact- ICQ: 101893540 AOL: sk8terpro

_____________________________________________________________
Sign up for FREE email from ADAMTECK . ( C O M ) at http://www.adamteck.com




If you used the installer, then you haven't got the Apache module - only the 
cgi version, so don't do the 
> # for the apache module
stuff, just do the
#for the cgi binary 
stuff, and everything should be ok.

Cheers
-- 
Phil Driscoll




My guess is that you need to place the dll in the PHP\extensions folder of
your installation and add the "extension=php_mcrypt.dll" line to the php.ini
file.  Give it a try!

Regards,


John
""ryan.barnett1"" <[EMAIL PROTECTED]> wrote in message
9c4ou4$99a$[EMAIL PROTECTED]">news:9c4ou4$99a$[EMAIL PROTECTED]...
> Does anyone know how to install the mcrypt libraries for PHP in windows?
>
> --------------------------------
> I'm running: Apache 1.3.12
> PHP 4.0.2
> Windows 98
> --------------------------------
>
> I've downloaded libmcrypt-2.4.5b-win32.zip
> (I think that this contains everything I need.)
>
> I just need to know what to do next.
>
> I couldn't find a "friendly" PHP module install guide anywhere and the
> README file included with the mcrypt zip doesn't help a great deal.
>
> Can anyone provide a step by step guide to installing mcrypt in windows?
>
> Thanks in advance for all your help,
>
> Ryan.
> www.more4money.com
>
>
>
> --
> 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]
>






At 12:01 23.05.2001 -0400, JayAchTee wrote:
>My guess is that you need to place the dll in the PHP\extensions folder of
>your installation and add the "extension=php_mcrypt.dll" line to the php.ini
>file.  Give it a try!

something like a php_mcrypt.dll does currently not exist.

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de





I am both a developer and a PC Mag subscriber (charter).  IMO, PHP allows me
to QUICKLY develop web applications that are both RELIABLE and FAST.  I use
NT/2000 w/ IIS ISAPI and CGI and Linux/Apache 1.3/mod_php servers and
develop portable code so I can move the applications from server to server
as needed.  I actually perfer to develop on Linux/Apache and then move the
application to the home server.  I put timing routines in my header/footer
script and do the math for page generation time like CF debugging switches
and I like the numbers I see even generating complex pages from InterBase
databases.  I think I'll add DB call statistics as well.  In short, I LIKE
IT!

What I do find interesting is that the GURUs at PC Mag didn't get the ISAPI
version of PHP working under IIS.  I had little trouble with this one the
PHP folder was added to my system PATH.  I setup both .php(CGI) and
.phpx(ISAPI) script definitions because of the buzz about ISAPI being so
unstable.  I can do a rename of all .phpx to .php if things start getting
weird and just lose the persistent database connections.

The statement about ADO and JDBC abstraction doesn't bother me as every
layer needs added power to penetrate.  It's the difference between luxary
cars and sports cars.  I tend to go sporty.  Of course, I do HATE the way I
have to deal with BLOB in PHP (Perl is better) but I developed a set of
generalized routine and a programming approach which takes the burden off
me.

Regardless of what Larry says PHP and Perl will continue to be around for a
long time.  The price is right, the power is right and the flexability is
right.

Regards,


John Thompson
""Joe Brown"" <[EMAIL PROTECTED]> wrote in message
9d9ntr$vdf$[EMAIL PROTECTED]">news:9d9ntr$vdf$[EMAIL PROTECTED]...
> LOL...
>
> I think his article is fine.  PC-MAG caters to mostly windows users.  And
> honestly, there are issues in php that haven't matured to 5 * rating.  I
> think the developers are making leaps and bounds toward a solid windows
> product.  There are many compilicatons that will cause the average PC-MAG
> many headaches.
>
> PHP is the best language on the market, IMO, but I'm a developer, not a
> PC-MAG subscriber.
>
> PC-MAG lost my patronage a long time ago because of technically weak
> articles, such as this, perhaps they will loose you partrons as well.
>
> -Joe
>
> ""Dickerson, Monty"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Today boss comes in and says, "Seen pcmag's story about php? says it is
> > bad."  Argh:
> > http://www.zdnet.com/products/stories/reviews/0,4161,2711724,00.html
> >
> > What's the scoop on Larry Seltzer anyway.  You here, Larry?  His review
is
> > rather 1-sided, negative.  Not good for free software's encroachment
into
> > the corporate zone.  Of course the points he raises are all true and
> widely
> > known.  He mentions only one strength.
> >
> > I don't think Larry has actually been in the trenches doing real work on
> the
> > web.  Either that or he is/was paid to do it with Micro$oft ASP or
> Allaire's
> > Cold Fusion.  Maybe he is on the payroll of one of these?  It's a
> > possibility that should be investigated.
> >
> > Thanks for nothing, Larry Seltzer.
> >
> > Cheers,
> > MD
> >
> >
> >
> > --
> > 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]
> >
>
>
>
> --
> 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]
>






Midnight Commander on Linux is one of the best editors our there.  It ranks
right up there with the VERY OLD Microsft Editor which I still use
regularly!  Anybody else remember "me"?

Regards,


John Thompson

"Johan Lundqvist" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Well, well...
> PC-Mag, as most ZD-Net and IDG mag's, are in my opinion too dependant on
> Micro$oft advertising to make any "real" reviews on anything.
> And, as Joe Brown said, their target readers are windows-users. The
> "normal" windows user can't possibly read and/or understand ASCII code
> in an editor, it has to bee in a fancy "IDE tool" with lots of blips and
> gizmos.
>
> Well, he's right in one statement; PHP, MySQL and Apache are most stable
> on the Un*x (read Linux) platform. They were developed by Un*x people,
> for Un*x platforms. Never the less, the windows versions of these
> products do a terrific job.
>
> The problem is what you define as "production environment" and "stable
> for production". In the history of Un*x the standards are set very high.
> All those 99.9999....% statements require some really goood software.
> These conditions can, in my opinion, never be met in any windows
> environment. The Micro$oft platforms just isn't that stable themself.
> Still PHP, MySQL and Apache work very fine on the windows platform. In
> comparission to other (read Micro$oft) products they DO perform well and
> are VERY stable.
>
> Another problem is that people tend to think it's a pice of cake to set
> up a webserver. If you take any standard, out of the box solution, yes.
> But, to set up a webserver with some functionality, databases and
> intelligence needs some knowledge.
>
> Some really good ideas in how to seperate homepage development from
> server management and development can be found in Sterling Hughes "Top
> 21 PHP progamming mistakes - Part I: Seven Textbook Mistakes" #16. "Not
> separating client side from server side"
> (http://www.zend.com/zend/art/mistake.php). Poeple tend to look at
> client side and server side development as the same thing, and that's
> not true. Though Micro$oft often mislead people to that idea...
>
> /Johan
>
> Hmmm, that tended to be quite misspelled and long, sorry bout that...
>
> --
> 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]
>






is it really case sensitive?  i don't think i've noticed!  :-)

Regards,


John Thompson


""Greg Brunet"" <[EMAIL PROTECTED]> wrote in message
9dcg4m$v7e$[EMAIL PROTECTED]">news:9dcg4m$v7e$[EMAIL PROTECTED]...
> Well, as much as I like PHP, the article is accurate as far as running it
on
> Windows is concerned.  It's not really a problem to get it running as an
> ISAPI module (though the Windows install program wisely sets it up in CGI
> mode only).  I've continually tried to get the ISAPI version to handle
some
> moderately sophisticated & popular scripts (such as phpMyAdmin), and it
has
> consistently failed (with "Access Violation" errors - at least as of ver
> 4.04 - I haven't tested 4.05 in ISAPI mode yet).  It would be hard to
> consider at least the ISAPI module ready for prime time until these issues
> are resolved.
>
> As far as his database abstraction layer complaint - I would agree that
> there are a number of choices out there, and PHP's choice of using the
> native or abstraction layers should be considered a plus.
>
> Since I use HomeSite for PHP, CFM, & ASP coding, I'd also have to ignore
his
> complaint about the Zend development environment.  I've never used the
debug
> facilities in ASP (Visual Studio) anyway, thought when I have used them,
> they've been nice.
>
> Finally, one language issue that is a real pet peeve of mine is case
> sensitive variable definitions.  This is not a problem in either CFM or
ASP.
> While it can be somewhat worked around by setting the PHP error level
> reporting to flag uninitialized variables, it is a deficiency that is long
> overdue to be corrected.
>
> -- Greg Brunet
>
>
> "Robert Klinkenberg" <[EMAIL PROTECTED]> wrote in message
> 41995094E2FED31197F6005004B2739F02655E@RED">news:41995094E2FED31197F6005004B2739F02655E@RED...
> > Nice to know that some well known pc magazine wants to test PHP.
> > Not so nice to know that people testing software for a major computer
> > magazine don't know how to read the manual.
> >
> > Installing as an ISAPI module is not THAT difficult (Or am I a genius?).
> At
> > least I don't know anyone having problems with that. And besides the
> > majority of people on the PHPWIN mailing list seem to be capable of
> > performing the steps in the readme file.
>
> <clip>
>
>
>
> --
> 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]
>






> Midnight Commander on Linux is one of the best editors our 
> there.  It ranks right up there with the VERY OLD Microsft 
> Editor which I still use regularly!  Anybody else remember "me"?

"me"?  Multi-Edit?
If so, that editor rules!  I just wish their Windows version didn't
suck.  I still use the DOS version.

Chris




Okay, lets take a step back from the volitile issue and consider the facts.

Given the "average" variable name is, let's say, 8 characters.  Then one
variable name with case sensitivity allows you to use the SAME typing
sequence for a total of  256 DIFFERENT variables.  I think that surely has
some merit, don't you?  You could develop a rather sofisticated web
application with 256 variable names.  Now, if you consider all combinations
of the standard a-Z letters the capacity is staggering!  Imagine using some
53,459,728,531,456 different variables names.  It's impressive, don't you
think?


I surely have too much time on my hands.  I think I'll get back to writing
some code!


Regards,


John Thompson
"Tim Uckun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> >
> >Finally, one language issue that is a real pet peeve of mine is case
> >sensitive variable definitions.  This is not a problem in either CFM or
ASP.
> >While it can be somewhat worked around by setting the PHP error level
> >reporting to flag uninitialized variables, it is a deficiency that is
long
> >overdue to be corrected.
>
>  From what I hear it's about to get worse. Instead of making variable
names
> case insensitive they are going to make the function names case sensitive
> too.  Seems like they want to make the language more C like.
> As for other stuff my pet peeve is the lack of consistency in the
> functions.  Look at all the string functions. Most of them work on a
string
> but some one the string first some want it last some want it somewhere in
> the middle. It's even worse with database functions.  Because each
function
> is written by somebody else it uses a different calling convention or
> returns different things. PHP definately lacks the cohesiveness and
> intuitiveness of other scripting languages. I don't want to rag on it too
> much because obviously the good points of it outweigh the bad points for
me
> but especially in large projects that require multiple programmers I
really
> wish it was more cohesive. As it is I am never really confident about
using
> any function without first checking the manual. In Perl or python I can
> pretty much guess what a function is going to do 90 percent of the time.
>
>
>
> :wq
> Tim Uckun
> Due Diligence Inc.  http://www.diligence.com/    Americas Background
> Investigation Expert.
> If your company isn't doing background checks, maybe you haven't
considered
> the risks of a bad hire.
>
>
> --
> 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]
>






:-) ... and then there's:

    sTrPoS
    StRpOs
    STrpOS
    stRPos
    sTRpOS
    ...
    sTRPOS
    STRPOs

It's really quite fun!  I will continue to use PHP regardless of the outcome
of this issue!

Regards,


John Thompson
""Brinkman, Theodore"" <[EMAIL PROTECTED]> wrote in
message FE8510398BFE854F9653B5C32DBB652FD4F397@oh_daytn_xch01">news:FE8510398BFE854F9653B5C32DBB652FD4F397@oh_daytn_xch01...
> <not a flame>
>
> Hey!  Some of us out here LIKE case-sensitive languages.  Is there really
> any reason why you need to use STRPOS() in one place, StrPos() in another,
> Strpos() in another, and strpos() in another?  If you use any sort of
naming
> convention, the case-sensitivity actually HELPS people understand your
code.
>
> Get used to it, even html is going to end up being case sensitive when
xhtml
> becomes the day-to-day standard.
>
> </not a flame>
>
> - Theo
>
> -----Original Message-----
> From: Greg Brunet [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 1:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
>
>
> Tim:
>
> AAARRRGGH! They got it half-right with case insensitive functions and now
> they're going to mess up the part that's done right!?!  It is quite
annoying
> that they aren't consistent, but I was thankful that at least the
functions
> were working "right".
>
> -- Greg
>
> "Tim Uckun" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> >  From what I hear it's about to get worse. Instead of making variable
> names
> > case insensitive they are going to make the function names case
sensitive
> > too.  Seems like they want to make the language more C like.
> > As for other stuff my pet peeve is the lack of consistency in the
> > functions.
>
> <clip>
>
>
>
> --
> 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 just did Tools|Options and turned on my "Spell check before sending"
option!

Regards,


John Thompson

"Bradley Miller" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 10:04 AM 5/10/01 -0500, Greg Brunet wrote:
> >Actually, one thing that I REALLY like about the newer VB development
> >environment is that it will automatically correct/adjust the case of your
> >variables/functions to match their definition.  This allows me to define
> >them according to my naming convention, but not have to worry about
keeping
> >them straight in the code - the tool handles it for me & that's as it
should
> >be.
>
> Ok -- this too is not a flame, but just an opinion.  I personally don't
> exactly like that much hand holding.  It's like the "auto-correct"
features
> in MS products.  Yea, it's great for productivity and that . . . but what
> reinforces the thought that you boo-boo'ed and didn't have to correct it?
> If I spell receive as "recieve" every time I type something . . . it's
> still not right in my mind . . . otherwise I wouldn't type it.  When you
> don't have the crutch of the computer handy -- are you going to look like
a
> complete moron with all the "learned" typos that MS corrected for you?
> Tools should not instill bad practices and mask them for you.  They are
> tools -- just that . . . they should enable you to work easier, but they
> shouldn't fix your work for you -- at least not automatically to where the
> conditioned response is "typos are good as long as the computer figures it
> out".
>
> -- Bradley Miller
>
> --
> 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 don't know about you guys and gals but I use the SHIFT key strokes as
"think" time.  All that time shifting and unshifting should be put to good
use, so I do my part.  Tab and backspace are other key strokes that can be
used to gain some think time.  The tab key will insert some number of
"spaces" and you can use the backspace key to eat them up sometimes getting
as much as 5 or 6 seconds to actually think about what you are doing.  I
surely hate AUTOINDENT!

Smiles,


John Thompson



""Greg Brunet"" <[EMAIL PROTECTED]> wrote in message
9demra$9v$[EMAIL PROTECTED]">news:9demra$9v$[EMAIL PROTECTED]...
> I suppose you could look at it that way, but actually, since VB isn't
> case-sensitive, it wouldn't matter how I typed it as long as I spell it
> right.  So it's not like a spell checker correcting my spelling.  Rather,
> it's like a word processor applying the paragraph style for me instead of
me
> having to set my indents & tab stops manually each time.
>
> Actually it does turn out to be both a productivity aid & verification
tool.
> It's faster because I don't have to shift case as I type & it verifies,
> because if I see that it doesn't apply the proper case, I get immediate
> feedback that I've mistyped the variable/function name.  It would catch it
> anyway when it compiles the code (just as C would catch an undefined
> variable), but I don't have to wait till the compile step to correct it -
I
> can do it right there!
>
> There are a number of things that MS does wrong, but this part at least
> they've got very right.
>
> -- Greg
>
> "Bradley Miller" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Ok -- this too is not a flame, but just an opinion.  I personally don't
> > exactly like that much hand holding.  It's like the "auto-correct"
> features
> > in MS products.  Yea, it's great for productivity and that . . . but
what
> > reinforces the thought that you boo-boo'ed and didn't have to correct
it?
> > If I spell receive as "recieve" every time I type something . . . it's
> > still not right in my mind . . . otherwise I wouldn't type it.  When you
> > don't have the crutch of the computer handy -- are you going to look
like
> a
> > complete moron with all the "learned" typos that MS corrected for you?
> > Tools should not instill bad practices and mask them for you.  They are
> > tools -- just that . . . they should enable you to work easier, but they
> > shouldn't fix your work for you -- at least not automatically to where
the
> > conditioned response is "typos are good as long as the computer figures
it
> > out".
> >
> > -- Bradley Miller
>
>
>
>
> --
> 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]
>






Use PHP from the command line to get the output of the script into a HTML
file and take a look at it with notepad and the browser.  Try this:
"c:\php\php.exe <test.php >test.html".  You can omit the path to php.exe if
the folder is in the system PATH variable.

Regards,


John Thompson


""ECHJR"" <[EMAIL PROTECTED]> wrote in message
9dbot0$mbn$[EMAIL PROTECTED]">news:9dbot0$mbn$[EMAIL PROTECTED]...
> Arghh.. I appreciate help from anyone on this one.  I have a new install
of
> PHP4.5 on my IIS 5 machine with Windows 2K.  The install went fine..
When
> I go into a command prompt and type c:\php\php.exe -i
> I get the HTML junk, which is good.   But... When I try and send a simple
> test page with a PHP version information tag in it, I get the good old
"CGI
> The specified CGI application misbehaved by not returning a complete set
of
> HTTP headers. The headers it did return are: <Blank Area>
>
> Now I have seen this error before.  I have verified permissions on the
> relevant files.. Heck, I even set the web site to have administrator
> privileges just to test the possibility of some erroneous permission
error..
> Same problem.  The "Check that file exists" is checked in the IIS setting,
> so that is cool.
> In my php.ini file, the only item I really changed from default was
> "extension_dir =c:\php"
>
> Is there something else in the PHP.ini file that I am missing???
Remember..
> This page I am trying to test is simply:
> <body>
> Hello
> <?php
> phpinfo();
> ?>
> </body>
>
> Please Help :)
>
> Ed
>
>
>
>
> --
> 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]
>






Can I run OCIPLogon in CGI mode?  I can't seem to keep a persistent logon to
Oracle to save my life.  I'm at the point where I am about to have to put
everything in Access and be done with it.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est





On Wed, May 23, 2001 at 01:32:01PM -0400, Asendorf, John wrote:
> Can I run OCIPLogon in CGI mode?  I can't seem to keep a persistent logon to

    no. php needs to be a server-module to be able to support
    persistent connections.

    tc




Alrighty then....  anyone out there running both cgi and ISAPI on IIS 4 want
to give me a hand with the dual set up?

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 1:37 PM
> To: Asendorf, John
> Cc: Php-Windows (E-mail)
> Subject: Re: [PHP-WIN] Does OCILogon need ISAPI to stay persistent?
> 
> 
> On Wed, May 23, 2001 at 01:32:01PM -0400, Asendorf, John wrote:
> > Can I run OCIPLogon in CGI mode?  I can't seem to keep a 
> persistent logon to
> 
>     no. php needs to be a server-module to be able to support
>     persistent connections.
> 
>     tc
> 
> -- 
> 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,

>Does OCILogon need ISAPI to stay persistent?

unfortunately, yes. So CGI+Oracle8 is painfully slow.
Unlike other cases, however ISAPI+Oracle8 works misteriously stable for us here...
so it is a good deal so far (I must say the server is not under a heavy traffic yet)

Greetings,
Paco

5/23/01 7:32:01 PM, "Asendorf, John" <[EMAIL PROTECTED]> wrote:

>Can I run OCIPLogon in CGI mode?  I can't seem to keep a persistent logon to
>Oracle to save my life.  I'm at the point where I am about to have to put
>everything in Access and be done with it.
>
>---------------------
>John Asendorf - [EMAIL PROTECTED]
>Web Applications Developer
>http://www.lcounty.com - NEW FEATURES ADDED DAILY!
>Licking County, Ohio, USA
>740-349-3631
>Aliquando et insanire iucundum est
>
>
>-- 
>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]
>
>

___________________________________
Francisco Javier Ortiz Torre
ComuNET,S.A.
mailto:[EMAIL PROTECTED]

ComuNET, S.A
Gral. Concha 39,6º
48012 Bilbao España
Tel: +34 944 700 101 
Fax: +34 944 700 185 
http://www.comunet.es
___________________________________






I am getting the following errors on phpnuke user.php running on IIS5.......

Warning: crypt() is not supported in this PHP build in
c:\inetpub\wwwroot\phpnuke\html\user.php on line 393

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\phpnuke\html\user.php:393) in
c:\inetpub\wwwroot\phpnuke\html\user.php on line 381

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\phpnuke\html\user.php:393) in
c:\inetpub\wwwroot\phpnuke\html\user.php on line 403
 any ideas on the problem here? Looks to be  on the server config but I am
at a loss for now. Any help appreciated.






First, thanks to everyone who chimed in with great suggestions on why my app
was moving so slowly...

In case you missed it, I was having problems with page return time while
connecting to Oracle.

Here's the solution.  Every bit of code was just fine (well, fine ENOUGH I
guess :)  ).  What I didn't know, and am about to put into the annotated
manual as soon as this thank you is written, is that OCIPLogon only 'really'
works when PHP is being hit as a module.  What is deceptive is that you can
use OCIPLogon in CGI mode, but it is unable to stay persistent (something
that a little deductive reasoning should have exposed to me, but I'm not as
smart as I'd like to think I am sometimes) if you run PHP as a module....

So, thanks for all the help.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est







Would like to know from experience what are the best practices, and just 
options in general, for managing sessions when using PHP.

Cookies or other????


Scott



Reply via email to