...

View Full Version : Desktop



shinko_metsuo
06-17-2005, 04:25 AM
I've seen this done before but I don't know how to do it.

I want to have a page that shows my desktop and refreshes every 30 seconds.

thanks,
metsuo

devinemke
06-17-2005, 06:15 PM
<html>
<head>
<meta http-equiv="refresh" content="30">
</head>
<body>

<?php
$scandir = scandir('/path/to/desktop/');
foreach ($scandir as $value)
{
echo $value . '<br>';
}
?>

</body>
</html>

shinko_metsuo
06-18-2005, 12:38 AM
Thanks but scandir is an undefined function :(

devinemke
06-18-2005, 01:01 AM
Thanks but scandir is an undefined function :(
then do either of the following:
1. upgrade to PHP5
2. use opendir (http://www.php.net/opendir ) and readdir (http://www.php.net/readdir )

shinko_metsuo
06-18-2005, 01:21 AM
installing PHP5 on a unix system how fun :P

opendir works but I get this

Warning: Invalid argument supplied for foreach() in /var/www/html/desktop.php on line 9



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum