【求翻译】PHP—>C#
PHP code:
<?php
include '../php-ofc-library/open-flash-chart.php';
srand((double)microtime()*1000000);
$data = array();
// add random height bars:
for( $i=0; $i<9; $i++ )
$data[] = rand(2,9);
// make the last bar a different colour:
$bar = new bar_value(5);
$bar->set_colour( '#900000' );
$bar->set_tooltip( 'Hello<br>#val#' );
$data[] = $bar;
$title = new title( date("D M d Y") );
$bar = new bar_3d();
$bar->set_values( $data );
$bar->colour = '#D54C78';
$x_axis = new x_axis();
$x_axis->set_3d( 5 );
$x_axis->colour = '#909090';
$x_axis->set_labels( array(1,2,3,4,5,6,7,8,9,10) );
$chart = new open_flash_chart();
$chart->set_title( $title );
$chart->add_element( $bar );
$chart->set_x_axis( $x_axis );
echo $chart->toPrettyString();
源地址:http://teethgrinder.co.uk/open-flash-chart-2/adv-upload-image.php
我想知道flash如何转化成图片(例jpg格式)保存到本地
希望这两种语言都通的高手帮忙
感激不尽!!
UP
up
last up
{{
相关问答:
txt 和XML 格式相应
不借助DataSet
导入读取TXT文件
然后直接写入XML(同一文件,不同数据,递增原数据没有被覆盖情况下增加数据.)
教个要点或最好是有个代码提示的
过路好汉 帮个忙撒^^
不会,帮楼主 ......
我刚学习php请问,如果我把php文件上传至服务器后,例如http://www.****.com/cast.php这个文件会不会被别人下载或复制阿?
可以被下载,也可以不被下载,看web服务器对该文件权限的配置
看你对文件权限的设置
......
PHP code:
$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
结果为:
PHP code:
......
我们C#做一个窗体 往数据库里插入数据
SqlConnection cn = new SqlConnection("Data Source=20090713-1752\\SQLEXPRESS;Initial Catalog=goods;Integrated Security=True");
......