php-windows Digest 29 Jan 2003 13:15:10 -0000 Issue 1561

Topics (messages 18158 through 18171):

Re: Mail newbie Question
        18158 by: Cam Dunstan

displaying a numeral
        18159 by: Pat Johnston
        18160 by: Frank M. Kromann
        18163 by: Pat Johnston

windows installation issues
        18161 by: Jason Thibeault
        18164 by: J.Veenhuijsen

Re: How do i load my new activex dll?
        18162 by: Sean Malloy

Re: Is this possible
        18165 by: Bobo Wieland

Unsetting PHP_AUTH_*
        18166 by: DAS6804.red.cam.es
        18171 by: Vladimir Galkov

Warnings!
        18167 by: Anthony Judd
        18168 by: DAS6804.red.cam.es

Re: Looking for something like floor() only to round to a nearest div isor
        18169 by: Svensson, B.A.T. (HKG)

Re: Looking for something like floor() only to roun d to a nearest div
        18170 by: Svensson, B.A.T. (HKG)

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 ---
Yep - check out the mail() function which will do exactly that.  If you are
developing on your own machine which may not be running a mail server,
configure php to use your ISP`s mail server.



----- Original Message -----
From: "Duncan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 7:39 AM
Subject: [PHP-WIN] Mail newbie Question


> Hi All,
>
> Is it possible to create a page where visitors can for example submit
their
> email address and a list of their demands, then the page mails it to a
> support address?
>
> Would I have to use a mail server of any kind to send the emails?
>
> Where could I find an example script that could do this?
>
>
>
> Many thx in adv
>
>

--- End Message ---
--- Begin Message ---
Hi
I have a field in my MySQL database that's a decimal where I have figures of
millions without the decimal point -

i.e - 1500000

Is there a function in PHP to display this figure as a $ amount -

i.e - $1,500,000

I searched PHP manual without finding anything. If there is something in
the manual, can someone point me to it..

Regards, Pat


--- End Message ---
--- Begin Message ---

http://php.net/number_format

is what you are looking for.

- Frank

> Hi
> I have a field in my MySQL database that's a decimal where I have
figures of
> millions without the decimal point -
> 
> i.e - 1500000
> 
> Is there a function in PHP to display this figure as a $ amount -
> 
> i.e - $1,500,000
> 
> I searched PHP manual without finding anything. If there is something
in
> the manual, can someone point me to it..
> 
> Regards, Pat
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



--- End Message ---
--- Begin Message ---
Thanks Frank,

The

$english_format_number = number_format($number);

line works a treat.

Cheers, Pat


"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> http://php.net/number_format
>
> is what you are looking for.
>
> - Frank
>
> > Hi
> > I have a field in my MySQL database that's a decimal where I have
> figures of
> > millions without the decimal point -
> >
> > i.e - 1500000
> >
> > Is there a function in PHP to display this figure as a $ amount -
> >
> > i.e - $1,500,000
> >
> > I searched PHP manual without finding anything. If there is something
> in
> > the manual, can someone point me to it..
> >
> > Regards, Pat
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>


--- End Message ---
--- Begin Message ---
I'm trying to install php 4.3.0 for Windows on a Win2k box with SP3.

Everything installs fine until the end where I get the folowing error:

"Due to a missing OCX control on your system, this installer is unable to
configure your webserver. But, PHP is now installed on your system. You can
manually configure your webserver by following the steps in the install.txt
file located in your PHP installation directory."

What is this missing OCX control? How do I fix it?

thanks,

Jason


--- End Message ---
--- Begin Message ---
Configure your webserver manually!!

Jochem

Jason Thibeault wrote:
I'm trying to install php 4.3.0 for Windows on a Win2k box with SP3.

Everything installs fine until the end where I get the folowing error:

"Due to a missing OCX control on your system, this installer is unable to
configure your webserver. But, PHP is now installed on your system. You can
manually configure your webserver by following the steps in the install.txt
file located in your PHP installation directory."

What is this missing OCX control? How do I fix it?

thanks,

Jason



--- End Message ---
--- Begin Message ---
Why would you use a com object to do an md5 hash?

php has an inbuilt md5() function.


-----Original Message-----
From: Wayne [mailto:[EMAIL PROTECTED]]
Sent: Monday, 27 January 2003 8:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How do i load my new activex dll?


hey ya,

I have made a new dll "prjMD5.dll" in visual basic's, so i can use the same
MD 5 hash for my website, and my chat server passwords.

anyhow.

Now i have my new DLL

How do i load the function in my dll?

My function's Name is "MD5Encrypt"

and only has 1 value: "password"

ie: $hased = md5encrypt($password);

but i dont know how to load the dll..
ne 1 wish to help me with this please?

Thanks
My email address is
w_pearsall[at]yahoo.co.uk



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

--- End Message ---
--- Begin Message ---
You could allways call a javascript when you submit the form. the javascript
could look something like this for calling two frames:

function loadFrames(form,frame1,page1,frame2,page2) {
     var query = "?name=" + form.field1.value + "&email=" +
form.field2.value;
     eval(\"parent.\"+frame1+\".location='\"+page1+query\"'\");
     eval(\"parent.\"+frame2+\".location='\"+page2+query\"'\");
}

Not too sure about the syntax though...


: bobo : www.elstudion.com/bobo : www.elstudion.com :


----- Original Message -----
From: "Wade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 9:52 PM
Subject: [PHP-WIN] Is this possible


> 01282003 1248 CST
>
> Is this even possible.
>
> You create a page with two text fields= Name and Email and a submit
button.
>
> In the
>
> <form action="https://www.whatever.com"; method="post">
>
> can you submit this to Two different locations like
>
> <form action="https://www.whateverA.com";
action="https://www.whateverB.com";
> method="post">
>
>
> Is that even possible?
>
> Wade
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hello to all

I've the variables $PHP_AUTH_USER and $PHP_AUTH_PW set and I want to unset
them because I check if they're set or not in order to show the
authentication dialog box. The unset command appears not to be working with
them (even if I try doing unset($GLOBALS['PHP_AUTH_USER'])...)

Any suggestion? Thanks a lot!

        Danny
Este correo electrónico contiene información privada y confidencial. Si
usted no es el destinatario del mensaje no está autorizado a leerlo,
copiarlo o difundirlo. Si lo ha recibido por error, por favor contacte con
el remitente y destruya su contenido.?Privileged/confidential information
may be contained in this e-mail. Any reading, copying o dissemination of
this communication by persons or entities other than its intended recipient
is prohibited.  If you received this in error, please contact the sender and
delete it.
--- End Message ---
--- Begin Message ---
I've the variables $PHP_AUTH_USER and $PHP_AUTH_PW set and I want to unset
them because I check if they're set or not in order to show the
authentication dialog box. The unset command appears not to be working with
them (even if I try doing unset($GLOBALS['PHP_AUTH_USER'])...)

Any suggestion? Thanks a lot!
--------------------

 Well some time ago I tried to find solution too and lost. The problem, that
the data (PHP_AUTH_USER/$PHP_AUTH_PW) stored in browser cache and browser
send it again and again, even you change value of varibles. So if you'll
find the way to clear browser cache you'll solve the problem.

 However, I use session varibles. It not good in all situations but...



--- End Message ---
--- Begin Message ---
I am getting the following errors: Could Some one please enlighten me as to
what
is wrong. I suspect it is something to do with php ini.

I am running win2k with iis, isapi

Warning: Unknown(C:\Inetpub\wwwroot\resume\product_listing.php): failed to
create stream: No such file or directory in Unknown on line 0

Warning: Unknown(): Failed opening
'C:\Inetpub\wwwroot\resume\product_listing.php' for inclusion
(include_path='.;c:\php4\pear') in Unknown on line 0

thanx



--- End Message ---
--- Begin Message ---
>Warning: Unknown(): Failed opening
>'C:\Inetpub\wwwroot\resume\product_listing.php' for inclusion
>(include_path='.;c:\php4\pear') in Unknown on line 0

¿Do you have PHP installed in C:\PHP4?
Este correo electrónico contiene información privada y confidencial. Si
usted no es el destinatario del mensaje no está autorizado a leerlo,
copiarlo o difundirlo. Si lo ha recibido por error, por favor contacte con
el remitente y destruya su contenido.?Privileged/confidential information
may be contained in this e-mail. Any reading, copying o dissemination of
this communication by persons or entities other than its intended recipient
is prohibited.  If you received this in error, please contact the sender and
delete it.
--- End Message ---
--- Begin Message ---
> Scratch that other one, came up with something quite a bit better for speed
> on large numbers:

This is the fastest way to do it: ((int)x/y) * y
--- End Message ---
--- Begin Message ---
> --- "Asendorf, John" <[EMAIL PROTECTED]> wrote:
> > $floor_val = 6 * ((int) 15/6) // yielded 15 for
> > me... not what I was going
> > for.
> 
> This returned 15 for me, too.

That might be because the expression is interpreted as   6 * [((int)15) /6]

Try : 6 * (int)(15/6)
--- End Message ---

Reply via email to