---
title: "exec() trubbel"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/16316-exec-trubbel"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "ps"
published: "2001-11-13T21:28:00.000Z"
updated: "2001-11-13T21:28:00.000Z"
replies: 0
views: 140
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/16316-exec-trubbel"
---

# exec() trubbel

## #1 — ps, 2001-11-13T21:28Z

Varför fungerar:

```
exec("uptime", $output);
for($i = 0; $i < sizeof($output); $i++)
{
	echo $output[$i];
}
```

Men inte:

```
exec("uptime /s", $output);
for($i = 0; $i < sizeof($output); $i++)
{
	echo $output[$i];
}
```

/r
Kör WinXP
IIS 5.1
PHP 4.0.6

Permalänk: https://www.webforum.nu/p/16316

---

Tråden på webben: https://www.webforum.nu/amne/php/16316-exec-trubbel
