PHP调用外部程序的问题 - PHP / 基础编程
我需要的是在PHP网页中,通过调用外部的一个画图工具生成图片并将图片返回给页面
哪位能给个思路,用到哪些函数,尽量详细些,谢谢!
命令行操作,
返回图片路径。
这都需要取决于你所调用的外部工具,提供了什么样的命令行模式下的接口。
你可以上网找一下PChat,研究一下,我都是用这个的
你要给出具体什么画图工具?再分析看看
CYTOSCAPE,不知道各位用过没有
不过我可以给出其中的命令行说明
usage: java -Xmx512M -jar cytoscape.jar [OPTIONS]
-h,--help Print this message.
-v,--version Print the version number.
-s,--session <file> Load a cytoscape session (.cys) file.
-N,--network <file> Load a network file (any format).
-e,--edge-attrs <file> Load an edge attributes file (edge attribute format).
-n,--node-attrs <file> Load a node attributes file (node attribute format).
-m,--matrix <file> Load a node attribute matrix file (table).
-p,--plugin <file> Load a plugin jar file, directory of jar files,
plugin class name, or plugin jar URL.
-P,--props <file> Load cytoscape properties file (Java properties
format) or individual property: -P name=value.
-V,--vizmap <file> Load vizmap properties
相关问答:
我刚学习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:
......
index.php内容:
$smarty->assign('name',strtotime('-0'));
$smarty->display("index.html");
index.html内容:
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......
最近一个项目中遇到一个问题:在原有的一套系统中(php开发)添加一些小功能(jsp开发),原来用户系统都是php开发的,我如何在jsp开发的功能中做到用户信息session同步呢? 有人是否有做过类以项目,想听听大家的看法
......
<?php
@session_start();
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
$sql="select * from t_doctor WHERE docname='".$usernam ......