Jump to content

Executing a command

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
If I wanted to execute a command in PHP, how would I do that?

I want to do a command such as dir.

#2
Guest_crocodile_*

Guest_crocodile_*
  • Guests
try:
<?php

exec("ls /home");

?>