how to write PHP

superheros

新手上路
注册
2004-06-26
消息
82
荣誉分数
0
声望点数
0
Hi,
I have a C code for scientific data analysis and I used gcc to compile and runs on the Sun. I want to put my program on the web so anyone can run the program on the web to analyse his data. The user need to load his input data files from his local machine and give some parameters, and then the program can return the result on the web page. I know PHP can do this, but I have no any idea to write PHP program and how to configure it. Can anyone give me instructions. Thanks a lot.

Charles
 
web application在低负荷的时侯用那种语言无所谓,C可以甚至Shell Script都行
 
string system ( string command [, int &return_var] )
<?php
echo '<pre>';

// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);

// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>

void passthru ( string command [, int &return_var] )
 
Writing PHP

Thanks for the message. Now I wrote a html interface for my problem (please see http://cluster.mathstat.dal.ca/genetics/). The central point is that if I hit the "Run procovar" button it will be invoked to run the "procovar" program. Furhtermore, how does procovar read in input data such as "Aligned sequences" and "Input tree" that I have copied and pasted in the boxes. How to do this? Thanks for instructions.



最初由 陪你去看龙卷风 发布
string system ( string command [, int &return_var] )
<?php
echo '<pre>';

// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);

// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>

void passthru ( string command [, int &return_var] )
 
后退
顶部