php-windows Digest 12 Sep 2001 21:08:59 -0000 Issue 751
Topics (messages 9325 through 9333):
is it bug ?
9325 by: sur-php
9327 by: Michel Laine
Re: HELP! Image manipulate over the WEB
9326 by: Daniel Reichenbach
Re: fopen using a share
9328 by: Michel Laine
9329 by: Christoph Steinmann
Warning Undefined Variable on Win - PHP 4.0.6 via Apache
9330 by: Wes
9331 by: Martin Lindhe
Expired PDFLib
9332 by: J Wynia
Where's my mcrypt function??
9333 by: Chris Scott
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]
----------------------------------------------------------------------
Hello php-windows,
for example..
look at this simple script..
====================================
<?
$old=10003.28;
$new=$old-10000;
echo $new;
?>
====================================
it returns
3.2800000000007
it must return
3.28
does anyone know what is problem..
i know that number_format function can ne used here...
but i want to know that is it bug in php
i 'm using
apache 1.3.20 ,
php 4.0.6 as module (php4apache.dll )
under windows 98 SE
anyone ?
--
Best regards,
sur-php mailto:[EMAIL PROTECTED]
You have a setting in PHP.ini that set valid digits to 14.
You may want to change that setting? Not recommended, but fully
possible.
Sur-Php wrote:
> Hello php-windows,
>
> for example..
> look at this simple script..
> ====================================
> <?
> $old=10003.28;
> $new=$old-10000;
> echo $new;
>
> ?>
> ====================================
> it returns
> 3.2800000000007
> it must return
> 3.28
> does anyone know what is problem..
> i know that number_format function can ne used here...
> but i want to know that is it bug in php
>
> i 'm using
> apache 1.3.20 ,
> php 4.0.6 as module (php4apache.dll )
> under windows 98 SE
>
> anyone ?
>
> --
> Best regards,
> sur-php mailto:[EMAIL PROTECTED]
--
Michel Laine
Engineer / Network Administrator
SYSTEM TECHNOLOGY SWEDEN AB
Phone:(+46)-8-982255
Fax:(+46)-8-982060
Snail mail: Vretenvagen 2, 171 54 SOLNA, SWEDEN
E-mail: [EMAIL PROTECTED]
WWW: http://www.systemtech.se
> Thanks.
> But it seems that the imagemagic is more focus on the commandline
> not the WEB.
Yes, it is. But you can call it thru PHP's passthru command. This
way is better if you have large numbers of images you want to process.
Daniel
I beleive that this functionality is yet to be implemented (in v 4.0.7?)
I have seen some comments on this subject in this group a while ago.
I use 4.0.4pl1 and *do* know that it is *not* supported in this
version.
Hans Breitenfellner wrote:
> is there a way to use fopen() on a share?
> $fp = fopen( '\\10.1.0.1\c$\folder') results a error.
> If i try the same from the explorer, it works well.
>
> Hans
--
Michel Laine
Engineer / Network Administrator
SYSTEM TECHNOLOGY SWEDEN AB
Phone:(+46)-8-982255
Fax:(+46)-8-982060
Snail mail: Vretenvagen 2, 171 54 SOLNA, SWEDEN
E-mail: [EMAIL PROTECTED]
WWW: http://www.systemtech.se
It works in 4.07 builds later than 2001-07-03. Before UNC paths have not
been working on win32.
Now UNC support seems to be ok.
Christoph
> I beleive that this functionality is yet to be implemented (in v 4.0.7?)
>
> I have seen some comments on this subject in this group a while ago.
> I use 4.0.4pl1 and *do* know that it is *not* supported in this
> version.
>
> Hans Breitenfellner wrote:
>
>> is there a way to use fopen() on a share?
>> $fp = fopen( '\\10.1.0.1\c$\folder') results a error.
>> If i try the same from the explorer, it works well.
>>
>> Hans
>
> --
>
> Michel Laine
> Engineer / Network Administrator
I keep getting a Undefined variable on unused form elements after they have
been posted.
For instance i have a form
Form Element Chem_id ( drop down)
Form Element freetxt ( text box)
Query String A B C D to search for products via letter
both the form post and the querystring go to the same page.
If the querystring is use i get the Warning: Undefined variable Chem id and
freetxt error mgs
but if i use them ..it works fine...
Is this a bug or do i need to change a setting in the php.ini file
Any help would be greatly appreciated.
Wes
[EMAIL PROTECTED]
> I keep getting a Undefined variable on unused form elements
> after they have
> been posted.
>
> For instance i have a form
>
> Form Element Chem_id ( drop down)
> Form Element freetxt ( text box)
>
how do you access the variables?
something like $Chem_id = $HTTP_POST_VARS["Chem_id"];
or do you use $Chem_id right away?
Are you running php in safe mode?
Call phpinfo(); to find out, search for safe_mode under
PHP Core.
/Martin
I hadn't messed with PDFLib for a few months, but having run across the
PC4P PHP class for building them, I decided to work with it some more.
When I loaded up the examples, I got an "expired PDFLib" error message.
So, I went to PDFLib.com like a good little developer to figure it out.
They had a page detailing the fact that the PDFLib that is packaged with
PHP expired in July as a result of beta code that was left in. They
suggested that I download PDFLib 4.0.1 for PHP. So, I did.
Unfortunately, all of the Windows binaries from PDFLib.com put a huge
watermark across the entire page unless you buy a license. Typically,
the binaries of the DLL from the PHP dev team are compiled from the
source which is under a free license (albeit a strange one). However,
the most recent stable binaries from php.net contain the time-bombed
DLL. Is there a php_pdf.dll out there compiled from the free source with
the time-bomb patch applied?
I cannot find the php_mcrypt.dll function in the 4.0.6 build. It is not
contained in any of the downloads. Is there any way to have its
installed? Thanks, Chris Scott