View Single Post

  #1 (permalink)  
Old 09-27-2006
yusuf
 
Posts: n/a
Default why is which not working?

Hi,

I uploaded the following file to my site:

<?php
header("Content-type: text/plain");

echo "latex is at: ";
system("which latex");

echo "ls is at: ";
system("which ls");

echo "convert is at: ";
system("which convert");

echo "gs is at: ";
system("which gs");

?>

and none of the paths are being printed out, only the echo statements
are... I would think atleast ls should show up? Execute permissions
have been given to it too.

Reply With Quote