[PHP] gd error with latest source install

2003-12-04 Thread Rob Yelvington
Just downloaded and am in the process of installing php 4.3.4

Installing the bundled GD library and I get an error about not able to 
locate libpng.a.

This is on a Freebsd v4.3 box.  I've got a few others with slightly 
older versions of PHP running with same bundled GD which compiled fine.

Guess I'm just wondering if anyone else has had this prob or if it is 
even, in fact, a problem?

Thanks,

~Rob

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


[PHP] how to keep decimals from rounding

2003-08-26 Thread Rob Yelvington
Is there a way to surpress round() or number_format() from rounding 
decimal places?

I have a value of .253338 being returned via a calc function.

I take that value and multiply by 100 because I want 25.333 to be 
displayed.

I've used round(), sprintf(), and number_format() and each of them 
rounds the value up.

I had a problem with precision earlier which I solved...my 'precision' 
setting in php.ini was set too low.  Is there something in php.ini that 
controls rounding?

Any heads up are appreciated!

Thanks,

~Rob

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


Re: [PHP] how to keep decimals from rounding

2003-08-26 Thread Rob Yelvington
Curt, thanks for the reply and the suggestion.  Truncating is exactly 
what I will do.

Thanks!

~Rob

Curt Zirzow wrote:
* Thus wrote Rob Yelvington ([EMAIL PROTECTED]):

Is there a way to surpress round() or number_format() from rounding 
decimal places?

I have a value of .253338 being returned via a calc function.

I take that value and multiply by 100 because I want 25.333 to be 
displayed.

I've used round(), sprintf(), and number_format() and each of them 
rounds the value up.


One  would expect sprintf not too round, but, behold, it does.
According to bugs.php.net, it is not a bug.

I had a problem with precision earlier which I solved...my 'precision' 
setting in php.ini was set too low.  Is there something in php.ini that 
controls rounding?

Any heads up are appreciated!


Perhaps by truncating the string to your precision that you desire.

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


Re: [PHP] Re: google style paginating

2003-08-22 Thread Rob Yelvington
The Pear Pager class works like a champeen, too.  It'll paginate results 
however you'd like it to.

~Rob

Chris W. Parker wrote:
Robert Cummings mailto:[EMAIL PROTECTED]
on Thursday, August 21, 2003 4:46 PM said:

Don't retrieve ALL the queries then
only display a subset. Otherwise what's the point of using the LIMIT
clause for conservation of resources?  The SELECT COUNT( * ) FROM
foo query is usually optimized to be extremely fast so the first
query is almost negligible in contrast to the second.


Heh... I've never really used COUNT() so I'll have to see how much it
speeds up my searching. :)
Good idea!

Chris.


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


[PHP] float precision format not being kept

2003-08-22 Thread Rob Yelvington
I have a list of floats that I need to put into an array, when I put 
them into an array manually the floats lose their format, for example:

$a = array(1=3.50807443617658E-4);

print $a[1] returns: 0.00035080744361766

I'm familiar with round() and all the math functions, but I'm stumped.

Any light anyone can shed on this would be appreciated.  ;)

Thanks,

~Rob Yelvington

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


Re: [PHP] WYSIWYG editor for PHP

2003-08-22 Thread Rob Yelvington
Active State's Komodo and Zend Studio are both awesome!  I used to use 
Dreamweaver, but it's syntax highlighting stinks...IMHO.

~Rob

Bix wrote:
I use dreamweaver in live data mode quite often, really works a treat!

Set up a a site and in the testing server, just set it as /beta or the like,
then edit your script, and run it in live data and you can feed it
post/get/cookie data on the fly.
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
I need a WYSIWYG editor for PHP. That is all.
Can any1 advice me one( or more :-) )?
[/snip]
Dreamweaver?




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