View Single Post
06-04-2012, 06:54 AM
#6
.Nick is offline .Nick
.Nick's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 1,159
iTrader: 3 / 100%
 

.Nick is on a distinguished road

  Old

Originally Posted by unikorndesigns View Post
i just found that c language is pretty fast and it would be great if u could show me an example of executing a c program using php! I tried googling it, but nothng seemed to work.

http://us3.php.net/manual/en/function.shell-exec.php

PHP Code:
<?php
$output 
shell_exec('ls -la');
echo 
"<pre>$output</pre>";
?>
Also, see this thread:
http://talkfreelance.com/showthread.php?t=80592