php-windows Digest 16 Dec 2003 06:21:55 -0000 Issue 2043

Topics (messages 22385 through 22389):

Re: embedded PHP in HTML
        22385 by: Svensson, B.A.T. (HKG)

Import Trusted Root Cert
        22386 by: Bryan Thoreson
        22387 by: Bowden, Zeb

Inconsistent php sematics witrh trim() ... or can't trim() handle assignment with same 
variable?
        22388 by: Svensson, B.A.T. (HKG)
        22389 by: Frank M. Kromann

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 ---
Try something like this:

<script language="php" runat="server">
    echo ("hello there");
</script>
 

-----Original Message-----
From: Ahmad Khashan
To: [EMAIL PROTECTED]
Sent: 12/12/2003 2:04 PM
Subject: [PHP-WIN] embedded PHP in HTML

I am trying to get this code to work: 
<html>
<head>
</head>
<body>
<p>trying to call PHP.</p>
<script language="php" runtat=server>
    echo ("hello there");
</script>
</body>
</html>

 

The PHP code is not executed. Any way to get this to work?. BTW, I can
execute PHP files if i use the form....action...submit route.

Many thanks....


---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

--- End Message ---
--- Begin Message ---
Hi,

Does anyone know how to import a trusted root certificate for use with a LDAP TLS bind?

Bryan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bryan Thoreson                                             12/15/2003
Infotech Professional
CLA OIT   University of Minnesota

--- End Message ---
--- Begin Message ---
Yep, path seems to be hardcoded (at least it was in 4.2.3)
You need this dir structure:
C:\OpenLDAP
        |- \sysconf
                |-ldap.conf 
                |-\certs
                        |-certificate.pem

Then ldap.conf needs this line:
TLS_CACERT c:\OpenLDAP\sysconf\certs\certificate.pem

Zeb Bowden
VT.SETI.IAD.MIG:Application Developer
http://vtmig.w2k.vt.edu
[EMAIL PROTECTED]



-----Original Message-----
From: Bryan Thoreson [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 15, 2003 10:24 AM
To: '[EMAIL PROTECTED] '
Subject: [PHP-WIN] Import Trusted Root Cert

Hi,

Does anyone know how to import a trusted root certificate for use with a LDAP TLS bind?

Bryan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bryan Thoreson                                             12/15/2003
Infotech Professional
CLA OIT   University of Minnesota

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

--- End Message ---
--- Begin Message ---
Just ran into this annoying thing today:


Why does this /NOT/ work to remove NL's:

    $AccNr = fgets($fp);
    while ( !feof($fp) ) {

       $AccNr = trim($AccNr);  /// trim() DOES NOT WORK HERE
       $InsertStr = "insert into $UpLoadTable values ('$AccNr')";
       print "<pre>$i: Inserting: $InsertStr </pre>";
       ob_flush();
       mssql_query($InsertStr);

       $AccNr = fgets($fp);
    }

while this works just fine to remove NL's:

    $AccNR = trim( fgets($fp) );  // trim WORKS JUST FINE HERE
    while ( !feof($fp) ) {

       $InsertStr = "insert into $UpLoadTable values ('$AccNr')";
       print "<pre>$i: Inserting: $InsertStr </pre>";
       ob_flush();
       mssql_query($InsertStr);

       $AccNr = trim( fgets($fp) ); // trim WORKS JUST FINE HERE

    }

--- End Message ---
--- Begin Message ---
I can't see a promlem with the trim() function.

Try this:

<?php

$a = " test\n";
echo "***$a***";
$a = trim($a);
echo "***$a***";
?>

output:

*** test
******test***

I have tested with both php4 and php5 from cvs.

- Frank

> Just ran into this annoying thing today:
> 
> 
> Why does this /NOT/ work to remove NL's:
> 
>     $AccNr = fgets($fp);
>     while ( !feof($fp) ) {
> 
>        $AccNr = trim($AccNr);  /// trim() DOES NOT WORK HERE
>        $InsertStr = "insert into $UpLoadTable values ('$AccNr')";
>        print "<pre>$i: Inserting: $InsertStr </pre>";
>        ob_flush();
>        mssql_query($InsertStr);
> 
>        $AccNr = fgets($fp);
>     }
> 
> while this works just fine to remove NL's:
> 
>     $AccNR = trim( fgets($fp) );  // trim WORKS JUST FINE HERE
>     while ( !feof($fp) ) {
> 
>        $InsertStr = "insert into $UpLoadTable values ('$AccNr')";
>        print "<pre>$i: Inserting: $InsertStr </pre>";
>        ob_flush();
>        mssql_query($InsertStr);
> 
>        $AccNr = trim( fgets($fp) ); // trim WORKS JUST FINE HERE
> 
>     }
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---

Reply via email to