| Sign In/My Account | View Cart |
| Weblog: | Charts with PHP and Flash, and a port to Perl | |
| Subject: | PHP Cleanup (+ Remoting) | |
| Date: | 2004-09-28 10:45:56 | |
| From: | sklar | |
|
As a minor point, to save a little PHP face here, the code you posted above could be expressed in PHP as:
|
||
Showing messages 1 through 4 of 4.
PHP Cleanup (+ Remoting)
PHP Cleanup (+ Remoting)
$params .= 'rows=" . count($value) . '&cols=' . count($value[0]) . '&';
for ($r=0; $r<count($value);$r++){
$params .= "r$r" . join(';',$value[$r]) . '&';
}
</code>
Code tags and escapes:
$params .= 'rows=" . count($value) . '&cols=' . count($value[0]) . '&';
for ($r=0; $r<count($value);$r++){
$params .= "r$r" . join(';',$value[$r]) . '&';
}
| Showing messages 1 through 4 of 4. |
I'm back to looking at server-side charting software. I wish there were a Perl XS wrapper to Ploticus, and may eventually wish my way into a text editor to make it so.
Thanks! --Nat